Downloads · 30 days
24
1% of all-time downloads
Arambh/angika-llm-1b
angika-llm-1b is a machine learning model from Arambh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
24
1% of all-time downloads
All-time downloads
3.3K
Public
Parameters
995M
215 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors4 GB · 100%
From the Hugging Face model README
Angika-LLM-1b is the first generative language model developed for the Angika language by Aarambh AI Research Group. It aims to preserve and promote Angika, an endangered language spoken in parts of Bihar and Jharkhand, India. The model is built on cutting-edge transformer architectures and can perform tasks like text generation, translation, and conversational AI in Angika. A key challenge in developing Angika-LLM-1b was the lack of annotated datasets. To overcome this, the team used data augmentation, translation of existing resources, and crowdsourcing. The model captures the unique syntax and expressions of Angika, making it contextually accurate for various applications. Angika-LLM-1b opens up opportunities for creating digital content, educational resources, and language learning tools in Angika. It also promotes linguistic diversity, empowering smaller language communities to have a presence in the digital world. This model sets a precedent for developing AI tools for other regional languages and contributes to the global movement of using AI for social good and language preservation.
!pip install transformers torch
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_name = "Arambh/angika-llm-1b"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
def generate_text(prompt, max_length=100, num_return_sequences=1):
# Tokenize input prompt
inputs = tokenizer(prompt, return_tensors="pt")
# Generate text
outputs = model.generate(
**inputs,
max_length=max_length,
num_return_sequences=num_return_sequences,
no_repeat_ngram_size=2, # Prevents repetition
early_stopping=True
)
# Decode and return the generated text
return [tokenizer.decode(output, skip_special_tokens=True) for output in outputs]
if __name__ == "__main__":
prompt = "ये सब पहाड़ी पर पुरानो अभिलेख मिलै छै "
generated_text = generate_text(prompt, max_length=100)
for i, text in enumerate(generated_text):
print(f"Generated Text {i+1}:\n{text}\n")
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 4.5134 | 0.9999 | 11388 | nan |
| Satyajeet Azad |
|---|
| Data Scientist,IIT Delhi |
| Raj Kumar |
|---|
| Data Analyst,IIT Jodhpur |
| Sumant Azad |
|---|
| Business Analyst,IIT Patna |