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 signature5a8b416 -
Saving checkpoint
Verified signaturee1c2a32 -
Saving checkpoint
Verified signaturee6e71b4 -
Saving checkpoint
Verified signature4cc3389 -
Saving checkpoint
Verified signaturecb8e205 -
Saving checkpoint
Verified signature17bd4d7 -
Saving checkpoint
Verified signature933602e -
Saving checkpoint
Verified signaturef0eddb6 -
Saving checkpoint
Verified signature1e7403e -
Saving checkpoint
Verified signature0111a3a -
Saving checkpoint
Verified signature69edf5a -
Saving checkpoint
Verified signature401c34d -
Saving checkpoint
Verified signature0233eb0 -
Saving checkpoint
Verified signature9e892d7 -
Saving checkpoint
Verified signature9ba80df -
Saving checkpoint
Verified signature48411b9 -
Saving checkpoint
Verified signatureb7c33df -
Saving checkpoint
Verified signature120566c -
Saving checkpoint
Verified signature186b6c0 -
Saving checkpoint
Verified signaturee912a51 -
Saving checkpoint
Verified signature54a9028 -
Saving checkpoint
Verified signature1605365 -
Saving checkpoint
Verified signaturef0c3aad -
Saving checkpoint
Verified signature05c2a66 -
Saving checkpoint
Verified signature7d9c5ab -
Saving checkpoint
Verified signature40312db -
Saving checkpoint
Verified signature596016e -
Saving checkpoint
Verified signature2381ed3 -
Saving checkpoint
Verified signature9f45eaa -
Saving checkpoint
Verified signature1a66910 -
Saving checkpoint
Verified signatureac5acec -
Saving checkpoint
Verified signature8419ce8 -
Saving checkpoint
Verified signature2b2c944 -
Saving checkpoint
Verified signature43ed554 -
Saving checkpoint
Verified signature84dddd7 -
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