dsfsi / tiny_aya_earth-lora-r64-eng-hau

huggingface.co
Total runs: 16
24-hour runs: 0
7-day runs: -2
30-day runs: 11
Model's Last Updated: June 04 2026
translation

Introduction of tiny_aya_earth-lora-r64-eng-hau

Model Details of tiny_aya_earth-lora-r64-eng-hau

tiny_aya_earth-lora-r64-eng-hau

Model on HF

This is a LoRA adapter for the AfriScience-MT project, enabling efficient scientific machine translation for African languages.

Adapter Description
Property Value
Base Model CohereLabs/tiny-aya-earth
Translation Direction English → Hausa
LoRA Rank (r) 64
LoRA Alpha 128
Training Method QLoRA (4-bit quantization)
Domain Scientific/Academic texts
Why LoRA?

LoRA (Low-Rank Adaptation) enables efficient fine-tuning by training only a small number of additional parameters. This adapter adds only ~32.0M parameters to the base model while achieving strong translation performance.

Evaluation Results

Performance on the AfriScience-MT test set:

Split BLEU chrF SSA-COMET
Test 39.57 62.00 None

Metrics explanation:

  • BLEU : Measures n-gram overlap with reference translations (0-100, higher is better)
  • chrF : Character-level F-score, robust for morphologically rich languages (0-100, higher is better)
  • SSA-COMET : Neural metric trained for Sub-Saharan African languages, shown as percentage (0-100, higher is better) ( McGill-NLP/ssa-comet-stl )
Usage
Quick Start
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import PeftModel
import torch

# Configure 4-bit quantization (recommended for memory efficiency)
bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_compute_dtype=torch.bfloat16,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_use_double_quant=True,
)

# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
    "CohereLabs/tiny-aya-earth",
    quantization_config=bnb_config,
    device_map="auto",
    torch_dtype=torch.bfloat16,
)
tokenizer = AutoTokenizer.from_pretrained("CohereLabs/tiny-aya-earth")

# Load LoRA adapter
adapter_name = "dsfsi/tiny_aya_earth-lora-r64-eng-hau"
model = PeftModel.from_pretrained(base_model, adapter_name)
model.eval()

# Prepare translation prompt
source_text = "Climate change significantly impacts agricultural productivity in sub-Saharan Africa."
instruction = "Translate the following English scientific text to Hausa."

# Format prompt
prompt = f"""### Instruction:
{instruction}

### Input:
{source_text}

### Response:
"""

# Generate translation
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=256,
        num_beams=5,
        early_stopping=True,
        pad_token_id=tokenizer.pad_token_id,
    )

# Decode only the generated part
generated = outputs[0][inputs["input_ids"].shape[1]:]
translation = tokenizer.decode(generated, skip_special_tokens=True)
print(translation)
Without Quantization (Full Precision)
# For GPUs with sufficient memory (>24GB for larger models)
base_model = AutoModelForCausalLM.from_pretrained(
    "CohereLabs/tiny-aya-earth",
    device_map="auto",
    torch_dtype=torch.bfloat16,
)
model = PeftModel.from_pretrained(base_model, "dsfsi/tiny_aya_earth-lora-r64-eng-hau")
Training Details
Hyperparameters
Parameter Value
LoRA Rank (r) 64
LoRA Alpha 128
LoRA Dropout 0.05
Target Modules q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Epochs 3
Batch Size 2
Learning Rate 2e-04
Max Sequence Length 512
Gradient Accumulation 4
Hardware Requirements
Configuration VRAM Required
4-bit (QLoRA) ~8-12 GB
8-bit ~16-20 GB
Full precision ~24-40 GB
Reproducibility

To reproduce this adapter:

# Clone the AfriScience-MT repository
git clone https://github.com/afriscience-mt/afriscience-mt.git
cd afriscience-mt

# Install dependencies
pip install -r requirements.txt

# Run LoRA training
python -m afriscience_mt.scripts.run_lora_training \
    --data_dir ./data \
    --source_lang eng \
    --target_lang hau \
    --model_name CohereLabs/tiny-aya-earth \
    --model_type causal \
    --lora_rank 64 \
    --output_dir ./output \
    --num_epochs 3 \
    --batch_size 4 \
    --load_in_4bit
Limitations
  • Domain Specificity : Optimized for scientific/academic texts; may underperform on casual or colloquial language.
  • Language Direction : Only supports English → Hausa translation.
  • Base Model Required : Must be used with the CohereLabs/tiny-aya-earth base model.
  • Context Length : Maximum context is model-dependent; longer texts should be chunked.
Citation

