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 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 323014560
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f41cef2bb66b9353a9df6cc7f16045d9af89f4627456717e3247d6b15a98a0f
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -723,3 +723,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 723 |
89 3 18 6 33.3 %
|
| 724 |
89 5 30 6 20.0 %
|
| 725 |
89 3 18 6 33.3 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 723 |
89 3 18 6 33.3 %
|
| 724 |
89 5 30 6 20.0 %
|
| 725 |
89 3 18 6 33.3 %
|
| 726 |
+
90 2 12 6 50.0 %
|
| 727 |
+
90 6 36 6 16.7 %
|
| 728 |
+
90 3 18 6 33.3 %
|
| 729 |
+
90 4 24 6 25.0 %
|
| 730 |
+
90 2 12 6 50.0 %
|
| 731 |
+
90 1 6 6 100.0 %
|
| 732 |
+
90 2 12 6 50.0 %
|
| 733 |
+
90 2 12 6 50.0 %
|
| 734 |
+
91 7 42 6 14.3 %
|
| 735 |
+
91 2 12 6 50.0 %
|
| 736 |
+
91 3 18 6 33.3 %
|
| 737 |
+
91 3 18 6 33.3 %
|
| 738 |
+
91 3 18 6 33.3 %
|
| 739 |
+
91 1 6 6 100.0 %
|
| 740 |
+
91 2 12 6 50.0 %
|
| 741 |
+
91 4 24 6 25.0 %
|
| 742 |
+
92 4 24 6 25.0 %
|
| 743 |
+
92 3 18 6 33.3 %
|
| 744 |
+
92 4 24 6 25.0 %
|
| 745 |
+
92 2 12 6 50.0 %
|
| 746 |
+
92 2 12 6 50.0 %
|
| 747 |
+
92 1 6 6 100.0 %
|
| 748 |
+
92 1 6 6 100.0 %
|
| 749 |
+
92 5 30 6 20.0 %
|
| 750 |
+
93 5 30 6 20.0 %
|
| 751 |
+
93 3 18 6 33.3 %
|
| 752 |
+
93 3 18 6 33.3 %
|
| 753 |
+
93 5 30 6 20.0 %
|
| 754 |
+
93 2 12 6 50.0 %
|
| 755 |
+
93 4 24 6 25.0 %
|
| 756 |
+
93 1 6 6 100.0 %
|
| 757 |
+
93 1 6 6 100.0 %
|
| 758 |
+
94 2 12 6 50.0 %
|
| 759 |
+
94 3 18 6 33.3 %
|
| 760 |
+
94 4 24 6 25.0 %
|
| 761 |
+
94 6 36 6 16.7 %
|
| 762 |
+
94 2 12 6 50.0 %
|
| 763 |
+
94 3 18 6 33.3 %
|
| 764 |
+
94 1 6 6 100.0 %
|
| 765 |
+
94 4 24 6 25.0 %
|
| 766 |
+
95 1 6 6 100.0 %
|
| 767 |
+
95 4 24 6 25.0 %
|
| 768 |
+
95 6 36 6 16.7 %
|
| 769 |
+
95 8 48 6 12.5 %
|
| 770 |
+
95 2 12 6 50.0 %
|
| 771 |
+
95 3 18 6 33.3 %
|
| 772 |
+
95 2 12 6 50.0 %
|
| 773 |
+
95 1 6 6 100.0 %
|
| 774 |
+
96 3 18 6 33.3 %
|
| 775 |
+
96 3 18 6 33.3 %
|
| 776 |
+
96 2 12 6 50.0 %
|
| 777 |
+
96 2 12 6 50.0 %
|
| 778 |
+
96 3 18 6 33.3 %
|
| 779 |
+
96 1 6 6 100.0 %
|
| 780 |
+
96 1 6 6 100.0 %
|
| 781 |
+
96 7 42 6 14.3 %
|
| 782 |
+
97 5 30 6 20.0 %
|
| 783 |
+
97 2 12 6 50.0 %
|
| 784 |
+
97 7 42 6 14.3 %
|
| 785 |
+
97 3 18 6 33.3 %
|
| 786 |
+
97 9 54 6 11.1 %
|
| 787 |
+
97 2 12 6 50.0 %
|
| 788 |
+
97 7 42 6 14.3 %
|
| 789 |
+
97 2 12 6 50.0 %
|
| 790 |
+
98 2 12 6 50.0 %
|
| 791 |
+
98 2 12 6 50.0 %
|
| 792 |
+
98 2 12 6 50.0 %
|
| 793 |
+
98 5 30 6 20.0 %
|
| 794 |
+
98 1 6 6 100.0 %
|
| 795 |
+
98 2 12 6 50.0 %
|
| 796 |
+
98 4 24 6 25.0 %
|
| 797 |
+
98 9 54 6 11.1 %
|
| 798 |
+
99 2 12 6 50.0 %
|
| 799 |
+
99 2 12 6 50.0 %
|
| 800 |
+
99 5 30 6 20.0 %
|
| 801 |
+
99 6 36 6 16.7 %
|
| 802 |
+
99 1 6 6 100.0 %
|
| 803 |
+
99 3 18 6 33.3 %
|
| 804 |
+
99 2 12 6 50.0 %
|
| 805 |
+
99 3 18 6 33.3 %
|