Instructions to use nev/pythia-sts-pictures with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nev/pythia-sts-pictures with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nev/pythia-sts-pictures")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nev/pythia-sts-pictures") model = AutoModelForCausalLM.from_pretrained("nev/pythia-sts-pictures", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nev/pythia-sts-pictures with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nev/pythia-sts-pictures" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nev/pythia-sts-pictures", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nev/pythia-sts-pictures
- SGLang
How to use nev/pythia-sts-pictures 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 "nev/pythia-sts-pictures" \ --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": "nev/pythia-sts-pictures", "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 "nev/pythia-sts-pictures" \ --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": "nev/pythia-sts-pictures", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nev/pythia-sts-pictures with Docker Model Runner:
docker model run hf.co/nev/pythia-sts-pictures
Commit History
-
Push model using huggingface_hub.
352cc5d -
Push model using huggingface_hub.
e79bdce -
Push model using huggingface_hub.
369597d -
Push model using huggingface_hub.
8db4a19
-
Push model using huggingface_hub.
5615738 -
Push model using huggingface_hub.
a8f107e -
Push model using huggingface_hub.
4ecc6a9 -
Push model using huggingface_hub.
33bcebe -
Push model using huggingface_hub.
aa2f13c -
Push model using huggingface_hub.
741171b -
Push model using huggingface_hub.
9403432 -
Push model using huggingface_hub.
f2ff08d -
Push model using huggingface_hub.
35299c5 -
Push model using huggingface_hub.
7872f0b -
Push model using huggingface_hub.
7da18a5 -
Push model using huggingface_hub.
e70cac1 -
Push model using huggingface_hub.
0f851a2 -
Push model using huggingface_hub.
39aa05a -
Push model using huggingface_hub.
6db5863 -
Push model using huggingface_hub.
7a26ab6
-
Push model using huggingface_hub.
ddf68d4 -
Push model using huggingface_hub.
0899ad5 -
Push model using huggingface_hub.
757b638 -
Push model using huggingface_hub.
55b66e8 -
Push model using huggingface_hub.
9dea18f -
Push model using huggingface_hub.
ebe13ca -
Push model using huggingface_hub.
965a1c4 -
Push model using huggingface_hub.
0db1575 -
Push model using huggingface_hub.
b655179 -
Push model using huggingface_hub.
117d15c -
Push model using huggingface_hub.
b246111 -
Push model using huggingface_hub.
32c0137 -
Push model using huggingface_hub.
6c28c8e -
Push model using huggingface_hub.
07b01ff -
Push model using huggingface_hub.
4e317ad -
Push model using huggingface_hub.
c3c61d7 -
Push model using huggingface_hub.
5a38464 -
Push model using huggingface_hub.
4197c39 -
Push model using huggingface_hub.
d00404f -
Push model using huggingface_hub.
24253a8 -
Push model using huggingface_hub.
629965e -
Push model using huggingface_hub.
10df4c6 -
Push model using huggingface_hub.
a7acd5c -
Push model using huggingface_hub.
63bdef7 -
Push model using huggingface_hub.
c5adb54 -
Push model using huggingface_hub.
cc9624e -
Push model using huggingface_hub.
07e6595 -
Push model using huggingface_hub.
8b63dc2 -
Push model using huggingface_hub.
3a83e2e