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 140
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:b2aa178336fd6858bc14b3cdc847c2dbe93c0ca22bc50773beab27b7fe2719e2
|
| 3 |
size 335605144
|
dynamic_sampling_log.txt
CHANGED
|
@@ -1054,3 +1054,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 1054 |
129 3 18 6 33.3 %
|
| 1055 |
129 5 30 6 20.0 %
|
| 1056 |
129 3 18 6 33.3 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1054 |
129 3 18 6 33.3 %
|
| 1055 |
129 5 30 6 20.0 %
|
| 1056 |
129 3 18 6 33.3 %
|
| 1057 |
+
130 3 18 6 33.3 %
|
| 1058 |
+
130 2 12 6 50.0 %
|
| 1059 |
+
130 5 30 6 20.0 %
|
| 1060 |
+
130 3 18 6 33.3 %
|
| 1061 |
+
130 4 24 6 25.0 %
|
| 1062 |
+
130 7 42 6 14.3 %
|
| 1063 |
+
130 2 12 6 50.0 %
|
| 1064 |
+
130 3 18 6 33.3 %
|
| 1065 |
+
131 3 18 6 33.3 %
|
| 1066 |
+
131 6 36 6 16.7 %
|
| 1067 |
+
131 6 36 6 16.7 %
|
| 1068 |
+
131 2 12 6 50.0 %
|
| 1069 |
+
131 2 12 6 50.0 %
|
| 1070 |
+
131 1 6 6 100.0 %
|
| 1071 |
+
131 4 24 6 25.0 %
|
| 1072 |
+
131 6 36 6 16.7 %
|
| 1073 |
+
132 2 12 6 50.0 %
|
| 1074 |
+
132 3 18 6 33.3 %
|
| 1075 |
+
132 4 24 6 25.0 %
|
| 1076 |
+
132 1 6 6 100.0 %
|
| 1077 |
+
132 1 6 6 100.0 %
|
| 1078 |
+
132 5 30 6 20.0 %
|
| 1079 |
+
132 4 24 6 25.0 %
|
| 1080 |
+
132 3 18 6 33.3 %
|
| 1081 |
+
133 4 24 6 25.0 %
|
| 1082 |
+
133 4 24 6 25.0 %
|
| 1083 |
+
133 3 18 6 33.3 %
|
| 1084 |
+
133 3 18 6 33.3 %
|
| 1085 |
+
133 1 6 6 100.0 %
|
| 1086 |
+
133 1 6 6 100.0 %
|
| 1087 |
+
133 4 24 6 25.0 %
|
| 1088 |
+
133 4 24 6 25.0 %
|
| 1089 |
+
134 4 24 6 25.0 %
|
| 1090 |
+
134 2 12 6 50.0 %
|
| 1091 |
+
134 3 18 6 33.3 %
|
| 1092 |
+
134 7 42 6 14.3 %
|
| 1093 |
+
134 3 18 6 33.3 %
|
| 1094 |
+
134 3 18 6 33.3 %
|
| 1095 |
+
134 4 24 6 25.0 %
|
| 1096 |
+
134 2 12 6 50.0 %
|
| 1097 |
+
135 2 12 6 50.0 %
|
| 1098 |
+
135 1 6 6 100.0 %
|
| 1099 |
+
135 1 6 6 100.0 %
|
| 1100 |
+
135 2 12 6 50.0 %
|
| 1101 |
+
135 10 60 6 10.0 %
|
| 1102 |
+
135 4 24 6 25.0 %
|
| 1103 |
+
135 2 12 6 50.0 %
|
| 1104 |
+
135 11 66 6 9.1 %
|
| 1105 |
+
136 1 6 6 100.0 %
|
| 1106 |
+
136 9 54 6 11.1 %
|
| 1107 |
+
136 9 54 6 11.1 %
|
| 1108 |
+
136 3 18 6 33.3 %
|
| 1109 |
+
136 10 60 6 10.0 %
|
| 1110 |
+
136 2 12 6 50.0 %
|
| 1111 |
+
136 4 24 6 25.0 %
|
| 1112 |
+
136 4 24 6 25.0 %
|
| 1113 |
+
137 8 48 6 12.5 %
|
| 1114 |
+
137 1 6 6 100.0 %
|
| 1115 |
+
137 2 12 6 50.0 %
|
| 1116 |
+
137 2 12 6 50.0 %
|
| 1117 |
+
137 8 48 6 12.5 %
|
| 1118 |
+
137 2 12 6 50.0 %
|
| 1119 |
+
137 4 24 6 25.0 %
|
| 1120 |
+
137 3 18 6 33.3 %
|
| 1121 |
+
138 6 36 6 16.7 %
|
| 1122 |
+
138 5 30 6 20.0 %
|
| 1123 |
+
138 4 24 6 25.0 %
|
| 1124 |
+
138 4 24 6 25.0 %
|
| 1125 |
+
138 1 6 6 100.0 %
|
| 1126 |
+
138 1 6 6 100.0 %
|
| 1127 |
+
138 4 24 6 25.0 %
|
| 1128 |
+
138 9 54 6 11.1 %
|
| 1129 |
+
139 2 12 6 50.0 %
|
| 1130 |
+
139 4 24 6 25.0 %
|
| 1131 |
+
139 2 12 6 50.0 %
|
| 1132 |
+
139 5 30 6 20.0 %
|
| 1133 |
+
139 3 18 6 33.3 %
|
| 1134 |
+
139 6 36 6 16.7 %
|
| 1135 |
+
139 3 18 6 33.3 %
|
| 1136 |
+
139 4 24 6 25.0 %
|