Instructions to use ControlLLM/Llama3.1-8B-OpenMath16-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ControlLLM/Llama3.1-8B-OpenMath16-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ControlLLM/Llama3.1-8B-OpenMath16-Instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ControlLLM/Llama3.1-8B-OpenMath16-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ControlLLM/Llama3.1-8B-OpenMath16-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ControlLLM/Llama3.1-8B-OpenMath16-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ControlLLM/Llama3.1-8B-OpenMath16-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ControlLLM/Llama3.1-8B-OpenMath16-Instruct
- SGLang
How to use ControlLLM/Llama3.1-8B-OpenMath16-Instruct 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 "ControlLLM/Llama3.1-8B-OpenMath16-Instruct" \ --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": "ControlLLM/Llama3.1-8B-OpenMath16-Instruct", "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 "ControlLLM/Llama3.1-8B-OpenMath16-Instruct" \ --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": "ControlLLM/Llama3.1-8B-OpenMath16-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ControlLLM/Llama3.1-8B-OpenMath16-Instruct with Docker Model Runner:
docker model run hf.co/ControlLLM/Llama3.1-8B-OpenMath16-Instruct
Commit History
-
Add library name, pipeline tag, and link to paper (#1)
Verified signature- Add library name, pipeline tag, and link to paper (e530760aa1363894529669bbaef8f4bbf7cb46a9) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>f2c2ff4 -
link the open source code
Verified signaturec088c6c
-
Add paper link
Verified signaturea582b8e
-
update config
hawei_LinkedIn49cd7dd -
Update README.md
Verified signature8ce20ba -
Update README.md
Verified signature8c8ba18 -
Update README.md
Verified signaturec4c3925 -
Update README.md
Verified signature0125761 -
Update README.md
Verified signatureb4667ba -
Update README.md
Verified signature1ed2c60 -
Update README.md
Verified signature07189e4 -
Update README.md
Verified signature0d94b52 -
Update README.md
Verified signatureba08dcc -
Update README.md
Verified signature71470b4 -
Add model's evaluation result in readme.
Verified signaturede2cb9d
-
add plots
hawei_LinkedInde43f89 -
upload png files via git lfs
hawei_LinkedIn7732fda -
Update model card with benchmark result plotting
Verified signature7e75399 -
add benchmark results for reference
hawei_LinkedIn628d4e0 -
Update README.md
Verified signatured114d94 -
Update model card with benchmark data source
Verified signature1cfd3f7 -
Update model card with metrics
Verified signature50abae0 -
initial commit of readme
hawei_LinkedIn1549e51 -
upload the model checkpoint
hawei_LinkedIn2939905 -
Add first safetensor file
hawei_LinkedIn5295f66 -
Track safetensors files with Git LFS
hawei_LinkedInf08824b -
initial commit
Verified signatureb9614e7