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 190
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:2aaf360e9ec3d63b2f08a99aea624996535a5ca5d7ab084c74e6e26d41b40adb
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -1443,3 +1443,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 1443 |
179 2 12 6 50.0 %
|
| 1444 |
179 2 12 6 50.0 %
|
| 1445 |
179 3 18 6 33.3 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1443 |
179 2 12 6 50.0 %
|
| 1444 |
179 2 12 6 50.0 %
|
| 1445 |
179 3 18 6 33.3 %
|
| 1446 |
+
180 2 12 6 50.0 %
|
| 1447 |
+
180 4 24 6 25.0 %
|
| 1448 |
+
180 3 18 6 33.3 %
|
| 1449 |
+
180 6 36 6 16.7 %
|
| 1450 |
+
180 5 30 6 20.0 %
|
| 1451 |
+
180 4 24 6 25.0 %
|
| 1452 |
+
180 2 12 6 50.0 %
|
| 1453 |
+
180 1 6 6 100.0 %
|
| 1454 |
+
181 5 30 6 20.0 %
|
| 1455 |
+
181 4 24 6 25.0 %
|
| 1456 |
+
181 1 6 6 100.0 %
|
| 1457 |
+
181 3 18 6 33.3 %
|
| 1458 |
+
181 1 6 6 100.0 %
|
| 1459 |
+
181 7 42 6 14.3 %
|
| 1460 |
+
181 2 12 6 50.0 %
|
| 1461 |
+
181 5 30 6 20.0 %
|
| 1462 |
+
182 3 18 6 33.3 %
|
| 1463 |
+
182 4 24 6 25.0 %
|
| 1464 |
+
182 3 18 6 33.3 %
|
| 1465 |
+
182 4 24 6 25.0 %
|
| 1466 |
+
182 1 6 6 100.0 %
|
| 1467 |
+
182 5 30 6 20.0 %
|
| 1468 |
+
182 2 12 6 50.0 %
|
| 1469 |
+
182 1 6 6 100.0 %
|
| 1470 |
+
183 3 18 6 33.3 %
|
| 1471 |
+
183 4 24 6 25.0 %
|
| 1472 |
+
183 2 12 6 50.0 %
|
| 1473 |
+
183 1 6 6 100.0 %
|
| 1474 |
+
183 6 36 6 16.7 %
|
| 1475 |
+
183 3 18 6 33.3 %
|
| 1476 |
+
183 4 24 6 25.0 %
|
| 1477 |
+
183 2 12 6 50.0 %
|
| 1478 |
+
184 2 12 6 50.0 %
|
| 1479 |
+
184 1 6 6 100.0 %
|
| 1480 |
+
184 6 36 6 16.7 %
|
| 1481 |
+
184 5 30 6 20.0 %
|
| 1482 |
+
184 4 24 6 25.0 %
|
| 1483 |
+
184 2 12 6 50.0 %
|
| 1484 |
+
184 3 18 6 33.3 %
|
| 1485 |
+
184 1 6 6 100.0 %
|
| 1486 |
+
185 3 18 6 33.3 %
|
| 1487 |
+
185 3 18 6 33.3 %
|
| 1488 |
+
185 3 18 6 33.3 %
|
| 1489 |
+
185 6 36 6 16.7 %
|
| 1490 |
+
185 1 6 6 100.0 %
|
| 1491 |
+
185 1 6 6 100.0 %
|
| 1492 |
+
185 1 6 6 100.0 %
|
| 1493 |
+
185 2 12 6 50.0 %
|
| 1494 |
+
186 3 18 6 33.3 %
|
| 1495 |
+
186 9 54 6 11.1 %
|
| 1496 |
+
186 2 12 6 50.0 %
|
| 1497 |
+
186 3 18 6 33.3 %
|
| 1498 |
+
186 3 18 6 33.3 %
|
| 1499 |
+
186 3 18 6 33.3 %
|
| 1500 |
+
186 1 6 6 100.0 %
|
| 1501 |
+
186 3 18 6 33.3 %
|
| 1502 |
+
187 2 12 6 50.0 %
|
| 1503 |
+
187 3 18 6 33.3 %
|
| 1504 |
+
187 1 6 6 100.0 %
|
| 1505 |
+
187 10 60 6 10.0 %
|
| 1506 |
+
187 1 6 6 100.0 %
|
| 1507 |
+
187 3 18 6 33.3 %
|
| 1508 |
+
187 2 12 6 50.0 %
|
| 1509 |
+
187 2 12 6 50.0 %
|
| 1510 |
+
188 4 24 6 25.0 %
|
| 1511 |
+
188 3 18 6 33.3 %
|
| 1512 |
+
188 2 12 6 50.0 %
|
| 1513 |
+
188 5 30 6 20.0 %
|
| 1514 |
+
188 2 12 6 50.0 %
|
| 1515 |
+
188 3 18 6 33.3 %
|
| 1516 |
+
188 3 18 6 33.3 %
|
| 1517 |
+
188 2 12 6 50.0 %
|
| 1518 |
+
189 2 12 6 50.0 %
|
| 1519 |
+
189 2 12 6 50.0 %
|
| 1520 |
+
189 3 18 6 33.3 %
|
| 1521 |
+
189 2 12 6 50.0 %
|
| 1522 |
+
189 3 18 6 33.3 %
|
| 1523 |
+
189 4 24 6 25.0 %
|
| 1524 |
+
189 1 6 6 100.0 %
|
| 1525 |
+
189 5 30 6 20.0 %
|