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 signaturef215541 -
Saving checkpoint
Verified signaturea2937fc -
Saving checkpoint
Verified signature42b48e2 -
Saving checkpoint
Verified signature1c7c2df -
Saving checkpoint
Verified signature68d4620 -
Saving checkpoint
Verified signature730dc00 -
Saving checkpoint
Verified signature9a3f1f7 -
Saving checkpoint
Verified signature3191391 -
Saving checkpoint
Verified signaturedd18917 -
Saving checkpoint
Verified signature3ebfc67 -
Saving checkpoint
Verified signaturea6eace5 -
Saving checkpoint
Verified signature05c6d67 -
Saving checkpoint
Verified signatureb8858c0 -
Saving checkpoint
Verified signature1da5a67 -
Saving checkpoint
Verified signaturef9e0068 -
Saving checkpoint
Verified signature5a8846c -
Saving checkpoint
Verified signaturead57476 -
Saving checkpoint
Verified signaturec89d6a1 -
Saving checkpoint
Verified signature5a501d9 -
Saving checkpoint
Verified signature4b453e6 -
Saving checkpoint
Verified signature2c4b2d7 -
Saving checkpoint
Verified signaturec3eb806 -
Saving checkpoint
Verified signature9d6fade -
Saving checkpoint
Verified signatureb5c5aa3 -
Saving checkpoint
Verified signature5666d2a -
Saving checkpoint
Verified signature0058cc3 -
Saving checkpoint
Verified signatured8c144d -
Saving checkpoint
Verified signatureb9f6a4d -
Saving checkpoint
Verified signature45a3b18 -
Saving checkpoint
Verified signaturebfc3abf -
Saving checkpoint
Verified signature30a571c -
Saving checkpoint
Verified signature436bfc9 -
Saving checkpoint
Verified signature3154d23 -
Saving checkpoint
Verified signature32e2dc0 -
Saving checkpoint
Verified signaturef81f556 -
Saving checkpoint
Verified signature1a8b27d -
Saving checkpoint
Verified signaturef2b56e9 -
Saving checkpoint
Verified signature3e35fd0 -
Saving checkpoint
Verified signature6a8c2c0 -
Saving checkpoint
Verified signaturee33f73d -
Saving checkpoint
Verified signaturebf836aa -
Saving checkpoint
Verified signature7a307e9 -
Saving checkpoint
Verified signatureffcf090 -
Saving checkpoint
Verified signatureb4022e8 -
Saving checkpoint
Verified signaturea3e19c0 -
Saving checkpoint
Verified signatureb9b5b24 -
Saving checkpoint
Verified signature2a7fc6e -
Saving checkpoint
Verified signatureb48d870 -
Saving checkpoint
Verified signature225bd90 -
Saving checkpoint
Verified signature8a3be90