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 160
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:fac508feeebf06cfb00f1c58b1239d1aa7c716276856969a23898fd7a5f352dd
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -1203,3 +1203,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 1203 |
149 4 24 6 25.0 %
|
| 1204 |
149 2 12 6 50.0 %
|
| 1205 |
149 1 6 6 100.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1203 |
149 4 24 6 25.0 %
|
| 1204 |
149 2 12 6 50.0 %
|
| 1205 |
149 1 6 6 100.0 %
|
| 1206 |
+
150 3 18 6 33.3 %
|
| 1207 |
+
150 7 42 6 14.3 %
|
| 1208 |
+
150 2 12 6 50.0 %
|
| 1209 |
+
150 2 12 6 50.0 %
|
| 1210 |
+
150 3 18 6 33.3 %
|
| 1211 |
+
150 5 30 6 20.0 %
|
| 1212 |
+
150 6 36 6 16.7 %
|
| 1213 |
+
150 4 24 6 25.0 %
|
| 1214 |
+
151 5 30 6 20.0 %
|
| 1215 |
+
151 1 6 6 100.0 %
|
| 1216 |
+
151 4 24 6 25.0 %
|
| 1217 |
+
151 6 36 6 16.7 %
|
| 1218 |
+
151 4 24 6 25.0 %
|
| 1219 |
+
151 4 24 6 25.0 %
|
| 1220 |
+
151 3 18 6 33.3 %
|
| 1221 |
+
151 2 12 6 50.0 %
|
| 1222 |
+
152 4 24 6 25.0 %
|
| 1223 |
+
152 5 30 6 20.0 %
|
| 1224 |
+
152 5 30 6 20.0 %
|
| 1225 |
+
152 2 12 6 50.0 %
|
| 1226 |
+
152 2 12 6 50.0 %
|
| 1227 |
+
152 1 6 6 100.0 %
|
| 1228 |
+
152 1 6 6 100.0 %
|
| 1229 |
+
152 4 24 6 25.0 %
|
| 1230 |
+
153 3 18 6 33.3 %
|
| 1231 |
+
153 3 18 6 33.3 %
|
| 1232 |
+
153 3 18 6 33.3 %
|
| 1233 |
+
153 2 12 6 50.0 %
|
| 1234 |
+
153 2 12 6 50.0 %
|
| 1235 |
+
153 2 12 6 50.0 %
|
| 1236 |
+
153 4 24 6 25.0 %
|
| 1237 |
+
153 3 18 6 33.3 %
|
| 1238 |
+
154 5 30 6 20.0 %
|
| 1239 |
+
154 3 18 6 33.3 %
|
| 1240 |
+
154 2 12 6 50.0 %
|
| 1241 |
+
154 4 24 6 25.0 %
|
| 1242 |
+
154 2 12 6 50.0 %
|
| 1243 |
+
154 4 24 6 25.0 %
|
| 1244 |
+
154 3 18 6 33.3 %
|
| 1245 |
+
154 2 12 6 50.0 %
|
| 1246 |
+
155 1 6 6 100.0 %
|
| 1247 |
+
155 2 12 6 50.0 %
|
| 1248 |
+
155 2 12 6 50.0 %
|
| 1249 |
+
155 7 42 6 14.3 %
|
| 1250 |
+
155 2 12 6 50.0 %
|
| 1251 |
+
155 3 18 6 33.3 %
|
| 1252 |
+
155 3 18 6 33.3 %
|
| 1253 |
+
155 3 18 6 33.3 %
|
| 1254 |
+
156 2 12 6 50.0 %
|
| 1255 |
+
156 1 6 6 100.0 %
|
| 1256 |
+
156 4 24 6 25.0 %
|
| 1257 |
+
156 3 18 6 33.3 %
|
| 1258 |
+
156 4 24 6 25.0 %
|
| 1259 |
+
156 4 24 6 25.0 %
|
| 1260 |
+
156 3 18 6 33.3 %
|
| 1261 |
+
156 1 6 6 100.0 %
|
| 1262 |
+
157 1 6 6 100.0 %
|
| 1263 |
+
157 2 12 6 50.0 %
|
| 1264 |
+
157 4 24 6 25.0 %
|
| 1265 |
+
157 5 30 6 20.0 %
|
| 1266 |
+
157 3 18 6 33.3 %
|
| 1267 |
+
157 3 18 6 33.3 %
|
| 1268 |
+
157 6 36 6 16.7 %
|
| 1269 |
+
157 5 30 6 20.0 %
|
| 1270 |
+
158 1 6 6 100.0 %
|
| 1271 |
+
158 1 6 6 100.0 %
|
| 1272 |
+
158 2 12 6 50.0 %
|
| 1273 |
+
158 2 12 6 50.0 %
|
| 1274 |
+
158 3 18 6 33.3 %
|
| 1275 |
+
158 10 60 6 10.0 %
|
| 1276 |
+
158 2 12 6 50.0 %
|
| 1277 |
+
158 2 12 6 50.0 %
|
| 1278 |
+
159 4 24 6 25.0 %
|
| 1279 |
+
159 4 24 6 25.0 %
|
| 1280 |
+
159 1 6 6 100.0 %
|
| 1281 |
+
159 6 36 6 16.7 %
|
| 1282 |
+
159 8 48 6 12.5 %
|
| 1283 |
+
159 2 12 6 50.0 %
|
| 1284 |
+
159 3 18 6 33.3 %
|
| 1285 |
+
159 1 6 6 100.0 %
|