Text Generation
Transformers
Safetensors
English
llama
mathematics
Eval Results (legacy)
text-generation-inference
Instructions to use hkust-nlp/dart-math-llama3-8b-prop2diff with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hkust-nlp/dart-math-llama3-8b-prop2diff with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hkust-nlp/dart-math-llama3-8b-prop2diff")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hkust-nlp/dart-math-llama3-8b-prop2diff") model = AutoModelForCausalLM.from_pretrained("hkust-nlp/dart-math-llama3-8b-prop2diff", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hkust-nlp/dart-math-llama3-8b-prop2diff with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hkust-nlp/dart-math-llama3-8b-prop2diff" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hkust-nlp/dart-math-llama3-8b-prop2diff", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/hkust-nlp/dart-math-llama3-8b-prop2diff
- SGLang
How to use hkust-nlp/dart-math-llama3-8b-prop2diff 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 "hkust-nlp/dart-math-llama3-8b-prop2diff" \ --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": "hkust-nlp/dart-math-llama3-8b-prop2diff", "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 "hkust-nlp/dart-math-llama3-8b-prop2diff" \ --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": "hkust-nlp/dart-math-llama3-8b-prop2diff", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use hkust-nlp/dart-math-llama3-8b-prop2diff with Docker Model Runner:
docker model run hf.co/hkust-nlp/dart-math-llama3-8b-prop2diff
Update README.md
Browse files
README.md
CHANGED
|
@@ -84,7 +84,9 @@ model-index:
|
|
| 84 |
|
| 85 |
# DART-Math: Difficulty-Aware Rejection Tuning for Mathematical Problem-Solving
|
| 86 |
|
| 87 |
-
📝 [Paper@arXiv](https://arxiv.org/abs/2407.13690) | 🤗 [Datasets&Models@HF](https://huggingface.co/collections/hkust-nlp/dart-math-665704599b35de59f8fdf6c1) | 🐱 [Code@GitHub](https://github.com/hkust-nlp/dart-math)
|
|
|
|
|
|
|
| 88 |
|
| 89 |
## Models: `DART-Math`
|
| 90 |
|
|
|
|
| 84 |
|
| 85 |
# DART-Math: Difficulty-Aware Rejection Tuning for Mathematical Problem-Solving
|
| 86 |
|
| 87 |
+
📝 [Paper@arXiv](https://arxiv.org/abs/2407.13690) | 🤗 [Datasets&Models@HF](https://huggingface.co/collections/hkust-nlp/dart-math-665704599b35de59f8fdf6c1) | 🐱 [Code@GitHub](https://github.com/hkust-nlp/dart-math)
|
| 88 |
+
|
| 89 |
+
🐦 [Thread@X(Twitter)](https://x.com/tongyx361/status/1811413243350454455) | 🐶 [中文博客@知乎](https://zhuanlan.zhihu.com/p/708371895) | 📊 [Leaderboard@PapersWithCode](https://paperswithcode.com/paper/dart-math-difficulty-aware-rejection-tuning#results) | 📑 [BibTeX](https://github.com/hkust-nlp/dart-math?tab=readme-ov-file#citation)
|
| 90 |
|
| 91 |
## Models: `DART-Math`
|
| 92 |
|