feishengmt

Chinese-to-English translation of wuxia and xianxia fiction. The model is a fine-tune of tencent/Hy-MT2-1.8B (LoRA, merged into the weights), trained on wuxia text. It is built mainly for English; a short second stage adapted it so that it also answers in French, Portuguese, Spanish, Indonesian, Japanese and Korean when one of them is asked for.

What it learned beyond the base model:

  • The vocabulary and conventions of the genre: cultivation terms, honorifics (Senior / Junior Brother ...), recurring names.
  • To work on paragraphs, not on short pieces. It writes the quotation marks by itself, also when the Chinese uses 「」 or Traditional characters, when a quote runs over several paragraphs, and when the input starts or ends in the middle of a quote.

Version 1.2. It is a modified version of Hy-MT2-1.8B and is not endorsed by Tencent. The development of the model, version by version, is written up in this blog post. A quantized GGUF version (1.1 GB) is at hsilvosa/feishengmt-GGUF and a WebGPU (ONNX) version for the browser is at hsilvosa/feishengmt-ONNX.

Use it with the included pipeline

The model works best through the pipeline in the pipeline/ folder of this repository. It cuts the text into windows of whole paragraphs (up to 400 characters, or one paragraph when it is longer), adds the glossary entries found in each window, checks that the answer has the same paragraphs and the same quote marks as the source, and translates again in smaller parts when it does not.

import sys
from huggingface_hub import snapshot_download

path = snapshot_download("hsilvosa/feishengmt")
sys.path.insert(0, f"{path}/pipeline")
from webnovel_mt.translate import hf_backend
from webnovel_mt.windows import translate_document_windows

backend = hf_backend(path)                       # needs transformers>=5.6 and torch
chinese = open("chapter.txt", encoding="utf-8").read()
print(translate_document_windows(chinese, backend))

Without the pipeline, use this prompt. The language name goes in Chinese or in English (英语 or English).

将以下文本翻译为English,注意只需要输出翻译后的结果,不要额外解释:

<Chinese text: one or more paragraphs, up to about 400 characters>

Other languages

Replace the language name in the prompt: 法语 (French), 葡萄牙语 (Portuguese), 西班牙语 (Spanish), 印尼语 (Indonesian), 日语 (Japanese), 韩语 (Korean). The pipeline above is for English only: its checks of quote marks follow English conventions and its glossary is English. For the other languages, send one paragraph or a short window at a time and check the result yourself.

Results

Version 1.2 starts from version 1.1 and adds a preference-tuning stage (below). It was evaluated on three sets, one run, greedy decoding, the whole window as one prompt. feishengmt uses its glossary prompt; the other models use their own standard prompt.

  • Unseen novels: novels of the genre that were left out of training entirely.
  • External test: the test set of BWB (Jiang et al., 2022), a public Chinese-English web-novel corpus; none of its novels is in training.
  • In-domain: held-out chapters of novels that are in the training data.
System Unseen novels chrF / BLEU / COMET External test chrF / BLEU / COMET In-domain chrF / BLEU / COMET
feishengmt 1.2 49.1 / 19.2 / 78.1 53.0 / 22.6 / 81.2 55.2 / 23.1 / 77.6
feishengmt 1.1 47.7 / 19.1 / 77.3 51.6 / 21.8 / 80.6 53.3 / 22.3 / 76.6
feishengmt 1.0 43.2 / 15.2 / 76.2 48.2 / 18.6 / 79.6 52.9 / 21.6 / 76.8
Hy-MT2-1.8B (base) 45.9 / 15.9 / 78.0 49.0 / 18.7 / 81.0 45.9 / 13.2 / 76.5
Index-Translate-2B 48.7 / 18.8 / 78.3 51.8 / 21.3 / 81.2 50.3 / 15.5 / 77.1

COMET difference of version 1.2 (95 % interval, paired bootstrap):

against 1.1 against 1.0 against the base model against Index-Translate-2B
Unseen novels +0.9 (+0.6 to +1.1) +1.9 (+1.5 to +2.3) +0.1 (-0.2 to +0.4) -0.2 (-0.5 to +0.0)
External test +0.7 (+0.6 to +0.8) +1.6 (+1.3 to +2.1) +0.3 (+0.1 to +0.4) +0.0 (-0.1 to +0.2)
In-domain +1.0 (+0.5 to +1.7) +0.8 (+0.5 to +1.1) +1.1 (+0.8 to +1.5) +0.5 (+0.2 to +0.8)
  • chrF, which was not used in training, rises together with COMET: +1.4, +1.4 and +1.9 against 1.1.
  • The translations are fuller than those of 1.1 (about 1.02 words per reference word, against 0.93-0.96): part of the gain comes from fewer omitted sentences and from names that are kept.
  • On a small set of older novels in Traditional characters (22 passages, no references) a reference-free score rises from -42.7 (1.1) to -40.5, but Index-Translate-2B still scores higher (-36.7): older Chinese is not solved.

Form of the output (share of windows, range over the three sets):

Same paragraphs as the reference Dialogue with the reference's number of quote marks (style ignored) Chinese left in the output
feishengmt 1.2 98-99 % 99-100 % 0.4-1.7 %
feishengmt 1.1 97-99 % 98-100 % 0.0-0.8 %
feishengmt 1.0 99-99 % 99-99 % 0.8-2.8 %
Hy-MT2-1.8B (base) 51-57 % 84-89 % 1.1-3.9 %
Index-Translate-2B 79-93 % 95-97 % 1.7-4.2 %

