Instructions to use huypn16/MetaMath-DeepSeekMath-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huypn16/MetaMath-DeepSeekMath-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huypn16/MetaMath-DeepSeekMath-7B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huypn16/MetaMath-DeepSeekMath-7B") model = AutoModelForCausalLM.from_pretrained("huypn16/MetaMath-DeepSeekMath-7B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use huypn16/MetaMath-DeepSeekMath-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huypn16/MetaMath-DeepSeekMath-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huypn16/MetaMath-DeepSeekMath-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huypn16/MetaMath-DeepSeekMath-7B
- SGLang
How to use huypn16/MetaMath-DeepSeekMath-7B 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 "huypn16/MetaMath-DeepSeekMath-7B" \ --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": "huypn16/MetaMath-DeepSeekMath-7B", "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 "huypn16/MetaMath-DeepSeekMath-7B" \ --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": "huypn16/MetaMath-DeepSeekMath-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huypn16/MetaMath-DeepSeekMath-7B with Docker Model Runner:
docker model run hf.co/huypn16/MetaMath-DeepSeekMath-7B
Upload folder using huggingface_hub
Browse files- model-00001-of-00003.safetensors +1 -1
- model-00002-of-00003.safetensors +1 -1
- model-00003-of-00003.safetensors +1 -1
- special_tokens_map.json +0 -7
- tokenizer.json +1 -1
- tokenizer_config.json +1 -2
model-00001-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4987202208
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e4c7122085a561213192d488999c3946d01126c5b9cf247a27926b7814d9387
|
| 3 |
size 4987202208
|
model-00002-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4980945440
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38bc5bd2d7b66d884e0445316d3a11aa6c6d48e5cf896f069bb2f7ad480cea40
|
| 3 |
size 4980945440
|
model-00003-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3852615520
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81f380b00371672dfc0d043e3d0bc1f82829586e435bb4fb5db1ef65bb28111c
|
| 3 |
size 3852615520
|
special_tokens_map.json
CHANGED
|
@@ -19,12 +19,5 @@
|
|
| 19 |
"normalized": false,
|
| 20 |
"rstrip": false,
|
| 21 |
"single_word": false
|
| 22 |
-
},
|
| 23 |
-
"sep_token": {
|
| 24 |
-
"content": "[SEP]",
|
| 25 |
-
"lstrip": false,
|
| 26 |
-
"normalized": false,
|
| 27 |
-
"rstrip": false,
|
| 28 |
-
"single_word": false
|
| 29 |
}
|
| 30 |
}
|
|
|
|
| 19 |
"normalized": false,
|
| 20 |
"rstrip": false,
|
| 21 |
"single_word": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
}
|
tokenizer.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
| 32 |
},
|
| 33 |
{
|
| 34 |
"id": 100003,
|
| 35 |
-
"content": "[
|
| 36 |
"single_word": false,
|
| 37 |
"lstrip": false,
|
| 38 |
"rstrip": false,
|
|
|
|
| 32 |
},
|
| 33 |
{
|
| 34 |
"id": 100003,
|
| 35 |
+
"content": "[STEP]",
|
| 36 |
"single_word": false,
|
| 37 |
"lstrip": false,
|
| 38 |
"rstrip": false,
|
tokenizer_config.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"special": true
|
| 28 |
},
|
| 29 |
"100003": {
|
| 30 |
-
"content": "[
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
| 33 |
"rstrip": false,
|
|
@@ -41,7 +41,6 @@
|
|
| 41 |
"legacy": true,
|
| 42 |
"model_max_length": 4096,
|
| 43 |
"pad_token": "[PAD]",
|
| 44 |
-
"sep_token": "[SEP]",
|
| 45 |
"sp_model_kwargs": {},
|
| 46 |
"tokenizer_class": "LlamaTokenizer",
|
| 47 |
"unk_token": null,
|
|
|
|
| 27 |
"special": true
|
| 28 |
},
|
| 29 |
"100003": {
|
| 30 |
+
"content": "[STEP]",
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
| 33 |
"rstrip": false,
|
|
|
|
| 41 |
"legacy": true,
|
| 42 |
"model_max_length": 4096,
|
| 43 |
"pad_token": "[PAD]",
|
|
|
|
| 44 |
"sp_model_kwargs": {},
|
| 45 |
"tokenizer_class": "LlamaTokenizer",
|
| 46 |
"unk_token": null,
|