ComfyUI Node
Hy-MT2 Translation (Tencent)
A ComfyUI node in text/translation with 8 inputs and 1 output.
Hy-MT2 Translation (Tencent)
- translated_text
◄text►
◄modeltencent/Hy-MT2-1.8B►
◄instructionTranslate the following text into Chinese:►
◄max_tokens4096►
◄temperature0.70►
◄top_p0.60►
◄top_k20►
◄repetition_penalty1.05►
Categorytext/translation
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | The text to translate. | |
| model | COMBO | tencent/Hy-MT2-1.8B | Which Hy-MT2 model variant to use. |
| instructionopt | STRING | Translate the following text into Chinese: | Task instruction prepended to the source text. Change this to target a different language. |
| max_tokensopt | INT | 409664–8192 | Maximum number of new tokens to generate. |
| temperatureopt | FLOAT | 0.700–2 | Sampling temperature. 0 = greedy/deterministic. |
| top_popt | FLOAT | 0.600–1 | Nucleus sampling probability mass. |
| top_kopt | INT | 200–200 | Top-K sampling. 0 disables top-k filtering. |
| repetition_penaltyopt | FLOAT | 1.051–2 | Penalty for repeating tokens. 1.0 = no penalty. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| translated_text | STRING | — |