The base model merges paragraphs and Index-Translate-2B splits them; Index-Translate-2B writes straight quote marks in most dialogue windows, where the reference and feishengmt use curly ones.

Names with a glossary (external test, 647 name occurrences; the glossary gives the reference's rendering of each name): feishengmt 1.2 writes the given name in 98.8 % of the cases (81.1 % without glossary), and the same way in every window of the chapter for 219 of 225 names. Index-Translate-2B with the same names as hard constraints: 100 %.

Other languages, no references: the answer is in the requested language in 100 % of the windows for French, Portuguese, Spanish, Indonesian, Japanese and Korean, with the language named in Chinese and in English. Similarity to the source (LaBSE) is the same as in version 1.1 (differences of -0.01 to +0.01).

Robustness to the form of the source (in-domain, pipeline, chrF): 64.8 clean, 64.8 with 「」 quotes, 64.3 in Traditional characters, 64.0 with both, 62.3 with a quote cut across paragraphs; the quote marks match the reference in 100 % of the windows in every variant.

Speed (RTX 3060, GGUF Q4_K_M with llama.cpp, the same windows for every model): 1.73 s per window with one request and 1.06 s with four in parallel; Index-Translate-2B Q4_K_M: 2.02 s and 1.17 s. The GGUF file is 1.13 GB (Index-Translate-2B 1.31 GB). On the external test the GGUF scores chrF 53.0 and BLEU 22.7 (bf16: 53.0 and 22.6).

Training

  • Base: Hy-MT2-1.8B. LoRA r=16, alpha=32, all attention and MLP projections, bf16, one RTX 3060.
  • Stage 1, English. About 112,000 examples (29 million tokens) of Chinese paragraph windows with their English translation, plus 4,400 sentences, from about 200 novels. Pairs were filtered for alignment (LaBSE similarity, length ratio, consistent quote marks, no leftover web text). The Chinese side was perturbed at random (Traditional characters, 「」 quotes, cut borders) while the English side kept clean double quotes. A glossary is in the prompt during training. Learning rate 2e-4, one epoch, 2,750 steps, 11 h 25 min.
  • Stage 2, other languages. 1,018 examples in the six other languages (made by the model and filtered for form and LaBSE similarity), mixed with 1,500 English windows and 300 sentences; learning rate 1e-4, 82 steps, 15 minutes.
  • Stage 3, preference tuning (new in 1.2). For 9,869 Chinese windows (about 8,400 from novels not used in stage 1 and 1,500 from the earlier corpus) the model wrote 8 translations, one greedy and seven sampled. Each was scored with COMET against the reference; for every window the best translation that keeps the paragraphs and quote marks of the source was paired with the worst one (8,039 pairs, windows with a small difference dropped). Training with a DPO loss (beta 0.1, plus a likelihood term on the chosen translation), learning rate 5e-6, one epoch, 502 steps, 85 minutes. The 10 evaluation novels and the external test were not in any stage.
  • The training data is not redistributed.

Limitations

  • English is the priority. The other languages were only taught to follow the request, and their quality is about the one of the base model: they were made by this model and filtered for form, not for meaning. Names and some terms come out wrong or stay in English. Portuguese had the fewest training examples.
  • COMET is equal to the base model and to Index-Translate-2B on novels outside the training data (differences within the interval), not better. Index-Translate-2B writes names more often as the reference when no glossary is given.
  • Stage 3 used COMET as its signal, so COMET alone overstates the gain; chrF, which was not used, rises by 1.4 to 1.9.
  • Older Chinese (Ming and Qing novels in Traditional characters) is translated worse than by Index-Translate-2B.
  • Domain: wuxia and xianxia. Modern text, technical text and literary or classical Chinese were not trained or measured, apart from the robustness variants above. The glossary encodes one convention (Senior/Junior); other translators use Martial Brother or Elder Brother.
  • One run per system. Differences below about 0.3 COMET or 1 chrF point are noise. The non-English results have no reference translations.
  • Known errors: dropped or repeated sentences in very long dialogues, characters left in Chinese when a name is rare, and a quote mark that is lost or added when the source has a typo in its quotes.
  • A model of 1.8 billion parameters: do not use it where an error matters.

License and attribution

Apache-2.0. Based on Hy-MT2 by Tencent (Apache-2.0); see NOTICE. Files were modified (fine-tuning, weight merge).

@misc{zheng2026hymt2,
  title={Hy-MT2: A Family of Fast, Efficient and Powerful Multilingual Translation Models in the Wild},
  author={Mao Zheng and Zheng Li and Tao Chen and Bo Lv and Mingrui Sun and Mingyang Song and Jinlong Song and Hong Huang and Decheng Wu and Hai Wang and Yifan Song and Yanfeng Chen and Guanwei Zhang},
  year={2026},
  eprint={2605.22064},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}
Downloads last month
87
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for hsilvosa/feishengmt

Finetuned
(18)
this model
Quantizations
2 models

Collection including hsilvosa/feishengmt

Paper for hsilvosa/feishengmt