Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
dapo
trl
conversational
text-generation-inference
Instructions to use kangdawei/DAPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kangdawei/DAPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kangdawei/DAPO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kangdawei/DAPO") model = AutoModelForCausalLM.from_pretrained("kangdawei/DAPO") 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
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use kangdawei/DAPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kangdawei/DAPO" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kangdawei/DAPO
- SGLang
How to use kangdawei/DAPO 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kangdawei/DAPO with Docker Model Runner:
docker model run hf.co/kangdawei/DAPO
Training in progress, step 180
Browse files- dynamic_sampling_log.txt +80 -0
- model.safetensors +1 -1
dynamic_sampling_log.txt
CHANGED
|
@@ -1363,3 +1363,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 1363 |
169 2 12 6 50.0 %
|
| 1364 |
169 9 54 6 11.1 %
|
| 1365 |
169 5 30 6 20.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1363 |
169 2 12 6 50.0 %
|
| 1364 |
169 9 54 6 11.1 %
|
| 1365 |
169 5 30 6 20.0 %
|
| 1366 |
+
170 2 12 6 50.0 %
|
| 1367 |
+
170 3 18 6 33.3 %
|
| 1368 |
+
170 10 60 6 10.0 %
|
| 1369 |
+
170 5 30 6 20.0 %
|
| 1370 |
+
170 2 12 6 50.0 %
|
| 1371 |
+
170 4 24 6 25.0 %
|
| 1372 |
+
170 6 36 6 16.7 %
|
| 1373 |
+
170 2 12 6 50.0 %
|
| 1374 |
+
171 9 54 6 11.1 %
|
| 1375 |
+
171 1 6 6 100.0 %
|
| 1376 |
+
171 4 24 6 25.0 %
|
| 1377 |
+
171 4 24 6 25.0 %
|
| 1378 |
+
171 2 12 6 50.0 %
|
| 1379 |
+
171 6 36 6 16.7 %
|
| 1380 |
+
171 3 18 6 33.3 %
|
| 1381 |
+
171 3 18 6 33.3 %
|
| 1382 |
+
172 3 18 6 33.3 %
|
| 1383 |
+
172 9 54 6 11.1 %
|
| 1384 |
+
172 8 48 6 12.5 %
|
| 1385 |
+
172 3 18 6 33.3 %
|
| 1386 |
+
172 1 6 6 100.0 %
|
| 1387 |
+
172 5 30 6 20.0 %
|
| 1388 |
+
172 2 12 6 50.0 %
|
| 1389 |
+
172 2 12 6 50.0 %
|
| 1390 |
+
173 5 30 6 20.0 %
|
| 1391 |
+
173 2 12 6 50.0 %
|
| 1392 |
+
173 3 18 6 33.3 %
|
| 1393 |
+
173 2 12 6 50.0 %
|
| 1394 |
+
173 2 12 6 50.0 %
|
| 1395 |
+
173 3 18 6 33.3 %
|
| 1396 |
+
173 2 12 6 50.0 %
|
| 1397 |
+
173 1 6 6 100.0 %
|
| 1398 |
+
174 3 18 6 33.3 %
|
| 1399 |
+
174 1 6 6 100.0 %
|
| 1400 |
+
174 5 30 6 20.0 %
|
| 1401 |
+
174 2 12 6 50.0 %
|
| 1402 |
+
174 4 24 6 25.0 %
|
| 1403 |
+
174 3 18 6 33.3 %
|
| 1404 |
+
174 5 30 6 20.0 %
|
| 1405 |
+
174 2 12 6 50.0 %
|
| 1406 |
+
175 3 18 6 33.3 %
|
| 1407 |
+
175 4 24 6 25.0 %
|
| 1408 |
+
175 6 36 6 16.7 %
|
| 1409 |
+
175 4 24 6 25.0 %
|
| 1410 |
+
175 2 12 6 50.0 %
|
| 1411 |
+
175 1 6 6 100.0 %
|
| 1412 |
+
175 2 12 6 50.0 %
|
| 1413 |
+
175 2 12 6 50.0 %
|
| 1414 |
+
176 2 12 6 50.0 %
|
| 1415 |
+
176 1 6 6 100.0 %
|
| 1416 |
+
176 4 24 6 25.0 %
|
| 1417 |
+
176 2 12 6 50.0 %
|
| 1418 |
+
176 1 6 6 100.0 %
|
| 1419 |
+
176 5 30 6 20.0 %
|
| 1420 |
+
176 2 12 6 50.0 %
|
| 1421 |
+
176 2 12 6 50.0 %
|
| 1422 |
+
177 1 6 6 100.0 %
|
| 1423 |
+
177 1 6 6 100.0 %
|
| 1424 |
+
177 3 18 6 33.3 %
|
| 1425 |
+
177 3 18 6 33.3 %
|
| 1426 |
+
177 2 12 6 50.0 %
|
| 1427 |
+
177 6 36 6 16.7 %
|
| 1428 |
+
177 10 60 6 10.0 %
|
| 1429 |
+
177 3 18 6 33.3 %
|
| 1430 |
+
178 1 6 6 100.0 %
|
| 1431 |
+
178 2 12 6 50.0 %
|
| 1432 |
+
178 1 6 6 100.0 %
|
| 1433 |
+
178 4 24 6 25.0 %
|
| 1434 |
+
178 3 18 6 33.3 %
|
| 1435 |
+
178 7 42 6 14.3 %
|
| 1436 |
+
178 2 12 6 50.0 %
|
| 1437 |
+
178 2 12 6 50.0 %
|
| 1438 |
+
179 1 6 6 100.0 %
|
| 1439 |
+
179 2 12 6 50.0 %
|
| 1440 |
+
179 3 18 6 33.3 %
|
| 1441 |
+
179 1 6 6 100.0 %
|
| 1442 |
+
179 2 12 6 50.0 %
|
| 1443 |
+
179 7 42 6 14.3 %
|
| 1444 |
+
179 6 36 6 16.7 %
|
| 1445 |
+
179 5 30 6 20.0 %
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3554214752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a835a2cd21ccf7b96f54f4771454cb93c9007ed41c4020f886d2b9102d82a5af
|
| 3 |
size 3554214752
|