openai/gsm8k
Benchmark • Updated • 17.6k • 931k • 1.31k
How to use codewithdark/deepmath-7b-l with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="codewithdark/deepmath-7b-l") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("codewithdark/deepmath-7b-l", dtype="auto")How to use codewithdark/deepmath-7b-l with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "codewithdark/deepmath-7b-l"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "codewithdark/deepmath-7b-l",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/codewithdark/deepmath-7b-l
How to use codewithdark/deepmath-7b-l with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "codewithdark/deepmath-7b-l" \
--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": "codewithdark/deepmath-7b-l",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "codewithdark/deepmath-7b-l" \
--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": "codewithdark/deepmath-7b-l",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use codewithdark/deepmath-7b-l with Docker Model Runner:
docker model run hf.co/codewithdark/deepmath-7b-l
DeepMath-7B-L are fine-tuned versions of DeepSeek-R1-Distill-Qwen-1.5B on the GSM8K dataset. These models are designed for mathematical reasoning and problem-solving, excelling in arithmetic, algebra, and word problems.
DeepMath-7B-L excel in:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("codewithdark/deepmath-7b-l")
model = AutoModelForCausalLM.from_pretrained("codewithdark/deepmath-7b-l")
input_text = "Solve: 2x + 3 = 7"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is released under the Apache 2.0 License.
If you use these models, please cite:
@misc{DeepMath-7B-L,
author = {Ahsan},
title = {DeepMath-7B-L: LoRA Adapter Enhanced Model for Math Reasoning},
year = {2025},
url = {https://huggingface.co/codewithdark/deepmath-7b-l}
}
Base model
deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B