Downloads · 30 days
11
10% of all-time downloads
thiomajid/hausa_xla
hausa_xla is a text generation model from thiomajid. Use it when you need the model to write or continue text. The card lists the license as mit.
This is an autoregressive decoder-only transformer model trained on the hausadatamix dataset using JAX and Flax NNX.
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
105
Public
Repo size
314 MB
Likes
0
Public
Click a slice to open those files.
Other310 MB · 97%
From the Hugging Face model README
This is an autoregressive decoder-only transformer model trained on the hausa_datamix dataset using JAX and Flax NNX.
- Hidden Size: 512
- Number of Layers: 8
- Attention Heads: 8
- Intermediate Size: 2048
- Max Position Embeddings: 256
- Vocab Size: 49152
- Rotary Position Embeddings: True
# This model was trained with JAX/Flax and requires the custom transformer implementation
# to load and use. See the repository for implementation details.
from transformers import AutoTokenizer
import jax.numpy as jnp
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("thiomajid/hausa_lm")
if tokenizer.pad_token is None:
tokenizer.pad_token = tokenizer.eos_token
# Example text generation (requires custom model loading)
prompt = "Once upon a time, there was a little"
# ... (model loading and generation code)
model:
hidden_size: 512
num_layers: 8
num_attention_heads: 8
intermediate_size: 2048
max_position_embeddings: 256
training:
learning_rate: 0.0003
batch_size: 32
epochs: 10
warmup_ratio: 0.1
config.json: Model configurationtrain_history.json: Training metrics and durationtokenizer/: hausa_lm tokenizer filesmodel_checkpoint/: Best model checkpointtensorboard_logs/: Training logs for TensorBoardMIT License - see LICENSE file for details.