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 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 323014560
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d093b15111c5276f6dacd03451e7d90542febf8c901632a23cee1e653bb7573
|
| 3 |
size 323014560
|
dynamic_sampling_log.txt
CHANGED
|
@@ -1043,3 +1043,83 @@ Step Attempts Total Prompts Valid Prompts Efficiency
|
|
| 1043 |
129 2 12 6 50.0 %
|
| 1044 |
129 5 30 6 20.0 %
|
| 1045 |
129 3 18 6 33.3 %
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1043 |
129 2 12 6 50.0 %
|
| 1044 |
129 5 30 6 20.0 %
|
| 1045 |
129 3 18 6 33.3 %
|
| 1046 |
+
130 3 18 6 33.3 %
|
| 1047 |
+
130 4 24 6 25.0 %
|
| 1048 |
+
130 1 6 6 100.0 %
|
| 1049 |
+
130 2 12 6 50.0 %
|
| 1050 |
+
130 7 42 6 14.3 %
|
| 1051 |
+
130 2 12 6 50.0 %
|
| 1052 |
+
130 1 6 6 100.0 %
|
| 1053 |
+
130 2 12 6 50.0 %
|
| 1054 |
+
131 5 30 6 20.0 %
|
| 1055 |
+
131 3 18 6 33.3 %
|
| 1056 |
+
131 3 18 6 33.3 %
|
| 1057 |
+
131 3 18 6 33.3 %
|
| 1058 |
+
131 3 18 6 33.3 %
|
| 1059 |
+
131 3 18 6 33.3 %
|
| 1060 |
+
131 5 30 6 20.0 %
|
| 1061 |
+
131 3 18 6 33.3 %
|
| 1062 |
+
132 2 12 6 50.0 %
|
| 1063 |
+
132 1 6 6 100.0 %
|
| 1064 |
+
132 3 18 6 33.3 %
|
| 1065 |
+
132 2 12 6 50.0 %
|
| 1066 |
+
132 4 24 6 25.0 %
|
| 1067 |
+
132 2 12 6 50.0 %
|
| 1068 |
+
132 4 24 6 25.0 %
|
| 1069 |
+
132 2 12 6 50.0 %
|
| 1070 |
+
133 5 30 6 20.0 %
|
| 1071 |
+
133 2 12 6 50.0 %
|
| 1072 |
+
133 4 24 6 25.0 %
|
| 1073 |
+
133 2 12 6 50.0 %
|
| 1074 |
+
133 3 18 6 33.3 %
|
| 1075 |
+
133 3 18 6 33.3 %
|
| 1076 |
+
133 3 18 6 33.3 %
|
| 1077 |
+
133 7 42 6 14.3 %
|
| 1078 |
+
134 1 6 6 100.0 %
|
| 1079 |
+
134 3 18 6 33.3 %
|
| 1080 |
+
134 4 24 6 25.0 %
|
| 1081 |
+
134 5 30 6 20.0 %
|
| 1082 |
+
134 2 12 6 50.0 %
|
| 1083 |
+
134 1 6 6 100.0 %
|
| 1084 |
+
134 4 24 6 25.0 %
|
| 1085 |
+
134 4 24 6 25.0 %
|
| 1086 |
+
135 4 24 6 25.0 %
|
| 1087 |
+
135 3 18 6 33.3 %
|
| 1088 |
+
135 3 18 6 33.3 %
|
| 1089 |
+
135 3 18 6 33.3 %
|
| 1090 |
+
135 8 48 6 12.5 %
|
| 1091 |
+
135 3 18 6 33.3 %
|
| 1092 |
+
135 3 18 6 33.3 %
|
| 1093 |
+
135 2 12 6 50.0 %
|
| 1094 |
+
136 3 18 6 33.3 %
|
| 1095 |
+
136 3 18 6 33.3 %
|
| 1096 |
+
136 4 24 6 25.0 %
|
| 1097 |
+
136 3 18 6 33.3 %
|
| 1098 |
+
136 5 30 6 20.0 %
|
| 1099 |
+
136 5 30 6 20.0 %
|
| 1100 |
+
136 9 54 6 11.1 %
|
| 1101 |
+
136 3 18 6 33.3 %
|
| 1102 |
+
137 3 18 6 33.3 %
|
| 1103 |
+
137 3 18 6 33.3 %
|
| 1104 |
+
137 5 30 6 20.0 %
|
| 1105 |
+
137 2 12 6 50.0 %
|
| 1106 |
+
137 1 6 6 100.0 %
|
| 1107 |
+
137 1 6 6 100.0 %
|
| 1108 |
+
137 3 18 6 33.3 %
|
| 1109 |
+
137 3 18 6 33.3 %
|
| 1110 |
+
138 2 12 6 50.0 %
|
| 1111 |
+
138 4 24 6 25.0 %
|
| 1112 |
+
138 4 24 6 25.0 %
|
| 1113 |
+
138 1 6 6 100.0 %
|
| 1114 |
+
138 2 12 6 50.0 %
|
| 1115 |
+
138 3 18 6 33.3 %
|
| 1116 |
+
138 2 12 6 50.0 %
|
| 1117 |
+
138 2 12 6 50.0 %
|
| 1118 |
+
139 1 6 6 100.0 %
|
| 1119 |
+
139 1 6 6 100.0 %
|
| 1120 |
+
139 3 18 6 33.3 %
|
| 1121 |
+
139 2 12 6 50.0 %
|
| 1122 |
+
139 9 54 6 11.1 %
|
| 1123 |
+
139 2 12 6 50.0 %
|
| 1124 |
+
139 5 30 6 20.0 %
|
| 1125 |
+
139 1 6 6 100.0 %
|