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 40
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:16554f2a3178779f5751613b9c53a6e836051d4e2bee117f8960dbcb1c973ae5
|
| 3 |
size 335605144
|
dynamic_sampling_log.txt
CHANGED
|
@@ -243,3 +243,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 243 |
29 2 12 6 50.0 %
|
| 244 |
29 1 6 6 100.0 %
|
| 245 |
29 15 90 6 6.7 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
29 2 12 6 50.0 %
|
| 244 |
29 1 6 6 100.0 %
|
| 245 |
29 15 90 6 6.7 %
|
| 246 |
+
30 2 12 6 50.0 %
|
| 247 |
+
30 2 12 6 50.0 %
|
| 248 |
+
30 2 12 6 50.0 %
|
| 249 |
+
30 1 6 6 100.0 %
|
| 250 |
+
30 7 42 6 14.3 %
|
| 251 |
+
30 4 24 6 25.0 %
|
| 252 |
+
30 1 6 6 100.0 %
|
| 253 |
+
30 6 36 6 16.7 %
|
| 254 |
+
31 6 36 6 16.7 %
|
| 255 |
+
31 2 12 6 50.0 %
|
| 256 |
+
31 2 12 6 50.0 %
|
| 257 |
+
31 9 54 6 11.1 %
|
| 258 |
+
31 3 18 6 33.3 %
|
| 259 |
+
31 3 18 6 33.3 %
|
| 260 |
+
31 2 12 6 50.0 %
|
| 261 |
+
31 4 24 6 25.0 %
|
| 262 |
+
32 1 6 6 100.0 %
|
| 263 |
+
32 6 36 6 16.7 %
|
| 264 |
+
32 3 18 6 33.3 %
|
| 265 |
+
32 3 18 6 33.3 %
|
| 266 |
+
32 11 66 6 9.1 %
|
| 267 |
+
32 2 12 6 50.0 %
|
| 268 |
+
32 6 36 6 16.7 %
|
| 269 |
+
32 4 24 6 25.0 %
|
| 270 |
+
33 3 18 6 33.3 %
|
| 271 |
+
33 3 18 6 33.3 %
|
| 272 |
+
33 2 12 6 50.0 %
|
| 273 |
+
33 4 24 6 25.0 %
|
| 274 |
+
33 6 36 6 16.7 %
|
| 275 |
+
33 1 6 6 100.0 %
|
| 276 |
+
33 3 18 6 33.3 %
|
| 277 |
+
33 2 12 6 50.0 %
|
| 278 |
+
34 3 18 6 33.3 %
|
| 279 |
+
34 6 36 6 16.7 %
|
| 280 |
+
34 7 42 6 14.3 %
|
| 281 |
+
34 4 24 6 25.0 %
|
| 282 |
+
34 4 24 6 25.0 %
|
| 283 |
+
34 2 12 6 50.0 %
|
| 284 |
+
34 2 12 6 50.0 %
|
| 285 |
+
34 2 12 6 50.0 %
|
| 286 |
+
35 4 24 6 25.0 %
|
| 287 |
+
35 3 18 6 33.3 %
|
| 288 |
+
35 3 18 6 33.3 %
|
| 289 |
+
35 6 36 6 16.7 %
|
| 290 |
+
35 8 48 6 12.5 %
|
| 291 |
+
35 4 24 6 25.0 %
|
| 292 |
+
35 7 42 6 14.3 %
|
| 293 |
+
35 5 30 6 20.0 %
|
| 294 |
+
36 5 30 6 20.0 %
|
| 295 |
+
36 2 12 6 50.0 %
|
| 296 |
+
36 3 18 6 33.3 %
|
| 297 |
+
36 4 24 6 25.0 %
|
| 298 |
+
36 5 30 6 20.0 %
|
| 299 |
+
36 3 18 6 33.3 %
|
| 300 |
+
36 2 12 6 50.0 %
|
| 301 |
+
36 2 12 6 50.0 %
|
| 302 |
+
37 5 30 6 20.0 %
|
| 303 |
+
37 12 72 6 8.3 %
|
| 304 |
+
37 4 24 6 25.0 %
|
| 305 |
+
37 2 12 6 50.0 %
|
| 306 |
+
37 5 30 6 20.0 %
|
| 307 |
+
37 10 60 6 10.0 %
|
| 308 |
+
37 2 12 6 50.0 %
|
| 309 |
+
37 5 30 6 20.0 %
|
| 310 |
+
38 3 18 6 33.3 %
|
| 311 |
+
38 5 30 6 20.0 %
|
| 312 |
+
38 6 36 6 16.7 %
|
| 313 |
+
38 7 42 6 14.3 %
|
| 314 |
+
38 4 24 6 25.0 %
|
| 315 |
+
38 3 18 6 33.3 %
|
| 316 |
+
38 3 18 6 33.3 %
|
| 317 |
+
38 3 18 6 33.3 %
|
| 318 |
+
39 3 18 6 33.3 %
|
| 319 |
+
39 2 12 6 50.0 %
|
| 320 |
+
39 4 24 6 25.0 %
|
| 321 |
+
39 9 54 6 11.1 %
|
| 322 |
+
39 2 12 6 50.0 %
|
| 323 |
+
39 3 18 6 33.3 %
|
| 324 |
+
39 9 54 6 11.1 %
|
| 325 |
+
39 4 24 6 25.0 %
|