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 signatureb42854f -
Saving checkpoint
Verified signature6874184 -
Saving checkpoint
Verified signature106d232 -
Saving checkpoint
Verified signatured0f1728 -
Saving checkpoint
Verified signatureec944d5 -
Saving checkpoint
Verified signature8bcee87 -
Saving checkpoint
Verified signaturefbad76f -
Saving checkpoint
Verified signature85741c5 -
Saving checkpoint
Verified signature39de8f8 -
Saving checkpoint
Verified signature05fa995 -
Saving checkpoint
Verified signaturee3e1704 -
Saving checkpoint
Verified signaturee8eec23 -
Saving checkpoint
Verified signaturee949761 -
Saving checkpoint
Verified signature89b777c -
Saving checkpoint
Verified signatured093104 -
Saving checkpoint
Verified signatureabc23a9 -
Saving checkpoint
Verified signature50a9ac7 -
Saving checkpoint
Verified signature69647a7 -
Saving checkpoint
Verified signaturee120914 -
Saving checkpoint
Verified signaturef720741 -
Saving checkpoint
Verified signature08ff6fc -
Saving checkpoint
Verified signaturea821195 -
Saving checkpoint
Verified signature5663f22 -
Saving checkpoint
Verified signature450188c -
Saving checkpoint
Verified signature5e48d78 -
Saving checkpoint
Verified signature4583602 -
Saving checkpoint
Verified signature2a1940f -
Saving checkpoint
Verified signature30d6483 -
Saving checkpoint
Verified signature08b3896 -
Saving checkpoint
Verified signaturecf03fec -
Saving checkpoint
Verified signaturea9b124c -
Saving checkpoint
Verified signature3134f77 -
Saving checkpoint
Verified signatureeb447a5 -
Saving checkpoint
Verified signaturec3bb802 -
Saving checkpoint
Verified signature1b97c1d -
Saving checkpoint
Verified signaturec346cff -
Saving checkpoint
Verified signaturebb32851 -
Saving checkpoint
Verified signature733ab38 -
Saving checkpoint
Verified signature738b27d -
Saving checkpoint
Verified signature2d97546 -
Saving checkpoint
Verified signatureb5bc14b -
Saving checkpoint
Verified signatureaf4117b -
Saving checkpoint
Verified signature7718b76 -
Saving checkpoint
Verified signature9c910f2 -
Saving checkpoint
Verified signature0d6df40 -
Saving checkpoint
Verified signature7fd4482 -
Saving checkpoint
Verified signature75cd1c0 -
Saving checkpoint
Verified signatured9868f2 -
Saving checkpoint
Verified signature71b8012 -
Saving checkpoint
Verified signaturedcaeb58