Instructions to use MathGPT/DinoSpark with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MathGPT/DinoSpark with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MathGPT/DinoSpark")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MathGPT/DinoSpark", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MathGPT/DinoSpark with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MathGPT/DinoSpark" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MathGPT/DinoSpark", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MathGPT/DinoSpark
- SGLang
How to use MathGPT/DinoSpark 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 "MathGPT/DinoSpark" \ --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": "MathGPT/DinoSpark", "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 "MathGPT/DinoSpark" \ --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": "MathGPT/DinoSpark", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MathGPT/DinoSpark with Docker Model Runner:
docker model run hf.co/MathGPT/DinoSpark
Commit History
-
Update README.md
Verified signature2f6897e -
Update README.md
Verified signaturef461a94 -
Update README.md
Verified signature9652567 -
Update README.md
Verified signatureb0f6d0c -
Update README.md
Verified signatured6013b9 -
Update README.md
Verified signatureadded another dataset7aca172
-
Update README.md
Verified signature242e56a -
Update README.md
Verified signature2365fb2 -
Update README.md
Verified signatureda95039 -
Update README.md
Verified signature25a19e3 -
Update README.md
Verified signature5d4d967 -
Update README.md
Verified signature333a068 -
Update README.md
Verified signature8168829 -
Update README.md
Verified signature0ff3682 -
Update README.md
Verified signature7999886 -
Update README.md
Verified signature6fb6eff -
Update README.md
Verified signature52b6a0a -
initial commit
Verified signaturec5b2208