Text Generation
Transformers
Safetensors
llama
Generated from Trainer
open-r1
dapo
trl
conversational
text-generation-inference
Instructions to use kangdawei/DAPO-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kangdawei/DAPO-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kangdawei/DAPO-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kangdawei/DAPO-8B") model = AutoModelForCausalLM.from_pretrained("kangdawei/DAPO-8B") 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-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kangdawei/DAPO-8B" # 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-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kangdawei/DAPO-8B
- SGLang
How to use kangdawei/DAPO-8B 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-8B" \ --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-8B", "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-8B" \ --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-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kangdawei/DAPO-8B with Docker Model Runner:
docker model run hf.co/kangdawei/DAPO-8B
Training in progress, step 20
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 335605144
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4a98795d5ec149871e95995cc2de6bb078575c0a47e7e706b07ace8bf6b6b7d
|
| 3 |
size 335605144
|
dynamic_sampling_log.txt
CHANGED
|
@@ -83,3 +83,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 83 |
9 1 6 6 100.0 %
|
| 84 |
9 4 24 6 25.0 %
|
| 85 |
9 1 6 6 100.0 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
9 1 6 6 100.0 %
|
| 84 |
9 4 24 6 25.0 %
|
| 85 |
9 1 6 6 100.0 %
|
| 86 |
+
10 4 24 6 25.0 %
|
| 87 |
+
10 2 12 6 50.0 %
|
| 88 |
+
10 5 30 6 20.0 %
|
| 89 |
+
10 7 42 6 14.3 %
|
| 90 |
+
10 4 24 6 25.0 %
|
| 91 |
+
10 13 78 6 7.7 %
|
| 92 |
+
10 5 30 6 20.0 %
|
| 93 |
+
10 5 30 6 20.0 %
|
| 94 |
+
11 6 36 6 16.7 %
|
| 95 |
+
11 4 24 6 25.0 %
|
| 96 |
+
11 4 24 6 25.0 %
|
| 97 |
+
11 1 6 6 100.0 %
|
| 98 |
+
11 10 60 6 10.0 %
|
| 99 |
+
11 4 24 6 25.0 %
|
| 100 |
+
11 6 36 6 16.7 %
|
| 101 |
+
11 5 30 6 20.0 %
|
| 102 |
+
12 2 12 6 50.0 %
|
| 103 |
+
12 2 12 6 50.0 %
|
| 104 |
+
12 10 60 6 10.0 %
|
| 105 |
+
12 4 24 6 25.0 %
|
| 106 |
+
12 1 6 6 100.0 %
|
| 107 |
+
12 3 18 6 33.3 %
|
| 108 |
+
12 3 18 6 33.3 %
|
| 109 |
+
12 2 12 6 50.0 %
|
| 110 |
+
13 5 30 6 20.0 %
|
| 111 |
+
13 2 12 6 50.0 %
|
| 112 |
+
13 12 72 6 8.3 %
|
| 113 |
+
13 1 6 6 100.0 %
|
| 114 |
+
13 4 24 6 25.0 %
|
| 115 |
+
13 5 30 6 20.0 %
|
| 116 |
+
13 2 12 6 50.0 %
|
| 117 |
+
13 2 12 6 50.0 %
|
| 118 |
+
14 4 24 6 25.0 %
|
| 119 |
+
14 1 6 6 100.0 %
|
| 120 |
+
14 4 24 6 25.0 %
|
| 121 |
+
14 1 6 6 100.0 %
|
| 122 |
+
14 3 18 6 33.3 %
|
| 123 |
+
14 3 18 6 33.3 %
|
| 124 |
+
14 2 12 6 50.0 %
|
| 125 |
+
14 3 18 6 33.3 %
|
| 126 |
+
15 2 12 6 50.0 %
|
| 127 |
+
15 3 18 6 33.3 %
|
| 128 |
+
15 6 36 6 16.7 %
|
| 129 |
+
15 1 6 6 100.0 %
|
| 130 |
+
15 5 30 6 20.0 %
|
| 131 |
+
15 1 6 6 100.0 %
|
| 132 |
+
15 2 12 6 50.0 %
|
| 133 |
+
15 4 24 6 25.0 %
|
| 134 |
+
16 4 24 6 25.0 %
|
| 135 |
+
16 1 6 6 100.0 %
|
| 136 |
+
16 3 18 6 33.3 %
|
| 137 |
+
16 10 60 6 10.0 %
|
| 138 |
+
16 1 6 6 100.0 %
|
| 139 |
+
16 6 36 6 16.7 %
|
| 140 |
+
16 1 6 6 100.0 %
|
| 141 |
+
16 4 24 6 25.0 %
|
| 142 |
+
17 3 18 6 33.3 %
|
| 143 |
+
17 4 24 6 25.0 %
|
| 144 |
+
17 3 18 6 33.3 %
|
| 145 |
+
17 2 12 6 50.0 %
|
| 146 |
+
17 2 12 6 50.0 %
|
| 147 |
+
17 2 12 6 50.0 %
|
| 148 |
+
17 1 6 6 100.0 %
|
| 149 |
+
17 3 18 6 33.3 %
|
| 150 |
+
18 3 18 6 33.3 %
|
| 151 |
+
18 3 18 6 33.3 %
|
| 152 |
+
18 2 12 6 50.0 %
|
| 153 |
+
18 10 60 6 10.0 %
|
| 154 |
+
18 3 18 6 33.3 %
|
| 155 |
+
18 9 54 6 11.1 %
|
| 156 |
+
18 4 24 6 25.0 %
|
| 157 |
+
18 5 30 6 20.0 %
|
| 158 |
+
19 7 42 6 14.3 %
|
| 159 |
+
19 6 36 6 16.7 %
|
| 160 |
+
19 1 6 6 100.0 %
|
| 161 |
+
19 6 36 6 16.7 %
|
| 162 |
+
19 1 6 6 100.0 %
|
| 163 |
+
19 3 18 6 33.3 %
|
| 164 |
+
19 4 24 6 25.0 %
|
| 165 |
+
19 5 30 6 20.0 %
|