Translation
Transformers
Safetensors
English
Telugu
m2m_100
text2text-generation
text-generation
fine-tuned-model
colloquial-language
telugu
machine-translation
Instructions to use anithasoma/nllb-finetuned-telugu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anithasoma/nllb-finetuned-telugu with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="anithasoma/nllb-finetuned-telugu")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("anithasoma/nllb-finetuned-telugu") model = AutoModelForSeq2SeqLM.from_pretrained("anithasoma/nllb-finetuned-telugu") - Notebooks
- Google Colab
- Kaggle
File size: 2,852 Bytes
db89bdf f04a0c4 db89bdf 584cc82 db89bdf f04a0c4 db89bdf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | ---
license: apache-2.0
datasets:
- anithasoma/refined_en_te
language:
- en
- te
metrics:
- bleu
- sacrebleu
base_model:
- facebook/nllb-200-distilled-600M
pipeline_tag: translation
library_name: transformers
tags:
- text-generation
- translation
- fine-tuned-model
- colloquial-language
- telugu
- machine-translation
---
# NLLB-200 Fine-Tuned for Colloquial Telugu
## Model Description
This model is a fine-tuned version of the [NLLB-200 (Distilled 600M)](https://huggingface.co/facebook/nllb-200-distilled-600M) designed for translating English sentences into colloquial Telugu. It has been optimized to better capture informal and conversational nuances.
## Model Details
- **Model Name:** anithasoma/nllb-finetuned-telugu
- **Base Model:** facebook/nllb-200-distilled-600M
- **Fine-Tuned By:** [anithasoma](https://huggingface.co/anithasoma)
- **Languages:** English → Telugu (colloquial)
- **Framework:** Transformers (🤗 Hugging Face)
-
## 🚀 Run the Model on Google Colab
[](https://colab.research.google.com/drive/1CiuywF2xzdzFH7jvQ7UIrBo4tI9FI9Nf?usp=sharing)
Click the badge above to launch the model in Google Colab!
## Training Details
- **Dataset:** anithasoma/refined_en_te
- **Training Environment:** Google Colab with NVIDIA GPU.
- **Fine-Tuning Method:** LoRA + PEFT (Parameter Efficient Fine-Tuning)
- **Epochs:** Adjusted based on validation loss.
- **Metrics:** BLEU Score, SacreBLEU Score Perplexity, Human Evaluation.
## Evaluation Metrics
The model was evaluated using the BLEU and SacreBLEU metrics:
- **BLEU Score:** 43.12
- **SacreBLEU Score:** 43.12
## How to Use
You can use this model in Python with the `transformers` library:
```python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("anithasoma/nllb-finetuned-telugu")
model = AutoModelForSeq2SeqLM.from_pretrained("anithasoma/nllb-finetuned-telugu")
def translate(text):
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translate("Hello, how are you?"))
```
## Model Card
### Intended Use
This model is intended for generating colloquial Telugu translations from English text, improving conversational AI, and enhancing informal communication applications.
### Limitations
- May not perform well on formal or domain-specific text.
- Can sometimes produce literal rather than context-aware translations.
### License
This model is licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
## Contributors
Developed by **[anithasoma](https://huggingface.co/anithasoma)** as part of the SAWiT AI Hackathon.
---
*For feedback or collaboration, reach out via Hugging Face!* 🚀 |