https://ollama.com/library/translategemma
Simple CLI wrapper around Ollama's translategemma model using the OpenAI Python client.
Install with uv:
uv tool install git+https://github.com/diversen/translategemmaThis installs the translategemma package and exposes the gemma-translate command.
Usage:
translategemma --from en --to da "text to translate"
translategemma --from en --to da ./input.txtDefaults:
OPENAI_BASE_URL=http://localhost:11434/v1OPENAI_API_KEY=ollama- model name:
translategemma:27b
Override the model with:
translategemma --from en --to da --model translategemma:latest "Hello world"