Instructions to use suhaaspk/math-corpus-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use suhaaspk/math-corpus-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="suhaaspk/math-corpus-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("suhaaspk/math-corpus-model") model = AutoModelForCausalLM.from_pretrained("suhaaspk/math-corpus-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use suhaaspk/math-corpus-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "suhaaspk/math-corpus-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "suhaaspk/math-corpus-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/suhaaspk/math-corpus-model
- SGLang
How to use suhaaspk/math-corpus-model 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 "suhaaspk/math-corpus-model" \ --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": "suhaaspk/math-corpus-model", "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 "suhaaspk/math-corpus-model" \ --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": "suhaaspk/math-corpus-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use suhaaspk/math-corpus-model with Docker Model Runner:
docker model run hf.co/suhaaspk/math-corpus-model
Commit History
-
Upload 2 files
Verified signature2cdf33d -
Training in progress, step 33000
Verified signaturebf73854 -
Training in progress, step 32500
Verified signature3fc10c3 -
Training in progress, step 32000
Verified signature9aa2647 -
Training in progress, step 31500
Verified signatureb13f01a -
Training in progress, step 31000
Verified signature631ff48 -
Training in progress, step 30500
Verified signature15af091 -
Training in progress, step 30000
Verified signatured4e3e16 -
Training in progress, step 29500
Verified signatureedafe78 -
Training in progress, step 29000
Verified signaturef065717 -
Training in progress, step 28500
Verified signature384a301 -
Training in progress, step 28000
Verified signature2b6100c -
Training in progress, step 27500
Verified signature66c69b3 -
Training in progress, step 27000
Verified signatureae8a970 -
Training in progress, step 26500
Verified signaturec36757c -
Training in progress, step 26000
Verified signatured0f38cc -
Training in progress, step 25500
Verified signature9f2a20f -
Training in progress, step 25000
Verified signature98b78e3 -
Training in progress, step 24500
Verified signature334ac6a -
Training in progress, step 24000
Verified signature1583b15 -
Training in progress, step 23500
Verified signaturec46c1e1 -
Training in progress, step 23000
Verified signature84f1e5d -
Training in progress, step 22500
Verified signature985cee9 -
Training in progress, step 22000
Verified signature75d908b -
Training in progress, step 21500
Verified signature8288429 -
Training in progress, step 21000
Verified signaturefc414f3 -
Training in progress, step 20500
Verified signature4d1a710 -
Training in progress, step 20000
Verified signature2d20871 -
Training in progress, step 19500
Verified signaturea8c788a -
Training in progress, step 19000
Verified signaturefa3a716 -
Training in progress, step 18500
Verified signatured6ba2dc -
Training in progress, step 18000
Verified signature975e708 -
Training in progress, step 17500
Verified signaturee8fb8b2 -
Training in progress, step 17000
Verified signatureffccd42 -
Training in progress, step 16500
Verified signaturefd6b135 -
Training in progress, step 16000
Verified signature02d5bd7 -
Training in progress, step 15500
Verified signature432994a -
Training in progress, step 15000
Verified signature07b8cfd -
Training in progress, step 14500
Verified signaturebab2002 -
Training in progress, step 14000
Verified signaturec465729
-
Training in progress, step 13500
Verified signaturee6ab34c -
Training in progress, step 13000
Verified signature533d385 -
Training in progress, step 12500
Verified signature5cf8143 -
Training in progress, step 12000
Verified signature744ebc8 -
Training in progress, step 11500
Verified signature28f771d -
Training in progress, step 11000
Verified signatureec4b4a4 -
Training in progress, step 10500
Verified signature86e9fc5 -
Training in progress, step 10000
Verified signature1a91fdc -
Training in progress, step 9500
Verified signature914a79f -
Training in progress, step 9000
Verified signature26f7f07