How to use from the
Use from the
Transformers library
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("AI-Lab-Makerere/en_lg")
model = AutoModelForSeq2SeqLM.from_pretrained("AI-Lab-Makerere/en_lg", device_map="auto")
Quick Links

Model Trained Using AutoNLP

  • Problem type: Machine Translation
  • Model ID: 474612462
  • CO2 Emissions (in grams): 133.0219882109991

Validation Metrics

  • Loss: 1.336498737335205
  • Rouge1: 52.5404
  • Rouge2: 31.6639
  • RougeL: 50.1696
  • RougeLsum: 50.3398
  • Gen Len: 39.046

Usage

You can use cURL to access this model:

$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/EricPeter/autonlp-EN-LUG-474612462
Downloads last month
20
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support