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 50
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:5acf298ef1d8e0007babb442dc99445ea6c56908df84d0048660e5b539bffa17
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -323,3 +323,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 323 |
39 3 18 6 33.3 %
|
| 324 |
39 5 30 6 20.0 %
|
| 325 |
39 4 24 6 25.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
39 3 18 6 33.3 %
|
| 324 |
39 5 30 6 20.0 %
|
| 325 |
39 4 24 6 25.0 %
|
| 326 |
+
40 3 18 6 33.3 %
|
| 327 |
+
40 4 24 6 25.0 %
|
| 328 |
+
40 7 42 6 14.3 %
|
| 329 |
+
40 2 12 6 50.0 %
|
| 330 |
+
40 3 18 6 33.3 %
|
| 331 |
+
40 8 48 6 12.5 %
|
| 332 |
+
40 3 18 6 33.3 %
|
| 333 |
+
40 1 6 6 100.0 %
|
| 334 |
+
41 2 12 6 50.0 %
|
| 335 |
+
41 4 24 6 25.0 %
|
| 336 |
+
41 3 18 6 33.3 %
|
| 337 |
+
41 4 24 6 25.0 %
|
| 338 |
+
41 5 30 6 20.0 %
|
| 339 |
+
41 2 12 6 50.0 %
|
| 340 |
+
41 6 36 6 16.7 %
|
| 341 |
+
41 2 12 6 50.0 %
|
| 342 |
+
42 5 30 6 20.0 %
|
| 343 |
+
42 5 30 6 20.0 %
|
| 344 |
+
42 4 24 6 25.0 %
|
| 345 |
+
42 5 30 6 20.0 %
|
| 346 |
+
42 1 6 6 100.0 %
|
| 347 |
+
42 1 6 6 100.0 %
|
| 348 |
+
42 3 18 6 33.3 %
|
| 349 |
+
42 2 12 6 50.0 %
|
| 350 |
+
43 6 36 6 16.7 %
|
| 351 |
+
43 2 12 6 50.0 %
|
| 352 |
+
43 3 18 6 33.3 %
|
| 353 |
+
43 3 18 6 33.3 %
|
| 354 |
+
43 1 6 6 100.0 %
|
| 355 |
+
43 4 24 6 25.0 %
|
| 356 |
+
43 2 12 6 50.0 %
|
| 357 |
+
43 5 30 6 20.0 %
|
| 358 |
+
44 2 12 6 50.0 %
|
| 359 |
+
44 2 12 6 50.0 %
|
| 360 |
+
44 2 12 6 50.0 %
|
| 361 |
+
44 4 24 6 25.0 %
|
| 362 |
+
44 3 18 6 33.3 %
|
| 363 |
+
44 2 12 6 50.0 %
|
| 364 |
+
44 1 6 6 100.0 %
|
| 365 |
+
44 4 24 6 25.0 %
|
| 366 |
+
45 3 18 6 33.3 %
|
| 367 |
+
45 3 18 6 33.3 %
|
| 368 |
+
45 5 30 6 20.0 %
|
| 369 |
+
45 2 12 6 50.0 %
|
| 370 |
+
45 7 42 6 14.3 %
|
| 371 |
+
45 3 18 6 33.3 %
|
| 372 |
+
45 1 6 6 100.0 %
|
| 373 |
+
45 4 24 6 25.0 %
|
| 374 |
+
46 1 6 6 100.0 %
|
| 375 |
+
46 1 6 6 100.0 %
|
| 376 |
+
46 2 12 6 50.0 %
|
| 377 |
+
46 3 18 6 33.3 %
|
| 378 |
+
46 1 6 6 100.0 %
|
| 379 |
+
46 1 6 6 100.0 %
|
| 380 |
+
46 4 24 6 25.0 %
|
| 381 |
+
46 4 24 6 25.0 %
|
| 382 |
+
47 3 18 6 33.3 %
|
| 383 |
+
47 5 30 6 20.0 %
|
| 384 |
+
47 2 12 6 50.0 %
|
| 385 |
+
47 4 24 6 25.0 %
|
| 386 |
+
47 2 12 6 50.0 %
|
| 387 |
+
47 5 30 6 20.0 %
|
| 388 |
+
47 2 12 6 50.0 %
|
| 389 |
+
47 1 6 6 100.0 %
|
| 390 |
+
48 1 6 6 100.0 %
|
| 391 |
+
48 9 54 6 11.1 %
|
| 392 |
+
48 1 6 6 100.0 %
|
| 393 |
+
48 3 18 6 33.3 %
|
| 394 |
+
48 1 6 6 100.0 %
|
| 395 |
+
48 3 18 6 33.3 %
|
| 396 |
+
48 2 12 6 50.0 %
|
| 397 |
+
48 1 6 6 100.0 %
|
| 398 |
+
49 5 30 6 20.0 %
|
| 399 |
+
49 6 36 6 16.7 %
|
| 400 |
+
49 3 18 6 33.3 %
|
| 401 |
+
49 3 18 6 33.3 %
|
| 402 |
+
49 2 12 6 50.0 %
|
| 403 |
+
49 1 6 6 100.0 %
|
| 404 |
+
49 1 6 6 100.0 %
|
| 405 |
+
49 3 18 6 33.3 %
|