Downloads · 30 days
100
15% of all-time downloads
Aiden1020/LocalSubs-EN-ZH-TW-0.6B
LocalSubs-EN-ZH-TW-0.6B is a translation model from Aiden1020. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tuned quantized model with domain specific tokenizer for cue-level, context-aware English → Taiwan Traditional Chinese subtitle translation, optimized for local real-time inference.
Downloads · 30 days
100
15% of all-time downloads
All-time downloads
652
Public
Parameters
506M
3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2 GB · 67%
From the Hugging Face model README
A fine-tuned quantized model with domain specific tokenizer for cue-level, context-aware English → Taiwan Traditional Chinese subtitle translation, optimized for local real-time inference.
| Item | Value |
|---|---|
| Base model | NiuTrans/LMT-60-0.6B |
| Tokenizer | domain specific 64k tokenizer |
| Fine-tuning method | Supervised Fine-Tuning (SFT), causal LM loss on assistant turn only |
| Task | EN → TW subtitle translation, cue-level, 0–3 cues of context |
| Quantization | Q5_K_M (GGUF, via llama.cpp) |
| Best checkpoint | Step 22,000 · eval loss 1.4804 |
| Precision | BF16 during training |
| Context window | 256 tokens (subtitle cues are short) |
This model is designed for one task only:
Given recent English subtitle cues as context and the current English subtitle cue, output only the Taiwan Traditional Chinese translation of the current cue.
In scope:
Out of scope:
CTX:
<0–3 previous English subtitle cues>
CUR:
<current English subtitle cue>
Output: Taiwan Traditional Chinese translation of CUR only.
Example:
CTX:
I sent you the file.
Check your inbox.
CUR:
You got it?
Expected output:
你收到了嗎?
./llama-cli \
-m LocalSubs-EN-ZH-TW-0.6B-Q5_K_M.gguf \
--temp 0.0 \
-p "CTX:
I sent you the file.
Check your inbox.
CUR:
You got it?" \
-n 64
from llama_cpp import Llama
llm = Llama(model_path="SubtitleEN2TW-0.6B-Q5_K_M.gguf", n_ctx=256)
ctx_cues = ["I sent you the file.", "Check your inbox."]
cur_cue = "You got it?"
ctx_block = "
".join(ctx_cues)
prompt = f"CTX:
{ctx_block}
CUR:
{cur_cue}"
out = llm(prompt, max_tokens=64, temperature=0.0, stop=["
"])
print(out["choices"][0]["text"].strip())
The SFT dataset was built from two public subtitle corpora. The actual dataset is not redistributed due to upstream licensing constraints. Pipeline details and the diagnostic test set are available at Aiden1020/SubtitleEN2TW-SFT-Pipeline.
| Source | Format | Language pair | Scale (before filtering) |
|---|---|---|---|
| OpenSubtitles v2024 (OPUS) | Moses parallel text | en – zh_TW | ~18.6 M sentence pairs |
| TVSub | Timestamped subtitle cues | en – zh | ~2.2 M cue pairs |
Filtering steps applied:
A small manually curated diagnostic set (~3% mix-in) was included to cover leakage probes, short responses, ambiguous phrases, and Taiwan terminology.
If you use this model, please also cite the model:
@misc{wong2026localsubs,
title = {Workload-Driven Optimization for On-Device Real-Time Subtitle Translation},
author = {Tsz-To Wong},
year = {2026},
eprint = {2607.09957},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
doi = {10.48550/arXiv.2607.09957},
url = {https://arxiv.org/abs/2607.09957}
}
also cite the base model:
@misc{luoyf2025lmt,
title={NiuTrans.LMT: Toward Inclusive and Scalable Multilingual Machine Translation with LLMs},
author={Yingfeng Luo, Ziqiang Xu, Yuxuan Ouyang, Murun Yang, Dingyang Lin, Kaiyan Chang, Tong Zheng, Bei Li, Peinan Feng, Quan Du, Tong Xiao, Jingbo Zhu},
year={2025},
eprint={2511.07003},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2511.07003}
}
This model is released under the Apache License 2.0.
See NOTICE for third-party attribution.