Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
dapo
trl
conversational
text-generation-inference
Instructions to use kangdawei/DAPO-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kangdawei/DAPO-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kangdawei/DAPO-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kangdawei/DAPO-7B") model = AutoModelForCausalLM.from_pretrained("kangdawei/DAPO-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Local Apps Settings
- vLLM
How to use kangdawei/DAPO-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kangdawei/DAPO-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kangdawei/DAPO-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kangdawei/DAPO-7B
- SGLang
How to use kangdawei/DAPO-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 "kangdawei/DAPO-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kangdawei/DAPO-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "kangdawei/DAPO-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kangdawei/DAPO-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kangdawei/DAPO-7B with Docker Model Runner:
docker model run hf.co/kangdawei/DAPO-7B
Training in progress, step 30
Browse files- adapter_model.safetensors +1 -1
- dynamic_sampling_log.txt +80 -0
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 323014560
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b87a0b94ba94152efb7ad9364ebee21e3b5a7faed06d04efcdba70a7dc958ee
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -163,3 +163,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 163 |
19 6 36 6 16.7 %
|
| 164 |
19 3 18 6 33.3 %
|
| 165 |
19 2 12 6 50.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
19 6 36 6 16.7 %
|
| 164 |
19 3 18 6 33.3 %
|
| 165 |
19 2 12 6 50.0 %
|
| 166 |
+
20 1 6 6 100.0 %
|
| 167 |
+
20 2 12 6 50.0 %
|
| 168 |
+
20 5 30 6 20.0 %
|
| 169 |
+
20 3 18 6 33.3 %
|
| 170 |
+
20 2 12 6 50.0 %
|
| 171 |
+
20 7 42 6 14.3 %
|
| 172 |
+
20 3 18 6 33.3 %
|
| 173 |
+
20 3 18 6 33.3 %
|
| 174 |
+
21 4 24 6 25.0 %
|
| 175 |
+
21 7 42 6 14.3 %
|
| 176 |
+
21 3 18 6 33.3 %
|
| 177 |
+
21 3 18 6 33.3 %
|
| 178 |
+
21 2 12 6 50.0 %
|
| 179 |
+
21 3 18 6 33.3 %
|
| 180 |
+
21 2 12 6 50.0 %
|
| 181 |
+
21 2 12 6 50.0 %
|
| 182 |
+
22 3 18 6 33.3 %
|
| 183 |
+
22 5 30 6 20.0 %
|
| 184 |
+
22 4 24 6 25.0 %
|
| 185 |
+
22 2 12 6 50.0 %
|
| 186 |
+
22 7 42 6 14.3 %
|
| 187 |
+
22 3 18 6 33.3 %
|
| 188 |
+
22 3 18 6 33.3 %
|
| 189 |
+
22 1 6 6 100.0 %
|
| 190 |
+
23 7 42 6 14.3 %
|
| 191 |
+
23 2 12 6 50.0 %
|
| 192 |
+
23 3 18 6 33.3 %
|
| 193 |
+
23 1 6 6 100.0 %
|
| 194 |
+
23 4 24 6 25.0 %
|
| 195 |
+
23 3 18 6 33.3 %
|
| 196 |
+
23 4 24 6 25.0 %
|
| 197 |
+
23 6 36 6 16.7 %
|
| 198 |
+
24 6 36 6 16.7 %
|
| 199 |
+
24 2 12 6 50.0 %
|
| 200 |
+
24 5 30 6 20.0 %
|
| 201 |
+
24 2 12 6 50.0 %
|
| 202 |
+
24 5 30 6 20.0 %
|
| 203 |
+
24 3 18 6 33.3 %
|
| 204 |
+
24 5 30 6 20.0 %
|
| 205 |
+
24 1 6 6 100.0 %
|
| 206 |
+
25 2 12 6 50.0 %
|
| 207 |
+
25 6 36 6 16.7 %
|
| 208 |
+
25 1 6 6 100.0 %
|
| 209 |
+
25 6 36 6 16.7 %
|
| 210 |
+
25 4 24 6 25.0 %
|
| 211 |
+
25 7 42 6 14.3 %
|
| 212 |
+
25 1 6 6 100.0 %
|
| 213 |
+
25 3 18 6 33.3 %
|
| 214 |
+
26 2 12 6 50.0 %
|
| 215 |
+
26 1 6 6 100.0 %
|
| 216 |
+
26 2 12 6 50.0 %
|
| 217 |
+
26 1 6 6 100.0 %
|
| 218 |
+
26 3 18 6 33.3 %
|
| 219 |
+
26 1 6 6 100.0 %
|
| 220 |
+
26 5 30 6 20.0 %
|
| 221 |
+
26 1 6 6 100.0 %
|
| 222 |
+
27 3 18 6 33.3 %
|
| 223 |
+
27 3 18 6 33.3 %
|
| 224 |
+
27 2 12 6 50.0 %
|
| 225 |
+
27 3 18 6 33.3 %
|
| 226 |
+
27 5 30 6 20.0 %
|
| 227 |
+
27 3 18 6 33.3 %
|
| 228 |
+
27 1 6 6 100.0 %
|
| 229 |
+
27 3 18 6 33.3 %
|
| 230 |
+
28 2 12 6 50.0 %
|
| 231 |
+
28 1 6 6 100.0 %
|
| 232 |
+
28 5 30 6 20.0 %
|
| 233 |
+
28 1 6 6 100.0 %
|
| 234 |
+
28 1 6 6 100.0 %
|
| 235 |
+
28 5 30 6 20.0 %
|
| 236 |
+
28 2 12 6 50.0 %
|
| 237 |
+
28 1 6 6 100.0 %
|
| 238 |
+
29 1 6 6 100.0 %
|
| 239 |
+
29 1 6 6 100.0 %
|
| 240 |
+
29 4 24 6 25.0 %
|
| 241 |
+
29 5 30 6 20.0 %
|
| 242 |
+
29 5 30 6 20.0 %
|
| 243 |
+
29 5 30 6 20.0 %
|
| 244 |
+
29 1 6 6 100.0 %
|
| 245 |
+
29 1 6 6 100.0 %
|