Files

35 lines
1.0 KiB
JSON

{
"loader": {
"class_type": "HyMT2Loader",
"inputs": {
"model_path": "tencent/Hy-MT2-1.8B",
"device": "cuda:0",
"dtype": "bf16",
"force_reload": false,
"evict_others": true
}
},
"translate": {
"class_type": "HyMT2Translate",
"inputs": {
"model": ["loader", 0],
"source_text": "本判决系终审判决。当事人如不服本判决,可在判决书送达之日起十五日内向本院申请再审。",
"target_lang": "English",
"prompt_lang": "en",
"temperature": 0.7,
"top_p": 0.6,
"top_k": 20,
"repetition_penalty": 1.05,
"max_new_tokens": 4096,
"seed": -1,
"terminology": "",
"target_style": "",
"background_text": "This is the closing paragraph of a Chinese administrative-litigation court judgment from the People's Court. Translate in a formal legal register suitable for an English-language court filing."
}
},
"preview": {
"class_type": "PreviewAny",
"inputs": { "source": ["translate", 0] }
}
}