Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
dapo
trl
conversational
text-generation-inference
Instructions to use kangdawei/DAPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kangdawei/DAPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kangdawei/DAPO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kangdawei/DAPO") model = AutoModelForCausalLM.from_pretrained("kangdawei/DAPO") 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
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use kangdawei/DAPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kangdawei/DAPO" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kangdawei/DAPO
- SGLang
How to use kangdawei/DAPO 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kangdawei/DAPO with Docker Model Runner:
docker model run hf.co/kangdawei/DAPO
Training in progress, step 190
Browse files- dynamic_sampling_log.txt +80 -0
- model.safetensors +1 -1
dynamic_sampling_log.txt
CHANGED
|
@@ -1443,3 +1443,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 1443 |
179 7 42 6 14.3 %
|
| 1444 |
179 6 36 6 16.7 %
|
| 1445 |
179 5 30 6 20.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1443 |
179 7 42 6 14.3 %
|
| 1444 |
179 6 36 6 16.7 %
|
| 1445 |
179 5 30 6 20.0 %
|
| 1446 |
+
180 6 36 6 16.7 %
|
| 1447 |
+
180 7 42 6 14.3 %
|
| 1448 |
+
180 9 54 6 11.1 %
|
| 1449 |
+
180 2 12 6 50.0 %
|
| 1450 |
+
180 2 12 6 50.0 %
|
| 1451 |
+
180 2 12 6 50.0 %
|
| 1452 |
+
180 1 6 6 100.0 %
|
| 1453 |
+
180 4 24 6 25.0 %
|
| 1454 |
+
181 1 6 6 100.0 %
|
| 1455 |
+
181 5 30 6 20.0 %
|
| 1456 |
+
181 5 30 6 20.0 %
|
| 1457 |
+
181 2 12 6 50.0 %
|
| 1458 |
+
181 5 30 6 20.0 %
|
| 1459 |
+
181 1 6 6 100.0 %
|
| 1460 |
+
181 7 42 6 14.3 %
|
| 1461 |
+
181 2 12 6 50.0 %
|
| 1462 |
+
182 3 18 6 33.3 %
|
| 1463 |
+
182 5 30 6 20.0 %
|
| 1464 |
+
182 4 24 6 25.0 %
|
| 1465 |
+
182 3 18 6 33.3 %
|
| 1466 |
+
182 3 18 6 33.3 %
|
| 1467 |
+
182 5 30 6 20.0 %
|
| 1468 |
+
182 2 12 6 50.0 %
|
| 1469 |
+
182 8 48 6 12.5 %
|
| 1470 |
+
183 3 18 6 33.3 %
|
| 1471 |
+
183 3 18 6 33.3 %
|
| 1472 |
+
183 5 30 6 20.0 %
|
| 1473 |
+
183 1 6 6 100.0 %
|
| 1474 |
+
183 2 12 6 50.0 %
|
| 1475 |
+
183 6 36 6 16.7 %
|
| 1476 |
+
183 1 6 6 100.0 %
|
| 1477 |
+
183 9 54 6 11.1 %
|
| 1478 |
+
184 3 18 6 33.3 %
|
| 1479 |
+
184 6 36 6 16.7 %
|
| 1480 |
+
184 2 12 6 50.0 %
|
| 1481 |
+
184 5 30 6 20.0 %
|
| 1482 |
+
184 5 30 6 20.0 %
|
| 1483 |
+
184 3 18 6 33.3 %
|
| 1484 |
+
184 8 48 6 12.5 %
|
| 1485 |
+
184 5 30 6 20.0 %
|
| 1486 |
+
185 8 48 6 12.5 %
|
| 1487 |
+
185 1 6 6 100.0 %
|
| 1488 |
+
185 3 18 6 33.3 %
|
| 1489 |
+
185 3 18 6 33.3 %
|
| 1490 |
+
185 5 30 6 20.0 %
|
| 1491 |
+
185 3 18 6 33.3 %
|
| 1492 |
+
185 1 6 6 100.0 %
|
| 1493 |
+
185 6 36 6 16.7 %
|
| 1494 |
+
186 1 6 6 100.0 %
|
| 1495 |
+
186 2 12 6 50.0 %
|
| 1496 |
+
186 7 42 6 14.3 %
|
| 1497 |
+
186 7 42 6 14.3 %
|
| 1498 |
+
186 2 12 6 50.0 %
|
| 1499 |
+
186 6 36 6 16.7 %
|
| 1500 |
+
186 2 12 6 50.0 %
|
| 1501 |
+
186 4 24 6 25.0 %
|
| 1502 |
+
187 4 24 6 25.0 %
|
| 1503 |
+
187 6 36 6 16.7 %
|
| 1504 |
+
187 4 24 6 25.0 %
|
| 1505 |
+
187 5 30 6 20.0 %
|
| 1506 |
+
187 1 6 6 100.0 %
|
| 1507 |
+
187 4 24 6 25.0 %
|
| 1508 |
+
187 3 18 6 33.3 %
|
| 1509 |
+
187 10 60 6 10.0 %
|
| 1510 |
+
188 3 18 6 33.3 %
|
| 1511 |
+
188 2 12 6 50.0 %
|
| 1512 |
+
188 7 42 6 14.3 %
|
| 1513 |
+
188 2 12 6 50.0 %
|
| 1514 |
+
188 8 48 6 12.5 %
|
| 1515 |
+
188 3 18 6 33.3 %
|
| 1516 |
+
188 5 30 6 20.0 %
|
| 1517 |
+
188 1 6 6 100.0 %
|
| 1518 |
+
189 10 60 6 10.0 %
|
| 1519 |
+
189 7 42 6 14.3 %
|
| 1520 |
+
189 2 12 6 50.0 %
|
| 1521 |
+
189 8 48 6 12.5 %
|
| 1522 |
+
189 5 30 6 20.0 %
|
| 1523 |
+
189 3 18 6 33.3 %
|
| 1524 |
+
189 7 42 6 14.3 %
|
| 1525 |
+
189 9 54 6 11.1 %
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3554214752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8db8948f7bcfec4193abc9128e64da7758f7ab088aae006ae4e292d69b3c037
|
| 3 |
size 3554214752
|