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
Commit History
-
Create README.md
3054c4e
-
Training in progress, step 19500
8033fc1 -
Training in progress, step 19000
bab2807 -
Training in progress, step 18500
5b04d4a -
Training in progress, step 18000
c15c8cd -
Training in progress, step 17500
75bc0cd -
Training in progress, step 17000
2804a09 -
Training in progress, step 16500
ed31c84 -
Training in progress, step 16000
731ff0a -
Training in progress, step 15500
8a4f565 -
Training in progress, step 15000
6f97a07 -
Training in progress, step 14500
fb8a254 -
Training in progress, step 14000
c6c159e -
Training in progress, step 13500
4c0bddf -
Training in progress, step 13000
12e5bfd -
Training in progress, step 12500
b70688c -
Training in progress, step 12000
4946ccd -
Training in progress, step 11500
d691bc3 -
Training in progress, step 11000
a5ac685 -
Training in progress, step 10500
62ef47d -
Training in progress, step 10000
dc0a234 -
Training in progress, step 9500
f9698eb -
Training in progress, step 9000
df75696 -
Training in progress, step 8500
8fff36a -
Training in progress, step 8000
6b31995 -
Training in progress, step 7500
71536dc -
Training in progress, step 7000
f92af9e -
Training in progress, step 6500
6289e1a -
Training in progress, step 6000
65a447d -
Training in progress, step 5500
e74894b -
Training in progress, step 5000
0f84f9b -
Training in progress, step 4500
10bfad8 -
Training in progress, step 4000
2019058 -
Training in progress, step 3500
9954446 -
Training in progress, step 3000
33b9ee8 -
Training in progress, step 2500
9345ccd -
Training in progress, step 2000
4a19fd5 -
Training in progress, step 1500
d10b6d8 -
Training in progress, step 1000
95d6882 -
Training in progress, step 500
9f6ef21 -
initial commit
69dd7ee