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 120
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:3a5cd7f816814ff952e83aa4560c33878e01d4209c21c353dc5cbdfb6a712195
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -883,3 +883,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 883 |
109 3 18 6 33.3 %
|
| 884 |
109 2 12 6 50.0 %
|
| 885 |
109 6 36 6 16.7 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 883 |
109 3 18 6 33.3 %
|
| 884 |
109 2 12 6 50.0 %
|
| 885 |
109 6 36 6 16.7 %
|
| 886 |
+
110 2 12 6 50.0 %
|
| 887 |
+
110 2 12 6 50.0 %
|
| 888 |
+
110 5 30 6 20.0 %
|
| 889 |
+
110 2 12 6 50.0 %
|
| 890 |
+
110 3 18 6 33.3 %
|
| 891 |
+
110 7 42 6 14.3 %
|
| 892 |
+
110 7 42 6 14.3 %
|
| 893 |
+
110 1 6 6 100.0 %
|
| 894 |
+
111 2 12 6 50.0 %
|
| 895 |
+
111 4 24 6 25.0 %
|
| 896 |
+
111 1 6 6 100.0 %
|
| 897 |
+
111 1 6 6 100.0 %
|
| 898 |
+
111 1 6 6 100.0 %
|
| 899 |
+
111 2 12 6 50.0 %
|
| 900 |
+
111 2 12 6 50.0 %
|
| 901 |
+
111 2 12 6 50.0 %
|
| 902 |
+
112 4 24 6 25.0 %
|
| 903 |
+
112 1 6 6 100.0 %
|
| 904 |
+
112 4 24 6 25.0 %
|
| 905 |
+
112 3 18 6 33.3 %
|
| 906 |
+
112 5 30 6 20.0 %
|
| 907 |
+
112 2 12 6 50.0 %
|
| 908 |
+
112 4 24 6 25.0 %
|
| 909 |
+
112 2 12 6 50.0 %
|
| 910 |
+
113 7 42 6 14.3 %
|
| 911 |
+
113 1 6 6 100.0 %
|
| 912 |
+
113 4 24 6 25.0 %
|
| 913 |
+
113 6 36 6 16.7 %
|
| 914 |
+
113 1 6 6 100.0 %
|
| 915 |
+
113 4 24 6 25.0 %
|
| 916 |
+
113 3 18 6 33.3 %
|
| 917 |
+
113 2 12 6 50.0 %
|
| 918 |
+
114 1 6 6 100.0 %
|
| 919 |
+
114 5 30 6 20.0 %
|
| 920 |
+
114 6 36 6 16.7 %
|
| 921 |
+
114 3 18 6 33.3 %
|
| 922 |
+
114 3 18 6 33.3 %
|
| 923 |
+
114 2 12 6 50.0 %
|
| 924 |
+
114 2 12 6 50.0 %
|
| 925 |
+
114 3 18 6 33.3 %
|
| 926 |
+
115 3 18 6 33.3 %
|
| 927 |
+
115 3 18 6 33.3 %
|
| 928 |
+
115 4 24 6 25.0 %
|
| 929 |
+
115 2 12 6 50.0 %
|
| 930 |
+
115 5 30 6 20.0 %
|
| 931 |
+
115 1 6 6 100.0 %
|
| 932 |
+
115 2 12 6 50.0 %
|
| 933 |
+
115 3 18 6 33.3 %
|
| 934 |
+
116 2 12 6 50.0 %
|
| 935 |
+
116 4 24 6 25.0 %
|
| 936 |
+
116 1 6 6 100.0 %
|
| 937 |
+
116 3 18 6 33.3 %
|
| 938 |
+
116 3 18 6 33.3 %
|
| 939 |
+
116 2 12 6 50.0 %
|
| 940 |
+
116 8 48 6 12.5 %
|
| 941 |
+
116 2 12 6 50.0 %
|
| 942 |
+
117 2 12 6 50.0 %
|
| 943 |
+
117 6 36 6 16.7 %
|
| 944 |
+
117 3 18 6 33.3 %
|
| 945 |
+
117 4 24 6 25.0 %
|
| 946 |
+
117 1 6 6 100.0 %
|
| 947 |
+
117 7 42 6 14.3 %
|
| 948 |
+
117 4 24 6 25.0 %
|
| 949 |
+
117 1 6 6 100.0 %
|
| 950 |
+
118 4 24 6 25.0 %
|
| 951 |
+
118 1 6 6 100.0 %
|
| 952 |
+
118 4 24 6 25.0 %
|
| 953 |
+
118 2 12 6 50.0 %
|
| 954 |
+
118 2 12 6 50.0 %
|
| 955 |
+
118 3 18 6 33.3 %
|
| 956 |
+
118 2 12 6 50.0 %
|
| 957 |
+
118 5 30 6 20.0 %
|
| 958 |
+
119 3 18 6 33.3 %
|
| 959 |
+
119 4 24 6 25.0 %
|
| 960 |
+
119 4 24 6 25.0 %
|
| 961 |
+
119 3 18 6 33.3 %
|
| 962 |
+
119 2 12 6 50.0 %
|
| 963 |
+
119 1 6 6 100.0 %
|
| 964 |
+
119 4 24 6 25.0 %
|
| 965 |
+
119 3 18 6 33.3 %
|