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 60
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:b64dbf2c3e0bcfb253f5728f9ab08e0e6f7c7ed7723d38a672cb81e68dc0a8db
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -403,3 +403,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 403 |
49 1 6 6 100.0 %
|
| 404 |
49 1 6 6 100.0 %
|
| 405 |
49 3 18 6 33.3 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
49 1 6 6 100.0 %
|
| 404 |
49 1 6 6 100.0 %
|
| 405 |
49 3 18 6 33.3 %
|
| 406 |
+
50 3 18 6 33.3 %
|
| 407 |
+
50 3 18 6 33.3 %
|
| 408 |
+
50 5 30 6 20.0 %
|
| 409 |
+
50 3 18 6 33.3 %
|
| 410 |
+
50 3 18 6 33.3 %
|
| 411 |
+
50 1 6 6 100.0 %
|
| 412 |
+
50 3 18 6 33.3 %
|
| 413 |
+
50 3 18 6 33.3 %
|
| 414 |
+
51 4 24 6 25.0 %
|
| 415 |
+
51 2 12 6 50.0 %
|
| 416 |
+
51 2 12 6 50.0 %
|
| 417 |
+
51 4 24 6 25.0 %
|
| 418 |
+
51 2 12 6 50.0 %
|
| 419 |
+
51 6 36 6 16.7 %
|
| 420 |
+
51 2 12 6 50.0 %
|
| 421 |
+
51 1 6 6 100.0 %
|
| 422 |
+
52 2 12 6 50.0 %
|
| 423 |
+
52 7 42 6 14.3 %
|
| 424 |
+
52 3 18 6 33.3 %
|
| 425 |
+
52 4 24 6 25.0 %
|
| 426 |
+
52 2 12 6 50.0 %
|
| 427 |
+
52 8 48 6 12.5 %
|
| 428 |
+
52 2 12 6 50.0 %
|
| 429 |
+
52 1 6 6 100.0 %
|
| 430 |
+
53 2 12 6 50.0 %
|
| 431 |
+
53 3 18 6 33.3 %
|
| 432 |
+
53 3 18 6 33.3 %
|
| 433 |
+
53 2 12 6 50.0 %
|
| 434 |
+
53 3 18 6 33.3 %
|
| 435 |
+
53 3 18 6 33.3 %
|
| 436 |
+
53 2 12 6 50.0 %
|
| 437 |
+
53 5 30 6 20.0 %
|
| 438 |
+
54 3 18 6 33.3 %
|
| 439 |
+
54 4 24 6 25.0 %
|
| 440 |
+
54 4 24 6 25.0 %
|
| 441 |
+
54 1 6 6 100.0 %
|
| 442 |
+
54 4 24 6 25.0 %
|
| 443 |
+
54 1 6 6 100.0 %
|
| 444 |
+
54 4 24 6 25.0 %
|
| 445 |
+
54 3 18 6 33.3 %
|
| 446 |
+
55 1 6 6 100.0 %
|
| 447 |
+
55 1 6 6 100.0 %
|
| 448 |
+
55 2 12 6 50.0 %
|
| 449 |
+
55 3 18 6 33.3 %
|
| 450 |
+
55 6 36 6 16.7 %
|
| 451 |
+
55 1 6 6 100.0 %
|
| 452 |
+
55 4 24 6 25.0 %
|
| 453 |
+
55 3 18 6 33.3 %
|
| 454 |
+
56 10 60 6 10.0 %
|
| 455 |
+
56 5 30 6 20.0 %
|
| 456 |
+
56 4 24 6 25.0 %
|
| 457 |
+
56 6 36 6 16.7 %
|
| 458 |
+
56 3 18 6 33.3 %
|
| 459 |
+
56 6 36 6 16.7 %
|
| 460 |
+
56 2 12 6 50.0 %
|
| 461 |
+
56 2 12 6 50.0 %
|
| 462 |
+
57 5 30 6 20.0 %
|
| 463 |
+
57 3 18 6 33.3 %
|
| 464 |
+
57 1 6 6 100.0 %
|
| 465 |
+
57 1 6 6 100.0 %
|
| 466 |
+
57 8 48 6 12.5 %
|
| 467 |
+
57 2 12 6 50.0 %
|
| 468 |
+
57 2 12 6 50.0 %
|
| 469 |
+
57 2 12 6 50.0 %
|
| 470 |
+
58 4 24 6 25.0 %
|
| 471 |
+
58 1 6 6 100.0 %
|
| 472 |
+
58 5 30 6 20.0 %
|
| 473 |
+
58 5 30 6 20.0 %
|
| 474 |
+
58 1 6 6 100.0 %
|
| 475 |
+
58 4 24 6 25.0 %
|
| 476 |
+
58 1 6 6 100.0 %
|
| 477 |
+
58 5 30 6 20.0 %
|
| 478 |
+
59 10 60 6 10.0 %
|
| 479 |
+
59 3 18 6 33.3 %
|
| 480 |
+
59 3 18 6 33.3 %
|
| 481 |
+
59 3 18 6 33.3 %
|
| 482 |
+
59 1 6 6 100.0 %
|
| 483 |
+
59 1 6 6 100.0 %
|
| 484 |
+
59 1 6 6 100.0 %
|
| 485 |
+
59 3 18 6 33.3 %
|