Instructions to use nafiz09/scott_npr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nafiz09/scott_npr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="nafiz09/scott_npr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("nafiz09/scott_npr") model = AutoModelForMultimodalLM.from_pretrained("nafiz09/scott_npr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nafiz09/scott_npr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nafiz09/scott_npr" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nafiz09/scott_npr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nafiz09/scott_npr
- SGLang
How to use nafiz09/scott_npr 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 "nafiz09/scott_npr" \ --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": "nafiz09/scott_npr", "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 "nafiz09/scott_npr" \ --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": "nafiz09/scott_npr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nafiz09/scott_npr with Docker Model Runner:
docker model run hf.co/nafiz09/scott_npr
Commit History
-
Training done
d8cc3f2 -
Training done
899ded7 -
Training in progress, epoch 7
004cd5e -
Training in progress, epoch 6
81601a0 -
Training in progress, epoch 5
e828aef -
Training in progress, epoch 4
e25dfa1 -
Training in progress, epoch 3
1c5ba1a -
Training in progress, epoch 2
b3182e1 -
Training in progress, epoch 1
f8c0377 -
Training in progress, epoch 0
6f3a3c8 -
Upload 3 files
f45ccd3 -
Delete pytorch_model.bin
1c74feb -
Delete generation_config.json
583bfc1 -
Delete config.json
dbb1d8a -
Training in progress, epoch 0
de4bc8b -
Upload generation_config.json
7a44fa7 -
Upload 2 files
30788bd -
Delete pytorch_model.bin
eaffa60 -
Delete generation_config.json
582205e -
Delete config.json
47211f2
-
Training in progress, epoch 0
5df4267 -
Training in progress, epoch 10
7b31a81 -
Training in progress, epoch 9
a03dea0 -
Training in progress, epoch 8
8380bd0 -
Training in progress, epoch 7
95fdad7 -
Training in progress, epoch 6
d322d37 -
Training in progress, epoch 5
31bc0a4 -
Training in progress, epoch 4
3b6f1dd -
Training in progress, epoch 3
77a9bdb -
Training in progress, epoch 2
ded76fe -
Training in progress, epoch 1
209d253 -
Training in progress, epoch 0
38cc6b0
-
Upload pytorch_model.bin
11968b8 -
Delete pytorch_model.bin
b807c16 -
Upload 10 files
8734b90 -
initial commit
eb1866b