Instructions to use Nithya9404/model-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nithya9404/model-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Nithya9404/model-finetuned")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Nithya9404/model-finetuned") model = AutoModelForCausalLM.from_pretrained("Nithya9404/model-finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Nithya9404/model-finetuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nithya9404/model-finetuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nithya9404/model-finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Nithya9404/model-finetuned
- SGLang
How to use Nithya9404/model-finetuned 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 "Nithya9404/model-finetuned" \ --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": "Nithya9404/model-finetuned", "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 "Nithya9404/model-finetuned" \ --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": "Nithya9404/model-finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Nithya9404/model-finetuned with Docker Model Runner:
docker model run hf.co/Nithya9404/model-finetuned
Download training_args.bin from Nithya9404/model-finetuned: direct link, hf CLI and curl.
- Browser
- Download file 5.78 kB
-
https://huggingface.co/Nithya9404/model-finetuned/resolve/main/training_args.bin
- Command line
-
hf download hf://Nithya9404/model-finetuned/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/Nithya9404/model-finetuned/resolve/main/training_args.bin
5.78 kB
- Xet hash:
- 1aece41b36b37174c497ca31759be00f37c063e879afdb0771c8b5e4566667f8
- Size of remote file:
- 5.78 kB
- SHA256:
- c6d7a8ef44be088229f543581cd6b18c4805150cd7075232be7c8609cc840f5a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.