Nodes/comfyui-tencent-hymt2/Hy-MT2 Translation (Tencent)
ComfyUI Node

Hy-MT2 Translation (Tencent)

A ComfyUI node in text/translation with 8 inputs and 1 output.

By mamorett·Created 3 months ago·Updated 3 months ago· 0
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)

    NameTypeDefaultDescription
    textSTRINGThe text to translate.
    modelCOMBOtencent/Hy-MT2-1.8BWhich Hy-MT2 model variant to use.
    instructionoptSTRINGTranslate the following text into Chinese:Task instruction prepended to the source text. Change this to target a different language.
    max_tokensoptINT409664–8192Maximum number of new tokens to generate.
    temperatureoptFLOAT0.700–2Sampling temperature. 0 = greedy/deterministic.
    top_poptFLOAT0.600–1Nucleus sampling probability mass.
    top_koptINT200–200Top-K sampling. 0 disables top-k filtering.
    repetition_penaltyoptFLOAT1.051–2Penalty for repeating tokens. 1.0 = no penalty.

    Outputs (1)

    NameTypeDescription
    translated_textSTRING