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 90
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:45102f3d0689a3540b9e8de2776ec867b822e056f444363167f4089f53d3becb
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -643,3 +643,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 643 |
79 3 18 6 33.3 %
|
| 644 |
79 1 6 6 100.0 %
|
| 645 |
79 2 12 6 50.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 643 |
79 3 18 6 33.3 %
|
| 644 |
79 1 6 6 100.0 %
|
| 645 |
79 2 12 6 50.0 %
|
| 646 |
+
80 3 18 6 33.3 %
|
| 647 |
+
80 3 18 6 33.3 %
|
| 648 |
+
80 2 12 6 50.0 %
|
| 649 |
+
80 2 12 6 50.0 %
|
| 650 |
+
80 2 12 6 50.0 %
|
| 651 |
+
80 1 6 6 100.0 %
|
| 652 |
+
80 1 6 6 100.0 %
|
| 653 |
+
80 3 18 6 33.3 %
|
| 654 |
+
81 3 18 6 33.3 %
|
| 655 |
+
81 2 12 6 50.0 %
|
| 656 |
+
81 3 18 6 33.3 %
|
| 657 |
+
81 4 24 6 25.0 %
|
| 658 |
+
81 6 36 6 16.7 %
|
| 659 |
+
81 1 6 6 100.0 %
|
| 660 |
+
81 3 18 6 33.3 %
|
| 661 |
+
81 2 12 6 50.0 %
|
| 662 |
+
82 5 30 6 20.0 %
|
| 663 |
+
82 2 12 6 50.0 %
|
| 664 |
+
82 4 24 6 25.0 %
|
| 665 |
+
82 2 12 6 50.0 %
|
| 666 |
+
82 3 18 6 33.3 %
|
| 667 |
+
82 1 6 6 100.0 %
|
| 668 |
+
82 2 12 6 50.0 %
|
| 669 |
+
82 2 12 6 50.0 %
|
| 670 |
+
83 2 12 6 50.0 %
|
| 671 |
+
83 3 18 6 33.3 %
|
| 672 |
+
83 2 12 6 50.0 %
|
| 673 |
+
83 3 18 6 33.3 %
|
| 674 |
+
83 4 24 6 25.0 %
|
| 675 |
+
83 2 12 6 50.0 %
|
| 676 |
+
83 3 18 6 33.3 %
|
| 677 |
+
83 2 12 6 50.0 %
|
| 678 |
+
84 4 24 6 25.0 %
|
| 679 |
+
84 3 18 6 33.3 %
|
| 680 |
+
84 2 12 6 50.0 %
|
| 681 |
+
84 1 6 6 100.0 %
|
| 682 |
+
84 3 18 6 33.3 %
|
| 683 |
+
84 2 12 6 50.0 %
|
| 684 |
+
84 3 18 6 33.3 %
|
| 685 |
+
84 2 12 6 50.0 %
|
| 686 |
+
85 2 12 6 50.0 %
|
| 687 |
+
85 2 12 6 50.0 %
|
| 688 |
+
85 4 24 6 25.0 %
|
| 689 |
+
85 2 12 6 50.0 %
|
| 690 |
+
85 1 6 6 100.0 %
|
| 691 |
+
85 1 6 6 100.0 %
|
| 692 |
+
85 3 18 6 33.3 %
|
| 693 |
+
85 6 36 6 16.7 %
|
| 694 |
+
86 2 12 6 50.0 %
|
| 695 |
+
86 2 12 6 50.0 %
|
| 696 |
+
86 3 18 6 33.3 %
|
| 697 |
+
86 5 30 6 20.0 %
|
| 698 |
+
86 6 36 6 16.7 %
|
| 699 |
+
86 4 24 6 25.0 %
|
| 700 |
+
86 6 36 6 16.7 %
|
| 701 |
+
86 1 6 6 100.0 %
|
| 702 |
+
87 3 18 6 33.3 %
|
| 703 |
+
87 6 36 6 16.7 %
|
| 704 |
+
87 4 24 6 25.0 %
|
| 705 |
+
87 2 12 6 50.0 %
|
| 706 |
+
87 4 24 6 25.0 %
|
| 707 |
+
87 7 42 6 14.3 %
|
| 708 |
+
87 5 30 6 20.0 %
|
| 709 |
+
87 5 30 6 20.0 %
|
| 710 |
+
88 2 12 6 50.0 %
|
| 711 |
+
88 1 6 6 100.0 %
|
| 712 |
+
88 2 12 6 50.0 %
|
| 713 |
+
88 3 18 6 33.3 %
|
| 714 |
+
88 3 18 6 33.3 %
|
| 715 |
+
88 3 18 6 33.3 %
|
| 716 |
+
88 2 12 6 50.0 %
|
| 717 |
+
88 3 18 6 33.3 %
|
| 718 |
+
89 2 12 6 50.0 %
|
| 719 |
+
89 2 12 6 50.0 %
|
| 720 |
+
89 2 12 6 50.0 %
|
| 721 |
+
89 3 18 6 33.3 %
|
| 722 |
+
89 1 6 6 100.0 %
|
| 723 |
+
89 3 18 6 33.3 %
|
| 724 |
+
89 5 30 6 20.0 %
|
| 725 |
+
89 3 18 6 33.3 %
|