Instructions to use NeerjaK/NLP-Assignment2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeerjaK/NLP-Assignment2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NeerjaK/NLP-Assignment2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NeerjaK/NLP-Assignment2") model = AutoModelForCausalLM.from_pretrained("NeerjaK/NLP-Assignment2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NeerjaK/NLP-Assignment2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NeerjaK/NLP-Assignment2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NeerjaK/NLP-Assignment2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NeerjaK/NLP-Assignment2
- SGLang
How to use NeerjaK/NLP-Assignment2 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/NLP-Assignment2" \ --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/NLP-Assignment2", "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/NLP-Assignment2" \ --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/NLP-Assignment2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NeerjaK/NLP-Assignment2 with Docker Model Runner:
docker model run hf.co/NeerjaK/NLP-Assignment2
Commit History
-
Saving checkpoint
Verified signaturec26a4b3 -
Saving checkpoint
Verified signature1d94799 -
Saving checkpoint
Verified signaturecb40988 -
Saving checkpoint
Verified signaturef33b19c -
Saving checkpoint
Verified signature53f6512 -
Saving checkpoint
Verified signaturea99a4f6 -
Saving checkpoint
Verified signature680c031 -
Saving checkpoint
Verified signature6899b35 -
Saving checkpoint
Verified signatureeb75dc4 -
Saving checkpoint
Verified signature61c0405 -
Saving checkpoint
Verified signature76c0ce3 -
Saving checkpoint
Verified signature982aefd -
Saving checkpoint
Verified signature4912212 -
Saving checkpoint
Verified signature97eb223 -
Saving checkpoint
Verified signature8404d87 -
Saving checkpoint
Verified signature61d8fcb -
Saving checkpoint
Verified signatureea5e55b -
Saving checkpoint
Verified signature149ae0b -
Saving checkpoint
Verified signaturea3d23bd -
Saving checkpoint
Verified signature794a951 -
Saving checkpoint
Verified signature0d6847d -
Saving checkpoint
Verified signaturefe1a18d -
Saving checkpoint
Verified signature662a7f0 -
Saving checkpoint
Verified signature9fac086 -
Saving checkpoint
Verified signature3ec6095 -
Saving checkpoint
Verified signature99cdae7 -
Saving checkpoint
Verified signaturecef73de -
Saving checkpoint
Verified signature00334bd -
Saving checkpoint
Verified signature7d51fcf -
Saving checkpoint
Verified signature4b39f1e -
Saving checkpoint
Verified signaturec46e04f -
Saving checkpoint
Verified signature3b6576f -
Saving checkpoint
Verified signature4b28bab -
Saving checkpoint
Verified signatureb384288 -
Saving checkpoint
Verified signature8343c8f -
Saving checkpoint
Verified signature23513dc -
Saving checkpoint
Verified signature6d11215 -
Saving checkpoint
Verified signatureb6088e3 -
Saving checkpoint
Verified signaturee08ade7 -
Saving checkpoint
Verified signature81fd69b -
Saving checkpoint
Verified signature9382283 -
Saving checkpoint
Verified signaturec00057f -
Saving checkpoint
Verified signature5e6a279 -
Saving checkpoint
Verified signature5d0d5c7 -
Saving checkpoint
Verified signaturebc048c5 -
Saving checkpoint
Verified signatured492194 -
Saving checkpoint
Verified signatureacc1dc6 -
Saving checkpoint
Verified signatured73768b -
Saving checkpoint
Verified signature2c5bbeb -
Saving checkpoint
Verified signaturedd0c57a