Instructions to use temporary0-0name/run_opt1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use temporary0-0name/run_opt1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="temporary0-0name/run_opt1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("temporary0-0name/run_opt1") model = AutoModelForCausalLM.from_pretrained("temporary0-0name/run_opt1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use temporary0-0name/run_opt1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "temporary0-0name/run_opt1" # 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_opt1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/temporary0-0name/run_opt1
- SGLang
How to use temporary0-0name/run_opt1 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_opt1" \ --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_opt1", "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_opt1" \ --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_opt1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use temporary0-0name/run_opt1 with Docker Model Runner:
docker model run hf.co/temporary0-0name/run_opt1
Commit History
-
Upload tokenizer
Verified signatureda94f39 -
Upload model
Verified signature117738e -
Upload tokenizer
Verified signatureac716bd -
Upload model
Verified signaturea77301f -
Upload tokenizer
Verified signature794a308 -
Upload model
Verified signatureae59521
-
Upload tokenizer
3afff67 -
Upload model
81f8fd7 -
End of training
8ff6249
-
End of training
0fe748a -
Training in progress, step 100
7b19ec8 -
End of training
f7b6880 -
Training in progress, step 100
8217eae -
End of training
a32579c -
Training in progress, step 100
fa95661 -
End of training
a150dcf -
Training in progress, step 100
b84ced7 -
End of training
f017612 -
Training in progress, step 100
4066532 -
End of training
b2ecead -
Training in progress, step 100
dc6359f -
End of training
164c519 -
Training in progress, step 100
87778f7 -
End of training
1548e26 -
Training in progress, step 100
60b4ff7 -
End of training
90d9fec -
Training in progress, step 100
c16f4fa -
End of training
92f3640 -
Training in progress, step 100
cb49278 -
End of training
c7e2a93 -
Training in progress, step 100
238afba -
initial commit
920fdd9