Text Generation
Transformers
Safetensors
llama
Generated from Trainer
open-r1
dapo
trl
conversational
text-generation-inference
Instructions to use kangdawei/DAPO-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kangdawei/DAPO-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kangdawei/DAPO-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kangdawei/DAPO-8B") model = AutoModelForCausalLM.from_pretrained("kangdawei/DAPO-8B") 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-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kangdawei/DAPO-8B" # 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-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kangdawei/DAPO-8B
- SGLang
How to use kangdawei/DAPO-8B 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-8B" \ --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-8B", "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-8B" \ --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-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kangdawei/DAPO-8B with Docker Model Runner:
docker model run hf.co/kangdawei/DAPO-8B
Training in progress, step 200
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 335605144
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed5057e58d9c86f27f25bff17f93ec31710991515dde331e78b702be3b250793
|
| 3 |
size 335605144
|
dynamic_sampling_log.txt
CHANGED
|
@@ -1603,3 +1603,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 1603 |
189 4 24 6 25.0 %
|
| 1604 |
189 1 6 6 100.0 %
|
| 1605 |
189 3 18 6 33.3 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1603 |
189 4 24 6 25.0 %
|
| 1604 |
189 1 6 6 100.0 %
|
| 1605 |
189 3 18 6 33.3 %
|
| 1606 |
+
190 3 18 6 33.3 %
|
| 1607 |
+
190 5 30 6 20.0 %
|
| 1608 |
+
190 8 48 6 12.5 %
|
| 1609 |
+
190 4 24 6 25.0 %
|
| 1610 |
+
190 4 24 6 25.0 %
|
| 1611 |
+
190 1 6 6 100.0 %
|
| 1612 |
+
190 1 6 6 100.0 %
|
| 1613 |
+
190 4 24 6 25.0 %
|
| 1614 |
+
191 9 54 6 11.1 %
|
| 1615 |
+
191 4 24 6 25.0 %
|
| 1616 |
+
191 4 24 6 25.0 %
|
| 1617 |
+
191 5 30 6 20.0 %
|
| 1618 |
+
191 3 18 6 33.3 %
|
| 1619 |
+
191 6 36 6 16.7 %
|
| 1620 |
+
191 1 6 6 100.0 %
|
| 1621 |
+
191 5 30 6 20.0 %
|
| 1622 |
+
192 3 18 6 33.3 %
|
| 1623 |
+
192 4 24 6 25.0 %
|
| 1624 |
+
192 2 12 6 50.0 %
|
| 1625 |
+
192 6 36 6 16.7 %
|
| 1626 |
+
192 3 18 6 33.3 %
|
| 1627 |
+
192 7 42 6 14.3 %
|
| 1628 |
+
192 4 24 6 25.0 %
|
| 1629 |
+
192 1 6 6 100.0 %
|
| 1630 |
+
193 3 18 6 33.3 %
|
| 1631 |
+
193 9 54 6 11.1 %
|
| 1632 |
+
193 3 18 6 33.3 %
|
| 1633 |
+
193 3 18 6 33.3 %
|
| 1634 |
+
193 1 6 6 100.0 %
|
| 1635 |
+
193 3 18 6 33.3 %
|
| 1636 |
+
193 8 48 6 12.5 %
|
| 1637 |
+
193 3 18 6 33.3 %
|
| 1638 |
+
194 3 18 6 33.3 %
|
| 1639 |
+
194 7 42 6 14.3 %
|
| 1640 |
+
194 2 12 6 50.0 %
|
| 1641 |
+
194 1 6 6 100.0 %
|
| 1642 |
+
194 1 6 6 100.0 %
|
| 1643 |
+
194 2 12 6 50.0 %
|
| 1644 |
+
194 8 48 6 12.5 %
|
| 1645 |
+
194 7 42 6 14.3 %
|
| 1646 |
+
195 5 30 6 20.0 %
|
| 1647 |
+
195 6 36 6 16.7 %
|
| 1648 |
+
195 1 6 6 100.0 %
|
| 1649 |
+
195 1 6 6 100.0 %
|
| 1650 |
+
195 10 60 6 10.0 %
|
| 1651 |
+
195 2 12 6 50.0 %
|
| 1652 |
+
195 3 18 6 33.3 %
|
| 1653 |
+
195 10 60 6 10.0 %
|
| 1654 |
+
196 2 12 6 50.0 %
|
| 1655 |
+
196 5 30 6 20.0 %
|
| 1656 |
+
196 4 24 6 25.0 %
|
| 1657 |
+
196 6 36 6 16.7 %
|
| 1658 |
+
196 7 42 6 14.3 %
|
| 1659 |
+
196 3 18 6 33.3 %
|
| 1660 |
+
196 2 12 6 50.0 %
|
| 1661 |
+
196 9 54 6 11.1 %
|
| 1662 |
+
197 2 12 6 50.0 %
|
| 1663 |
+
197 1 6 6 100.0 %
|
| 1664 |
+
197 6 36 6 16.7 %
|
| 1665 |
+
197 3 18 6 33.3 %
|
| 1666 |
+
197 2 12 6 50.0 %
|
| 1667 |
+
197 8 48 6 12.5 %
|
| 1668 |
+
197 2 12 6 50.0 %
|
| 1669 |
+
197 2 12 6 50.0 %
|
| 1670 |
+
198 6 36 6 16.7 %
|
| 1671 |
+
198 1 6 6 100.0 %
|
| 1672 |
+
198 1 6 6 100.0 %
|
| 1673 |
+
198 2 12 6 50.0 %
|
| 1674 |
+
198 1 6 6 100.0 %
|
| 1675 |
+
198 4 24 6 25.0 %
|
| 1676 |
+
198 2 12 6 50.0 %
|
| 1677 |
+
198 9 54 6 11.1 %
|
| 1678 |
+
199 1 6 6 100.0 %
|
| 1679 |
+
199 4 24 6 25.0 %
|
| 1680 |
+
199 4 24 6 25.0 %
|
| 1681 |
+
199 3 18 6 33.3 %
|
| 1682 |
+
199 4 24 6 25.0 %
|
| 1683 |
+
199 1 6 6 100.0 %
|
| 1684 |
+
199 4 24 6 25.0 %
|
| 1685 |
+
199 3 18 6 33.3 %
|