Model Card for Ganga-en-hi-1b! π
The model Ganga-en-hi-1b
is a fine-tuned version of Ganga-1b
for the English to Hindi Translation Task.
Model Description π
Project Unity is an initiative to address India's linguistic diversity and richness by creating a comprehensive resource covering the country's major languages. We strive to achieve state-of-the-art performance in understanding and generating text in Indian languages. To achieve this, we train models on the monolingual regional languages of India. Our first release is the Ganga-1B model, which has been trained on a large dataset of public domain web-crawled Hindi language data, including news articles, web documents, books, government publications, educational materials, and social media conversations (filtered for quality). Additionally, the dataset has been further curated by native Indian speakers to ensure high quality. Significantly, the Ganga-1B model outperforms existing open-source models that support Indian languages, even at sizes of up to 7 billion parameters.
- Developed by: Lingo Research Group at IIT Gandhinagar
- Model type: Autoregressive Language Model
- Language(s) (NLP): Bilingual (Primary: Hindi [hi], Secondary: English [en])
- License: Apache 2.0
How to Get Started with the Model π¨π»βπ»
Use the code below to get started with the model.
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("LingoIITGN/ganga-1b")
model = AutoModelForCausalLM.from_pretrained("LingoIITGN/ganga-1b", device_map="auto")
input_text = "<bos>[INST]How are you?[/INST]"
input_ids = tokenizer.encode(input_text,
return_tensors="pt").to("cuda")
outputs = model.generate(input_ids, max_new_tokens=100)
print(tokenizer.decode(output[0][input_ids[0].shape[0]:], skip_special_tokens=True))
Evaluation
[More Information Needed]
Results π
Metrics
Model | ChrfFlores Dataset | ChrfIN22 Dataset |
---|---|---|
Ganga-1b | 40.75 | 37.54 |
Gemma-2b | 39.96 | 34.62 |
Llama-8b | 35.04 | 30.03 |
Summary
Bias, Risks, and Limitations π¨
Recommendations βΌοΈ
This model described is a research preview and is under ongoing iterative updations, and as such, it only provides limited safety measures. Additionally, it may generate offensive content. It is strictly prohibited to use the model for any illegal, harmful, violent, racist, or sexual purposes.
Model Card Contact βοΈ
Lingo Research Group at IIT Gandhinagar, India
Mail at: [email protected]
- Downloads last month
- 154
Model tree for LingoIITGN/ganga-en-hi-1b
Base model
LingoIITGN/ganga-1b