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 100
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:acd4f3898bf8ee245ae91ce4344cd569e84b3d9c53903bab551ff185e22fe7e4
|
| 3 |
size 335605144
|
dynamic_sampling_log.txt
CHANGED
|
@@ -734,3 +734,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 734 |
89 4 24 6 25.0 %
|
| 735 |
89 5 30 6 20.0 %
|
| 736 |
89 2 12 6 50.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 734 |
89 4 24 6 25.0 %
|
| 735 |
89 5 30 6 20.0 %
|
| 736 |
89 2 12 6 50.0 %
|
| 737 |
+
90 2 12 6 50.0 %
|
| 738 |
+
90 3 18 6 33.3 %
|
| 739 |
+
90 8 48 6 12.5 %
|
| 740 |
+
90 3 18 6 33.3 %
|
| 741 |
+
90 1 6 6 100.0 %
|
| 742 |
+
90 1 6 6 100.0 %
|
| 743 |
+
90 2 12 6 50.0 %
|
| 744 |
+
90 3 18 6 33.3 %
|
| 745 |
+
91 1 6 6 100.0 %
|
| 746 |
+
91 6 36 6 16.7 %
|
| 747 |
+
91 4 24 6 25.0 %
|
| 748 |
+
91 2 12 6 50.0 %
|
| 749 |
+
91 11 66 6 9.1 %
|
| 750 |
+
91 2 12 6 50.0 %
|
| 751 |
+
91 7 42 6 14.3 %
|
| 752 |
+
91 5 30 6 20.0 %
|
| 753 |
+
92 4 24 6 25.0 %
|
| 754 |
+
92 3 18 6 33.3 %
|
| 755 |
+
92 3 18 6 33.3 %
|
| 756 |
+
92 6 36 6 16.7 %
|
| 757 |
+
92 1 6 6 100.0 %
|
| 758 |
+
92 5 30 6 20.0 %
|
| 759 |
+
92 3 18 6 33.3 %
|
| 760 |
+
92 6 36 6 16.7 %
|
| 761 |
+
93 5 30 6 20.0 %
|
| 762 |
+
93 4 24 6 25.0 %
|
| 763 |
+
93 2 12 6 50.0 %
|
| 764 |
+
93 4 24 6 25.0 %
|
| 765 |
+
93 3 18 6 33.3 %
|
| 766 |
+
93 2 12 6 50.0 %
|
| 767 |
+
93 5 30 6 20.0 %
|
| 768 |
+
93 1 6 6 100.0 %
|
| 769 |
+
94 5 30 6 20.0 %
|
| 770 |
+
94 6 36 6 16.7 %
|
| 771 |
+
94 7 42 6 14.3 %
|
| 772 |
+
94 2 12 6 50.0 %
|
| 773 |
+
94 3 18 6 33.3 %
|
| 774 |
+
94 6 36 6 16.7 %
|
| 775 |
+
94 6 36 6 16.7 %
|
| 776 |
+
94 4 24 6 25.0 %
|
| 777 |
+
95 1 6 6 100.0 %
|
| 778 |
+
95 2 12 6 50.0 %
|
| 779 |
+
95 3 18 6 33.3 %
|
| 780 |
+
95 4 24 6 25.0 %
|
| 781 |
+
95 3 18 6 33.3 %
|
| 782 |
+
95 4 24 6 25.0 %
|
| 783 |
+
95 3 18 6 33.3 %
|
| 784 |
+
95 2 12 6 50.0 %
|
| 785 |
+
96 4 24 6 25.0 %
|
| 786 |
+
96 2 12 6 50.0 %
|
| 787 |
+
96 5 30 6 20.0 %
|
| 788 |
+
96 6 36 6 16.7 %
|
| 789 |
+
96 1 6 6 100.0 %
|
| 790 |
+
96 3 18 6 33.3 %
|
| 791 |
+
96 2 12 6 50.0 %
|
| 792 |
+
96 9 54 6 11.1 %
|
| 793 |
+
97 6 36 6 16.7 %
|
| 794 |
+
97 2 12 6 50.0 %
|
| 795 |
+
97 5 30 6 20.0 %
|
| 796 |
+
97 7 42 6 14.3 %
|
| 797 |
+
97 1 6 6 100.0 %
|
| 798 |
+
97 2 12 6 50.0 %
|
| 799 |
+
97 8 48 6 12.5 %
|
| 800 |
+
97 7 42 6 14.3 %
|
| 801 |
+
98 3 18 6 33.3 %
|
| 802 |
+
98 3 18 6 33.3 %
|
| 803 |
+
98 3 18 6 33.3 %
|
| 804 |
+
98 3 18 6 33.3 %
|
| 805 |
+
98 2 12 6 50.0 %
|
| 806 |
+
98 4 24 6 25.0 %
|
| 807 |
+
98 1 6 6 100.0 %
|
| 808 |
+
98 8 48 6 12.5 %
|
| 809 |
+
99 2 12 6 50.0 %
|
| 810 |
+
99 3 18 6 33.3 %
|
| 811 |
+
99 11 66 6 9.1 %
|
| 812 |
+
99 4 24 6 25.0 %
|
| 813 |
+
99 8 48 6 12.5 %
|
| 814 |
+
99 3 18 6 33.3 %
|
| 815 |
+
99 2 12 6 50.0 %
|
| 816 |
+
99 3 18 6 33.3 %
|