Visit ComfyUI Online for ready-to-use ComfyUI environment
Powerful node for language translation in ComfyUI, leveraging advanced models for efficient multilingual tasks.
GemmaxRun is a powerful node designed to facilitate language translation tasks within the ComfyUI environment. It leverages advanced language models to translate text from a source language to a target language, making it an invaluable tool for AI artists and developers who need to work with multilingual content. The node is capable of handling complex translation tasks by utilizing pre-trained models that are optimized for performance on either CPU or GPU, depending on the available hardware. By automating the translation process, GemmaxRun helps streamline workflows, allowing users to focus on creative aspects rather than technical details. Its ability to manage model loading and unloading efficiently ensures that system resources are used optimally, providing a seamless experience for users.
This parameter specifies the language model to be used for translation. The available options are GemmaX2-28-2B-v0.1, GemmaX2-28-9B-v0.1, GemmaX2-28-2B-4bit, and GemmaX2-28-2B-8bit. The choice of model affects the quality and speed of translation, with larger models generally providing more accurate translations at the cost of increased computational resources. The default model is GemmaX2-28-2B-4bit.
This parameter defines the language of the input text that needs to be translated. It is crucial for the node to understand the context and nuances of the source text. The default value is English.
This parameter sets the language into which the source text will be translated. It allows users to specify the desired output language, ensuring that the translation meets their specific needs. The default value is 䏿–‡ (Chinese).
This is the actual text string that you want to translate. It is a required parameter, meaning that you must provide a valid string for the node to function. The text should be in the language specified by the source_language parameter.
This parameter determines the maximum number of new tokens that the model can generate during the translation process. It controls the length of the translated output, with a default value of 200 and a minimum value of 1. Adjusting this parameter can help manage the verbosity of the translation.
This boolean parameter indicates whether the model should be unloaded from memory after the translation is complete. Setting it to True helps free up system resources, especially when working with large models, but may increase the time required for subsequent translations as the model will need to be reloaded.
This output parameter provides the translated text as a string. It represents the final result of the translation process, allowing users to access the translated content in the target language specified. The output is designed to be clear and accurate, reflecting the input text's meaning and context.
unload_model parameter to manage memory usage effectively, especially when working with multiple translations in a single session.max_new_tokens parameter to control the length of the translation output, ensuring it meets your specific requirements without unnecessary verbosity.cpu if GPU resources are limited.max_new_tokens parameter is set too low.max_new_tokens value to allow for a more comprehensive translation.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.