Instructions to use abirmaheshwari/abirgujv1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abirmaheshwari/abirgujv1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="abirmaheshwari/abirgujv1")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("abirmaheshwari/abirgujv1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use abirmaheshwari/abirgujv1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "abirmaheshwari/abirgujv1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abirmaheshwari/abirgujv1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/abirmaheshwari/abirgujv1
- SGLang
How to use abirmaheshwari/abirgujv1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "abirmaheshwari/abirgujv1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abirmaheshwari/abirgujv1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "abirmaheshwari/abirgujv1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abirmaheshwari/abirgujv1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use abirmaheshwari/abirgujv1 with Docker Model Runner:
docker model run hf.co/abirmaheshwari/abirgujv1
license: mit language: - gu metrics: - glue pipeline_tag: text-generation library_name: transformers tags: - gujurati - indic-model - abirmaheshwari - A.B.I.R-ecosystem - Indian-lang - indiaai
ABIRGUJv1 — Gujarati-First Transformer Language Model
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.
Model Details
Model Description
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.
- Developed by: Abir Maheshwari
- Funded by: Independent Research
- Shared by: Abir Maheshwari
- Model type: Causal Language Model (Decoder-only Transformer)
- Language(s): Gujarati, English
- License: MIT
- Finetuned from model: None (trained from scratch)
Model Sources
- Repository: https://huggingface.co/abirmaheshwari/abirguJv1
- Architecture: Custom Transformer
- Framework: PyTorch + HuggingFace Transformers
Uses
Direct Use
ABIRGUJv1 is suitable for:
- Gujarati text generation
- English-to-Gujarati translation
- Gujarati chatbots
- Text completion
- NLP research
- Educational purposes
Example applications:
- Gujarati AI assistants
- Content generation
- Research on small language models
Downstream Use
This model can be fine-tuned for:
- Gujarati instruction models
- Question answering
- Domain-specific NLP tasks
- Gujarati conversational agents
Out-of-Scope Use
Not recommended for:
- Critical decision systems
- Medical diagnosis
- Legal advice
- Safety-critical applications This is an early version model.
Bias, Risks, and Limitations
ABIRGUJv1 may:
- Produce incorrect information
- Reflect biases present in training data
- Generate incomplete or nonsensical outputs This is expected for models trained on limited datasets.
Recommendations
Use this model:
- For research
- For experimentation
- For fine-tuning Not recommended for production without further training.
How to Get Started
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("abirmaheshwari/abirguJv1", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("abirmaheshwari/abirguJv1", trust_remote_code=True)
input_text = "મારું નામ"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(
**inputs,
max_length=100,
temperature=0.7
)
print(tokenizer.decode(outputs[0]))
- Downloads last month
- 8