Transformers
Safetensors
Amharic
English
Generated from Trainer
trl
unsloth
sft
amharic
low-resource-language
Instructions to use b1n1yam/gemma-2-27b-amharic-alpaca-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use b1n1yam/gemma-2-27b-amharic-alpaca-sft with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("b1n1yam/gemma-2-27b-amharic-alpaca-sft", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use b1n1yam/gemma-2-27b-amharic-alpaca-sft with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for b1n1yam/gemma-2-27b-amharic-alpaca-sft to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for b1n1yam/gemma-2-27b-amharic-alpaca-sft to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for b1n1yam/gemma-2-27b-amharic-alpaca-sft to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="b1n1yam/gemma-2-27b-amharic-alpaca-sft", max_seq_length=2048, )
How to use from
Unsloth StudioInstall Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for b1n1yam/gemma-2-27b-amharic-alpaca-sft to start chattingUsing HuggingFace Spaces for Unsloth
# No setup required# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for b1n1yam/gemma-2-27b-amharic-alpaca-sft to start chattingLoad model with FastModel
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="b1n1yam/gemma-2-27b-amharic-alpaca-sft",
max_seq_length=2048,
)Quick Links
Model Card for gemma-2-27b-amharic-sft
This model is a supervised fine-tuned version of b1n1yam/gemma-2-27b-amharic-cpt. It was trained on instruction-following data to enable conversational capabilities in Amharic.
Note: This is an early research version open-sourced solely for research purposes on low-resource language LLMs. For production-ready models with multimodality features, please visit platform.addisassistant.com.
Quick start
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "b1n1yam/gemma-2-27b-amharic-sft"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
messages = [
{"role": "user", "content": "የኢትዮጵያ ዋና ከተማ ምንድነው?"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training procedure
This model was trained with supervised fine-tuning (SFT) on top of the continual pretrained base:
- Base model: gemma-2-27b-amharic-cpt (with expanded tokenizer for Amharic)
- Training approach: Supervised fine-tuning on instruction-following datasets
- Chat format: Supports conversational interactions in Amharic
Framework versions
- TRL: 0.24.0
- Transformers: 4.57.2
- PyTorch: 2.6.0.dev20241112+cu121
- Datasets: 3.6.0
- Tokenizers: 0.22.1
Citation
If you use this model, please cite:
@misc{daniel2024addisai,
title = {Addis AI: Supervised Fine-tuned Gemma 2 27B for Amharic},
author = {Daniel, Biniyam},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/b1n1yam/gemma-2-27b-amharic-sft}}
}
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for b1n1yam/gemma-2-27b-amharic-alpaca-sft
Base model
unsloth/gemma-2-27b-bnb-4bit Finetuned
b1n1yam/gemma-2-27b-amharic-cpt
Install Unsloth Studio (macOS, Linux, WSL)
# Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for b1n1yam/gemma-2-27b-amharic-alpaca-sft to start chatting