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 200
Browse files- dynamic_sampling_log.txt +80 -0
- model.safetensors +1 -1
dynamic_sampling_log.txt
CHANGED
|
@@ -1523,3 +1523,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 1523 |
189 3 18 6 33.3 %
|
| 1524 |
189 7 42 6 14.3 %
|
| 1525 |
189 9 54 6 11.1 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1523 |
189 3 18 6 33.3 %
|
| 1524 |
189 7 42 6 14.3 %
|
| 1525 |
189 9 54 6 11.1 %
|
| 1526 |
+
190 3 18 6 33.3 %
|
| 1527 |
+
190 3 18 6 33.3 %
|
| 1528 |
+
190 4 24 6 25.0 %
|
| 1529 |
+
190 2 12 6 50.0 %
|
| 1530 |
+
190 3 18 6 33.3 %
|
| 1531 |
+
190 1 6 6 100.0 %
|
| 1532 |
+
190 8 48 6 12.5 %
|
| 1533 |
+
190 6 36 6 16.7 %
|
| 1534 |
+
191 5 30 6 20.0 %
|
| 1535 |
+
191 10 60 6 10.0 %
|
| 1536 |
+
191 3 18 6 33.3 %
|
| 1537 |
+
191 1 6 6 100.0 %
|
| 1538 |
+
191 2 12 6 50.0 %
|
| 1539 |
+
191 4 24 6 25.0 %
|
| 1540 |
+
191 3 18 6 33.3 %
|
| 1541 |
+
191 1 6 6 100.0 %
|
| 1542 |
+
192 5 30 6 20.0 %
|
| 1543 |
+
192 8 48 6 12.5 %
|
| 1544 |
+
192 2 12 6 50.0 %
|
| 1545 |
+
192 2 12 6 50.0 %
|
| 1546 |
+
192 10 60 6 10.0 %
|
| 1547 |
+
192 4 24 6 25.0 %
|
| 1548 |
+
192 2 12 6 50.0 %
|
| 1549 |
+
192 4 24 6 25.0 %
|
| 1550 |
+
193 3 18 6 33.3 %
|
| 1551 |
+
193 3 18 6 33.3 %
|
| 1552 |
+
193 2 12 6 50.0 %
|
| 1553 |
+
193 2 12 6 50.0 %
|
| 1554 |
+
193 4 24 6 25.0 %
|
| 1555 |
+
193 3 18 6 33.3 %
|
| 1556 |
+
193 2 12 6 50.0 %
|
| 1557 |
+
193 1 6 6 100.0 %
|
| 1558 |
+
194 4 24 6 25.0 %
|
| 1559 |
+
194 2 12 6 50.0 %
|
| 1560 |
+
194 2 12 6 50.0 %
|
| 1561 |
+
194 4 24 6 25.0 %
|
| 1562 |
+
194 5 30 6 20.0 %
|
| 1563 |
+
194 5 30 6 20.0 %
|
| 1564 |
+
194 8 48 6 12.5 %
|
| 1565 |
+
194 3 18 6 33.3 %
|
| 1566 |
+
195 10 60 6 10.0 %
|
| 1567 |
+
195 1 6 6 100.0 %
|
| 1568 |
+
195 4 24 6 25.0 %
|
| 1569 |
+
195 7 42 6 14.3 %
|
| 1570 |
+
195 8 48 6 12.5 %
|
| 1571 |
+
195 3 18 6 33.3 %
|
| 1572 |
+
195 2 12 6 50.0 %
|
| 1573 |
+
195 5 30 6 20.0 %
|
| 1574 |
+
196 3 18 6 33.3 %
|
| 1575 |
+
196 10 60 6 10.0 %
|
| 1576 |
+
196 2 12 6 50.0 %
|
| 1577 |
+
196 5 30 6 20.0 %
|
| 1578 |
+
196 7 42 6 14.3 %
|
| 1579 |
+
196 2 12 6 50.0 %
|
| 1580 |
+
196 3 18 6 33.3 %
|
| 1581 |
+
196 7 42 6 14.3 %
|
| 1582 |
+
197 1 6 6 100.0 %
|
| 1583 |
+
197 8 48 6 12.5 %
|
| 1584 |
+
197 1 6 6 100.0 %
|
| 1585 |
+
197 2 12 6 50.0 %
|
| 1586 |
+
197 1 6 6 100.0 %
|
| 1587 |
+
197 2 12 6 50.0 %
|
| 1588 |
+
197 1 6 6 100.0 %
|
| 1589 |
+
197 1 6 6 100.0 %
|
| 1590 |
+
198 1 6 6 100.0 %
|
| 1591 |
+
198 1 6 6 100.0 %
|
| 1592 |
+
198 1 6 6 100.0 %
|
| 1593 |
+
198 2 12 6 50.0 %
|
| 1594 |
+
198 1 6 6 100.0 %
|
| 1595 |
+
198 1 6 6 100.0 %
|
| 1596 |
+
198 1 6 6 100.0 %
|
| 1597 |
+
198 2 12 6 50.0 %
|
| 1598 |
+
199 4 24 6 25.0 %
|
| 1599 |
+
199 6 36 6 16.7 %
|
| 1600 |
+
199 2 12 6 50.0 %
|
| 1601 |
+
199 5 30 6 20.0 %
|
| 1602 |
+
199 6 36 6 16.7 %
|
| 1603 |
+
199 3 18 6 33.3 %
|
| 1604 |
+
199 3 18 6 33.3 %
|
| 1605 |
+
199 2 12 6 50.0 %
|
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:d64d54000b570492a01d4046b8b5c14ae0d34a1966127780abf0d63359e72a22
|
| 3 |
size 3554214752
|