Instructions to use NeerjaK/Urdu_Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeerjaK/Urdu_Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NeerjaK/Urdu_Model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NeerjaK/Urdu_Model") model = AutoModelForCausalLM.from_pretrained("NeerjaK/Urdu_Model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NeerjaK/Urdu_Model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NeerjaK/Urdu_Model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NeerjaK/Urdu_Model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NeerjaK/Urdu_Model
- SGLang
How to use NeerjaK/Urdu_Model 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 "NeerjaK/Urdu_Model" \ --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": "NeerjaK/Urdu_Model", "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 "NeerjaK/Urdu_Model" \ --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": "NeerjaK/Urdu_Model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NeerjaK/Urdu_Model with Docker Model Runner:
docker model run hf.co/NeerjaK/Urdu_Model
Commit History
-
Training in progress, step 6000, checkpoint
Verified signaturefaa6eb6 -
Training in progress, step 5800, checkpoint
Verified signaturebc10e2d -
Training in progress, step 5600, checkpoint
Verified signaturef457796 -
Training in progress, step 5400, checkpoint
Verified signature62523e7 -
Training in progress, step 5200, checkpoint
Verified signature372fddb -
Training in progress, step 5000, checkpoint
Verified signature9cd95ce -
Training in progress, step 4800, checkpoint
Verified signaturefb05bdb -
Training in progress, step 4600, checkpoint
Verified signaturec9682df -
Training in progress, step 4400, checkpoint
Verified signaturec80b6bb -
Training in progress, step 4200, checkpoint
Verified signature80fce5b -
Training in progress, step 4000, checkpoint
Verified signaturecae5998 -
Training in progress, step 3800, checkpoint
Verified signature64346fc -
Training in progress, step 3600, checkpoint
Verified signaturefe6b8b3 -
Training in progress, step 3400, checkpoint
Verified signature7e38dfe -
Training in progress, step 3200, checkpoint
Verified signature369e5a3 -
Training in progress, step 3000, checkpoint
Verified signature12030f4 -
Training in progress, step 2800, checkpoint
Verified signaturea47eb3a -
Training in progress, step 2600, checkpoint
Verified signaturebba7085 -
Training in progress, step 2400, checkpoint
Verified signatureb4737ec -
Training in progress, step 2200, checkpoint
Verified signature21c57a3 -
Training in progress, step 2000, checkpoint
Verified signature2bcab0e -
Training in progress, step 1800, checkpoint
Verified signaturee7ff895 -
Training in progress, step 1600, checkpoint
Verified signatureec805e4 -
Training in progress, step 1400, checkpoint
Verified signature7225d21 -
Training in progress, step 1200, checkpoint
Verified signature0e6e147 -
Training in progress, step 1000, checkpoint
Verified signaturedbc0570 -
Training in progress, step 800, checkpoint
Verified signature0ec6837 -
Training in progress, step 600, checkpoint
Verified signature68e42f9 -
Training in progress, step 1000, checkpoint
Verified signaturedb36a72 -
Training in progress, step 800, checkpoint
Verified signatured81581b -
Training in progress, step 600, checkpoint
Verified signaturea53a1e2 -
Training in progress, step 400, checkpoint
Verified signature0f5e9ef -
Training in progress, step 200, checkpoint
Verified signaturee51d3e9