Instructions to use temporary0-0name/run_opt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use temporary0-0name/run_opt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="temporary0-0name/run_opt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("temporary0-0name/run_opt") model = AutoModelForCausalLM.from_pretrained("temporary0-0name/run_opt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use temporary0-0name/run_opt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "temporary0-0name/run_opt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "temporary0-0name/run_opt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/temporary0-0name/run_opt
- SGLang
How to use temporary0-0name/run_opt 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 "temporary0-0name/run_opt" \ --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": "temporary0-0name/run_opt", "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 "temporary0-0name/run_opt" \ --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": "temporary0-0name/run_opt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use temporary0-0name/run_opt with Docker Model Runner:
docker model run hf.co/temporary0-0name/run_opt
Commit History
-
End of training
88c9986 -
Training in progress, step 100
476f764 -
End of training
5eaa0c7 -
Training in progress, step 1800
3e38f2d -
Training in progress, step 1700
9480129 -
Training in progress, step 1600
51309b4 -
Training in progress, step 1500
1e3674f -
Training in progress, step 1400
4cc7603 -
Training in progress, step 1300
fc24efb -
Training in progress, step 1200
399f594 -
Training in progress, step 1100
9503598 -
Training in progress, step 1000
3bbe3bd -
Training in progress, step 900
dcda139 -
Training in progress, step 800
48635fa -
Training in progress, step 700
78ab6f1 -
Training in progress, step 600
82af514 -
Training in progress, step 500
c0ae689 -
Training in progress, step 400
b1a5103 -
Training in progress, step 300
67d3f4b -
Training in progress, step 200
d975397 -
Training in progress, step 100
4c1a85b -
Training in progress, step 100
767e4d1 -
End of training
ca204e0 -
Training in progress, step 100
e0e1326 -
End of training
26cc940 -
Training in progress, step 100
ddcb6d3 -
End of training
c1cf337 -
Training in progress, step 100
fcd5364 -
End of training
0942a58 -
Training in progress, step 100
9357827 -
End of training
1aeee19 -
Training in progress, step 100
82216f7 -
End of training
4647edb -
Training in progress, step 100
6e4a371 -
End of training
97dd670 -
Training in progress, epoch 1
9c9d08f -
End of training
e65daa3 -
Training in progress, epoch 1
efdc87d -
Training in progress, epoch 3
25ba9ae -
Training in progress, epoch 2
1866a40 -
Training in progress, epoch 1
02991b4
-
End of training
06b9939 -
Training in progress, step 1800
2d34fa2 -
Training in progress, step 1700
e1dd6ae -
Training in progress, step 1600
e2ca92c -
Training in progress, step 1500
8db0f65 -
Training in progress, step 1400
cd2cb63 -
Training in progress, step 1300
ba4fba6 -
Training in progress, step 1200
9dd0cb1 -
Training in progress, step 1100
9ad6f1f