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 40
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:86957f151262166d2b4190af44a65b3e73dd3c71e3c2554487db1793d549d507
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -243,3 +243,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 243 |
29 5 30 6 20.0 %
|
| 244 |
29 1 6 6 100.0 %
|
| 245 |
29 1 6 6 100.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
29 5 30 6 20.0 %
|
| 244 |
29 1 6 6 100.0 %
|
| 245 |
29 1 6 6 100.0 %
|
| 246 |
+
30 2 12 6 50.0 %
|
| 247 |
+
30 2 12 6 50.0 %
|
| 248 |
+
30 2 12 6 50.0 %
|
| 249 |
+
30 1 6 6 100.0 %
|
| 250 |
+
30 1 6 6 100.0 %
|
| 251 |
+
30 10 60 6 10.0 %
|
| 252 |
+
30 2 12 6 50.0 %
|
| 253 |
+
30 5 30 6 20.0 %
|
| 254 |
+
31 3 18 6 33.3 %
|
| 255 |
+
31 4 24 6 25.0 %
|
| 256 |
+
31 2 12 6 50.0 %
|
| 257 |
+
31 3 18 6 33.3 %
|
| 258 |
+
31 8 48 6 12.5 %
|
| 259 |
+
31 1 6 6 100.0 %
|
| 260 |
+
31 3 18 6 33.3 %
|
| 261 |
+
31 5 30 6 20.0 %
|
| 262 |
+
32 1 6 6 100.0 %
|
| 263 |
+
32 6 36 6 16.7 %
|
| 264 |
+
32 3 18 6 33.3 %
|
| 265 |
+
32 4 24 6 25.0 %
|
| 266 |
+
32 1 6 6 100.0 %
|
| 267 |
+
32 4 24 6 25.0 %
|
| 268 |
+
32 4 24 6 25.0 %
|
| 269 |
+
32 8 48 6 12.5 %
|
| 270 |
+
33 2 12 6 50.0 %
|
| 271 |
+
33 3 18 6 33.3 %
|
| 272 |
+
33 1 6 6 100.0 %
|
| 273 |
+
33 3 18 6 33.3 %
|
| 274 |
+
33 1 6 6 100.0 %
|
| 275 |
+
33 3 18 6 33.3 %
|
| 276 |
+
33 2 12 6 50.0 %
|
| 277 |
+
33 1 6 6 100.0 %
|
| 278 |
+
34 4 24 6 25.0 %
|
| 279 |
+
34 3 18 6 33.3 %
|
| 280 |
+
34 4 24 6 25.0 %
|
| 281 |
+
34 2 12 6 50.0 %
|
| 282 |
+
34 3 18 6 33.3 %
|
| 283 |
+
34 7 42 6 14.3 %
|
| 284 |
+
34 3 18 6 33.3 %
|
| 285 |
+
34 3 18 6 33.3 %
|
| 286 |
+
35 4 24 6 25.0 %
|
| 287 |
+
35 2 12 6 50.0 %
|
| 288 |
+
35 2 12 6 50.0 %
|
| 289 |
+
35 1 6 6 100.0 %
|
| 290 |
+
35 3 18 6 33.3 %
|
| 291 |
+
35 4 24 6 25.0 %
|
| 292 |
+
35 4 24 6 25.0 %
|
| 293 |
+
35 2 12 6 50.0 %
|
| 294 |
+
36 6 36 6 16.7 %
|
| 295 |
+
36 3 18 6 33.3 %
|
| 296 |
+
36 4 24 6 25.0 %
|
| 297 |
+
36 3 18 6 33.3 %
|
| 298 |
+
36 6 36 6 16.7 %
|
| 299 |
+
36 1 6 6 100.0 %
|
| 300 |
+
36 3 18 6 33.3 %
|
| 301 |
+
36 3 18 6 33.3 %
|
| 302 |
+
37 5 30 6 20.0 %
|
| 303 |
+
37 3 18 6 33.3 %
|
| 304 |
+
37 2 12 6 50.0 %
|
| 305 |
+
37 1 6 6 100.0 %
|
| 306 |
+
37 4 24 6 25.0 %
|
| 307 |
+
37 3 18 6 33.3 %
|
| 308 |
+
37 2 12 6 50.0 %
|
| 309 |
+
37 1 6 6 100.0 %
|
| 310 |
+
38 6 36 6 16.7 %
|
| 311 |
+
38 4 24 6 25.0 %
|
| 312 |
+
38 5 30 6 20.0 %
|
| 313 |
+
38 3 18 6 33.3 %
|
| 314 |
+
38 2 12 6 50.0 %
|
| 315 |
+
38 1 6 6 100.0 %
|
| 316 |
+
38 8 48 6 12.5 %
|
| 317 |
+
38 4 24 6 25.0 %
|
| 318 |
+
39 3 18 6 33.3 %
|
| 319 |
+
39 2 12 6 50.0 %
|
| 320 |
+
39 2 12 6 50.0 %
|
| 321 |
+
39 2 12 6 50.0 %
|
| 322 |
+
39 1 6 6 100.0 %
|
| 323 |
+
39 3 18 6 33.3 %
|
| 324 |
+
39 5 30 6 20.0 %
|
| 325 |
+
39 4 24 6 25.0 %
|