Downloads · 30 days
16
12% of all-time downloads
nwokikeonyeka/Igbo-Phi3-Bilingual-Chat-v1-merged
Igbo-Phi3-Bilingual-Chat-v1-merged is a translation model from nwokikeonyeka. Use it when you need text moved from one language to another. It is set up for transformers.
Downloads · 30 days
16
12% of all-time downloads
All-time downloads
130
Public
Parameters
3.8B
7.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.6 GB · 100%
From the Hugging Face model README
A specialized bilingual AI assistant trained to converse fluently in Igbo and English.
This is the full-precision merged model (SafeTensors format). It contains the complete fine-tuned weights of the Microsoft Phi-3 Mini model, optimized for Igbo language understanding, translation, and cultural context.
To use this model in a Python script using Hugging Face Transformers:
pip install transformers torch accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "nwokikeonyeka/Igbo-Phi3-Bilingual-Chat-v1-merged"
# Load the model and tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16, # Use float16 to save memory
device_map="auto",
trust_remote_code=True
)
# Define a prompt (Bilingual Chat)
user_input = "Kedu ka m ga-esi sị 'Good morning' n'asụsụ Igbo?"
# Format with the correct Phi-3 template
prompt = f"<s><|user|>\n{user_input}<|end|>\n<|assistant|>\n"
# Tokenize and Generate
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens=128,
temperature=0.3
)
# Decode result
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
This model was trained on a robust mix of 700,000+ examples to ensure it can translate accurately while remaining a smart chatbot:
Developed by nwokikeonyeka using the Unsloth library for faster fine-tuning.