ABIRGUJv1 is a custom transformer-based causal language model designed specifically for Gujarati and English text generation. It is trained from scratch using a custom tokenizer and architecture optimized for efficient Gujarati language understanding, translation, and generation.
This model focuses on providing lightweight, efficient Gujarati NLP capabilities while maintaining strong contextual understanding.
ABIRGUJv1 is a decoder-only transformer model trained entirely from scratch without using pretrained weights. It uses a custom tokenizer trained on Gujarati-focused data and is optimized for efficient inference and fine-tuning.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("abirmaheshwari/abirguJv1", trust_remote_code=True)
4model = AutoModelForCausalLM.from_pretrained("abirmaheshwari/abirguJv1", trust_remote_code=True)
5
6input_text = "મારું નામ"
7
8inputs = tokenizer(input_text, return_tensors="pt")
9
10outputs = model.generate(
11 **inputs,
12 max_length=100,
13 temperature=0.7
14)
15print(tokenizer.decode(outputs[0]))