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 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 -
Saving checkpoint
Verified signature33a4d0e -
Saving checkpoint
Verified signatured0ccc71 -
Saving checkpoint
Verified signaturea0f7f22 -
Saving checkpoint
Verified signatureb70df63 -
Saving checkpoint
Verified signature466dbb9 -
Saving checkpoint
Verified signature327fc8f -
Saving checkpoint
Verified signaturea779207 -
Saving checkpoint
Verified signature1722d21 -
Saving checkpoint
Verified signature026895d -
Saving checkpoint
Verified signature7135b6c -
Saving checkpoint
Verified signaturebdbef54 -
Saving checkpoint
Verified signatureea074c7 -
Saving checkpoint
Verified signaturefebb9a0 -
Saving checkpoint
Verified signature783132f -
Saving checkpoint
Verified signaturec909088 -
Saving checkpoint
Verified signatureb7e3dae -
Saving checkpoint
Verified signature815766c -
Saving checkpoint
Verified signatureed7062e -
Saving checkpoint
Verified signature73c0e7d -
Saving checkpoint
Verified signatured0b00ac -
Saving checkpoint
Verified signature2841a23 -
Saving checkpoint
Verified signaturea87749d -
Saving checkpoint
Verified signature2c3e031 -
Saving checkpoint
Verified signaturee9a2464 -
Saving checkpoint
Verified signaturedcc7864 -
Saving checkpoint
Verified signature675bdd5 -
Saving checkpoint
Verified signature0085ead -
Saving checkpoint
Verified signature68ab1f6 -
Saving checkpoint
Verified signatured1ea1d2 -
Saving checkpoint
Verified signaturec6ce564 -
Saving checkpoint
Verified signature2383f1b -
Saving checkpoint
Verified signature316ce39 -
Saving checkpoint
Verified signature7a9153f -
Saving checkpoint
Verified signature1c7ac5c -
Saving checkpoint
Verified signature3dbf3db -
Saving checkpoint
Verified signaturee6e5a88 -
Saving checkpoint
Verified signature8618cd7 -
Saving checkpoint
Verified signature46c3356 -
Saving checkpoint
Verified signature057cfd9 -
Saving checkpoint
Verified signatureda88e37