17 2 weeks ago

English to Swahili and Swahili to English translation model

ollama run amplifiedaccessorg/Swahili-gemma-1b-it

Models

View all →

Readme

Swahili Gemma 1B IT

English → Swahili translation with a 1B-parameter model, fine-tuned from Google’s Gemma 3 1B IT by CommonMind (AmplifiedAccess).

Non-commercial use only. This model is under the Gemma Terms of Use plus a non-commercial restriction, because its training data includes MAFAND-MT (CC BY-NC 4.0). See License below.

ollama run amplifiedaccessorg/Swahili-gemma-1b-it

Prompt format

The model was trained on this translation template. Use it for the most reliable output:

Translate the following English sentence to Swahili.
English: The children are playing outside.
Swahili:

Over the API:

curl http://localhost:11434/api/generate -d '{
  "model": "amplifiedaccessorg/Swahili-gemma-1b-it",
  "prompt": "Translate the following English sentence to Swahili.\nEnglish: I would like a cup of coffee, please.\nSwahili:",
  "stream": false
}'

The default temperature is 0.3. For repeatable translations, set "options": {"temperature": 0}.

Results

FLORES-200 devtest, English → Swahili:

Model BLEU chrF++
Gemma 3 1B IT (base) 0.41 14.28
Swahili Gemma 1B IT 28.86 54.77

These scores were measured on the full-precision weights on Hugging Face. This Ollama build is quantized to Q4_K_M (814 MB), which may score slightly lower.

Example translations

English Model output
The children are playing outside. Watoto wanacheza nje.
I would like a cup of coffee, please. Ningependa kikombe cha kahawa tafadhali.
The government announced new policies to support small businesses across the country. Serikali ilitangaza sera mpya kusaidia biashara ndogo nchi nzima.

Training

  1. Continued pretraining on Swahili text (QLoRA, then merged).
  2. Instruction tuning on 159,311 examples: English–Swahili sentence pairs and Swahili instruction data (QLoRA, merged to full weights).

Training data, configuration and the notebooks that produced this model are listed on the Hugging Face model card.

Limitations

  • Trained and evaluated on English → Swahili only. Swahili → English is untested.
  • Quality outside the training domains (news, general instructions) is unverified.
  • As a 1B model, it makes more errors on long or specialised sentences than larger translation models.

License

Use of this model must comply with both:

  1. Gemma Terms of Use. This model is a Model Derivative of Gemma 3 1B IT. Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. Use must also comply with the Gemma Prohibited Use Policy.
  2. Non-commercial use only, because the training data includes MAFAND-MT (CC BY-NC 4.0).

Links

Luganda-gemma-1b-it

Luganda Gemma 1B IT

English ↔ Luganda translation and Luganda conversation with a 1B-parameter model, fine-tuned from Google’s Gemma 3 1B IT by CommonMind (AmplifiedAccess).

ollama run amplifiedaccessorg/Luganda-gemma-1b-it

Prompt formats

The model was trained on several prompt templates. All of these work:

English → Luganda

Translate to Luganda:
The farmers need better seeds to improve their harvest.

Also: Convert this to Luganda:, English to Luganda:, How do you say this in Luganda?

Luganda → English

Translate to English:
Abasibe bataano baateereddwa ku kkomera jjo.

| The children are playing outside. | Watoto wanacheza nje. | | I would like a cup of coffee, please. | Ningependa kikombe cha kahawa tafadhali. | | The government announced new policies to support small businesses across the country. | Serikali ilitangaza sera mpya kusaidia biashara ndogo nchi nzima. |

Training

  1. Continued pretraining on Swahili text (QLoRA, then merged).
  2. Instruction tuning on 159,311 examples: English–Swahili sentence pairs and Swahili instruction data (QLoRA, merged to full weights).

Training data, configuration and the notebooks that produced this model are listed on the Hugging Face model card.

Limitations

  • Trained and evaluated on English → Swahili only. Swahili → English is untested.
  • Quality outside the training domains (news, general instructions) is unverified.
  • As a 1B model, it makes more errors on long or specialised sentences than larger translation models.

License

Use of this model must comply with both:

  1. Gemma Terms of Use. This model is a Model Derivative of Gemma 3 1B IT. Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. Use must also comply with the Gemma Prohibited Use Policy.
  2. Non-commercial use only, because the training data includes MAFAND-MT (CC BY-NC 4.0).

Links