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