Instructions to use nithish116/TestTraining with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nithish116/TestTraining with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nithish116/TestTraining")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nithish116/TestTraining") model = AutoModelForCausalLM.from_pretrained("nithish116/TestTraining", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nithish116/TestTraining with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nithish116/TestTraining" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nithish116/TestTraining", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nithish116/TestTraining
- SGLang
How to use nithish116/TestTraining 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 "nithish116/TestTraining" \ --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": "nithish116/TestTraining", "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 "nithish116/TestTraining" \ --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": "nithish116/TestTraining", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nithish116/TestTraining with Docker Model Runner:
docker model run hf.co/nithish116/TestTraining
Commit History
-
Upload tokenizer
Verified signaturef4b1c1b -
Upload OPTForCausalLM
Verified signature0a0dea1 -
Delete tokenizer.json
Verified signature2148895 -
Delete config.json
Verified signatureb51a864 -
Delete special_tokens_map.json
Verified signaturee2d04ae -
Delete model.safetensors.index.json
Verified signature946c734 -
Delete model-00002-of-00002.safetensors
Verified signatured3de2bc -
Delete model-00001-of-00002.safetensors
Verified signaturead61353 -
Delete README.md
Verified signature79acd36 -
Delete .gitattributes
Verified signaturea7d4ebf -
Delete tokenizer_config.json
Verified signaturede7ded5 -
Upload tokenizer
Verified signature04164e0
-
Upload model
Verified signatureec47871 -
initial commit
Verified signature484b356