If you use this model, please cite the AfriScience-MT paper ( arXiv:2605.29741 ):

@article{abdulmumin2026afriscience,
  title   = {AfriScience-MT: Towards Decolonizing Science in Africa through Text Translation},
  author  = {Abdulmumin, Idris and Gwadabe, Tajuddeen and Muhammad, Shamsuddeen Hassan and Adelani, David Ifeoluwa and Khalo, Nomonde and Ahmad, Ibrahim Said and Modupe, Abiodun and Mumm, Anina and Biyela, Sibusiso and Rabie, Michelle and Havemann, Johanna and Rei, Marek and Abbott, Jade and Marivate, Vukosi},
  journal = {arXiv preprint arXiv:2605.29741},
  year    = {2026},
  url     = {https://arxiv.org/abs/2605.29741}
}
License

This adapter is released under the Apache 2.0 License .

Acknowledgments

Runs of dsfsi tiny_aya_earth-lora-r64-eng-hau on huggingface.co

16
Total runs
0
24-hour runs
0
3-day runs
-2
7-day runs
11
30-day runs

More Information About tiny_aya_earth-lora-r64-eng-hau huggingface.co Model

More tiny_aya_earth-lora-r64-eng-hau license Visit here:

https://choosealicense.com/licenses/apache-2.0

tiny_aya_earth-lora-r64-eng-hau huggingface.co

tiny_aya_earth-lora-r64-eng-hau huggingface.co is an AI model on huggingface.co that provides tiny_aya_earth-lora-r64-eng-hau's model effect (), which can be used instantly with this dsfsi tiny_aya_earth-lora-r64-eng-hau model. huggingface.co supports a free trial of the tiny_aya_earth-lora-r64-eng-hau model, and also provides paid use of the tiny_aya_earth-lora-r64-eng-hau. Support call tiny_aya_earth-lora-r64-eng-hau model through api, including Node.js, Python, http.

tiny_aya_earth-lora-r64-eng-hau huggingface.co Url

https://huggingface.co/dsfsi/tiny_aya_earth-lora-r64-eng-hau

dsfsi tiny_aya_earth-lora-r64-eng-hau online free

tiny_aya_earth-lora-r64-eng-hau huggingface.co is an online trial and call api platform, which integrates tiny_aya_earth-lora-r64-eng-hau's modeling effects, including api services, and provides a free online trial of tiny_aya_earth-lora-r64-eng-hau, you can try tiny_aya_earth-lora-r64-eng-hau online for free by clicking the link below.

dsfsi tiny_aya_earth-lora-r64-eng-hau online free url in huggingface.co:

https://huggingface.co/dsfsi/tiny_aya_earth-lora-r64-eng-hau

tiny_aya_earth-lora-r64-eng-hau install

tiny_aya_earth-lora-r64-eng-hau is an open source model from GitHub that offers a free installation service, and any user can find tiny_aya_earth-lora-r64-eng-hau on GitHub to install. At the same time, huggingface.co provides the effect of tiny_aya_earth-lora-r64-eng-hau install, users can directly use tiny_aya_earth-lora-r64-eng-hau installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tiny_aya_earth-lora-r64-eng-hau install url in huggingface.co:

https://huggingface.co/dsfsi/tiny_aya_earth-lora-r64-eng-hau

Url of tiny_aya_earth-lora-r64-eng-hau

tiny_aya_earth-lora-r64-eng-hau huggingface.co Url

Provider of tiny_aya_earth-lora-r64-eng-hau huggingface.co

dsfsi
ORGANIZATIONS

Other API from dsfsi

huggingface.co

Total runs: 191
Run Growth: 22
Growth Rate: 11.52%
Updated:December 05 2023
huggingface.co

Total runs: 178
Run Growth: 82
Growth Rate: 46.07%
Updated:September 14 2024
huggingface.co

Total runs: 67
Run Growth: -8
Growth Rate: -11.94%
Updated:January 27 2025
huggingface.co

Total runs: 51
Run Growth: 19
Growth Rate: 37.25%
Updated:August 19 2025
huggingface.co

Total runs: 39
Run Growth: 33
Growth Rate: 84.62%
Updated:September 16 2025
huggingface.co

Total runs: 22
Run Growth: -5
Growth Rate: -22.73%
Updated:December 05 2023
huggingface.co

Total runs: 20
Run Growth: -16
Growth Rate: -80.00%
Updated:February 27 2025
huggingface.co

Total runs: 20
Run Growth: -61
Growth Rate: -305.00%
Updated:September 03 2024
huggingface.co

Total runs: 12
Run Growth: -14
Growth Rate: -116.67%
Updated:December 05 2023