ComfyUI Node
Gemma4 Translate
A ComfyUI node in language with 19 inputs and 2 outputs.
Gemma4 Translate
- image
- translated_text
- info
◄source_languageAuto Detect►
◄target_languageEnglish►
◄input_text►
◄task_modetranslate►
◄soft_token_budget280►
◄image_resize_modefit►
◄image_enhancefalse►
◄max_new_tokens512►
◄temperature0.20►
◄top_p0.90►
◄dtypeauto►
◄quantizationnone►
◄attn_implementationsdpa►
◄local_model_dir►
◄offline_modefalse►
◄load_strategyreload_every_run►
◄clear_loaded_modelfalse►
◄system_promptYou are a precise multilingual translation assistant. Translate faithfully, preserve line breaks when useful, and return only the translated result unless asked otherwise.►
Categorylanguage
Inputs (19)
| Name | Type | Default | Description |
|---|---|---|---|
| source_language | COMBO | Auto Detect | 36 options: Auto Detect, Arabic, Bulgarian, Chinese (Simplified), Chinese (Traditional), Czech, +30 |
| target_language | COMBO | English | 35 options: Arabic, Bulgarian, Chinese (Simplified), Chinese (Traditional), Czech, Danish, +29 |
| input_text | STRING | — | |
| task_mode | COMBO | translate | 4 options: translate, ocr_translate, ocr_only, translate_and_explain |
| soft_token_budget | COMBO | 280 | 5 options: 70, 140, 280, 560, 1120 |
| image_resize_mode | COMBO | fit | 3 options: fit, pad, stretch |
| image_enhance | BOOLEAN | false | — |
| max_new_tokens | INT | 5121–8192 | — |
| temperature | FLOAT | 0.200–2 | — |
| top_p | FLOAT | 0.900–1 | — |
| dtype | COMBO | auto | 4 options: auto, bfloat16, float16, float32 |
| quantization | COMBO | none | 3 options: none, bnb-8bit, bnb-4bit |
| attn_implementation | COMBO | sdpa | 2 options: sdpa, eager |
| local_model_dir | STRING | — | |
| offline_mode | BOOLEAN | false | — |
| load_strategy | COMBO | reload_every_run | 2 options: keep_loaded, reload_every_run |
| clear_loaded_model | BOOLEAN | false | — |
| imageopt | IMAGE | — | |
| system_promptopt | STRING | You are a precise multilingual translation assistant. Translate faithfully, preserve line breaks when useful, and return only the translated result unless asked otherwise. | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| translated_text | STRING | — |
| info | STRING | — |