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 6000
Verified signature6058b7c -
Training in progress, step 5800, checkpoint
Verified signaturebc10e2d -
Training in progress, step 5800
Verified signaturee3321bc -
Saving checkpoint
Verified signature3e287d9 -
Training in progress, step 5600, checkpoint
Verified signaturef457796 -
Training in progress, step 5600
Verified signature06fa697 -
Training in progress, step 5400, checkpoint
Verified signature62523e7 -
Training in progress, step 5400
Verified signatureef3fc5b -
Training in progress, step 5200, checkpoint
Verified signature372fddb -
Training in progress, step 5200
Verified signatured33fdfb -
Training in progress, step 5000, checkpoint
Verified signature9cd95ce -
Training in progress, step 5000
Verified signaturecdb63db -
Training in progress, step 4800, checkpoint
Verified signaturefb05bdb -
Training in progress, step 4800
Verified signaturef5cedf3 -
Training in progress, step 4600, checkpoint
Verified signaturec9682df -
Training in progress, step 4600
Verified signature28baf01 -
Training in progress, step 4400, checkpoint
Verified signaturec80b6bb -
Training in progress, step 4400
Verified signature06fd253 -
Training in progress, step 4200, checkpoint
Verified signature80fce5b -
Training in progress, step 4200
Verified signature391287d -
Training in progress, step 4000, checkpoint
Verified signaturecae5998 -
Training in progress, step 4000
Verified signature975c292 -
Training in progress, step 3800, checkpoint
Verified signature64346fc -
Training in progress, step 3800
Verified signature99fc1e5 -
Training in progress, step 3600, checkpoint
Verified signaturefe6b8b3 -
Training in progress, step 3600
Verified signature980ffa0 -
Training in progress, step 3400, checkpoint
Verified signature7e38dfe -
Training in progress, step 3400
Verified signaturea6894f7 -
Saving checkpoint
Verified signature4204c12 -
Training in progress, step 3200, checkpoint
Verified signature369e5a3 -
Training in progress, step 3200
Verified signature746e96d -
Training in progress, step 3000, checkpoint
Verified signature12030f4 -
Training in progress, step 3000
Verified signature3a28922 -
Training in progress, step 2800, checkpoint
Verified signaturea47eb3a -
Training in progress, step 2800
Verified signaturec6c8197 -
Training in progress, step 2600, checkpoint
Verified signaturebba7085 -
Training in progress, step 2600
Verified signaturefad9bc2 -
Training in progress, step 2400, checkpoint
Verified signatureb4737ec -
Training in progress, step 2400
Verified signaturea24dc01 -
Training in progress, step 2200, checkpoint
Verified signature21c57a3 -
Training in progress, step 2200
Verified signaturec5c1af6 -
Training in progress, step 2000, checkpoint
Verified signature2bcab0e -
Training in progress, step 2000
Verified signature2b7bd94 -
Training in progress, step 1800, checkpoint
Verified signaturee7ff895 -
Training in progress, step 1800
Verified signature442785d -
Saving checkpoint
Verified signaturea5e24ab -
Training in progress, step 1600, checkpoint
Verified signatureec805e4 -
Training in progress, step 1600
Verified signature0728873 -
Training in progress, step 1400, checkpoint
Verified signature7225d21