Translation
Transformers
Safetensors
gemma3_text
text-generation
african-languages
low-resource
gemma3
english-to-african
grpo
archive
branches
text-generation-inference
Instructions to use AletheiaAING/gemma-0.4B-translate-rl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AletheiaAING/gemma-0.4B-translate-rl with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="AletheiaAING/gemma-0.4B-translate-rl")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AletheiaAING/gemma-0.4B-translate-rl") model = AutoModelForCausalLM.from_pretrained("AletheiaAING/gemma-0.4B-translate-rl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from AletheiaAING/gemma-0.4B-translate-rl: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/AletheiaAING/gemma-0.4B-translate-rl/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://AletheiaAING/gemma-0.4B-translate-rl/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/AletheiaAING/gemma-0.4B-translate-rl/resolve/main/special_tokens_map.json
662 Bytes
| { | |
| "boi_token": "<start_of_image>", | |
| "bos_token": { | |
| "content": "<bos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eoi_token": "<end_of_image>", | |
| "eos_token": { | |
| "content": "<eos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "image_token": "<image_soft_token>", | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |