Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
dapo
trl
conversational
text-generation-inference
Instructions to use kangdawei/MMR-DAPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kangdawei/MMR-DAPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kangdawei/MMR-DAPO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kangdawei/MMR-DAPO") model = AutoModelForCausalLM.from_pretrained("kangdawei/MMR-DAPO", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kangdawei/MMR-DAPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kangdawei/MMR-DAPO" # 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/MMR-DAPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kangdawei/MMR-DAPO
- SGLang
How to use kangdawei/MMR-DAPO 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/MMR-DAPO" \ --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/MMR-DAPO", "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/MMR-DAPO" \ --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/MMR-DAPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kangdawei/MMR-DAPO with Docker Model Runner:
docker model run hf.co/kangdawei/MMR-DAPO
Commit History
-
End of training
Verified signature11e8628 -
Model save
Verified signatured1ab61c -
Training in progress, step 200
Verified signatured5ad9c9 -
Training in progress, step 190
Verified signature526d078 -
Training in progress, step 180
Verified signature3038195 -
Training in progress, step 170
Verified signaturec9547df -
Training in progress, step 160
Verified signaturefcde481 -
Training in progress, step 150
Verified signature48a5693 -
Training in progress, step 140
Verified signaturec6e90cf -
Training in progress, step 130
Verified signature44d2e86 -
Training in progress, step 120
Verified signatured94922d -
Training in progress, step 110
Verified signature4a7f93d -
Training in progress, step 100
Verified signaturefd1bed0 -
Training in progress, step 90
Verified signature4772c9b -
Training in progress, step 80
Verified signaturede054e9 -
Training in progress, step 70
Verified signaturecddce43 -
Training in progress, step 60
Verified signature2355dd5 -
Training in progress, step 50
Verified signature7c6f8c6 -
Training in progress, step 40
Verified signatured353f21 -
Training in progress, step 30
Verified signature8c85fbb -
Training in progress, step 20
Verified signature5d18bdc -
Training in progress, step 10
Verified signature8b5c6bf
-
End of training
Verified signaturec83c281 -
Model save
Verified signaturee7f62f6 -
Training in progress, step 100
Verified signature58ca0f8 -
Training in progress, step 90
Verified signature81b7ede -
Training in progress, step 80
Verified signature73cd462 -
Training in progress, step 70
Verified signature1baf84a -
Training in progress, step 60
Verified signatureab339be -
Training in progress, step 50
Verified signaturebd9e59d -
Training in progress, step 40
Verified signature796918d -
Training in progress, step 30
Verified signaturea921356 -
Training in progress, step 20
Verified signatureb9fc1ac -
Training in progress, step 10
Verified signatured40d977
-
End of training
Verified signature574b8eb -
Model save
Verified signaturef4f3eb7 -
Training in progress, step 500
Verified signaturef9c5d06 -
Training in progress, step 450
Verified signature26cabe9 -
Training in progress, step 400
Verified signature665362b -
Training in progress, step 350
Verified signature930087f -
Training in progress, step 300
Verified signature5fd46f1 -
Training in progress, step 250
Verified signature057ea8b -
Training in progress, step 200
Verified signature2b911ae -
Training in progress, step 150
Verified signaturefb0093c -
Training in progress, step 100
Verified signature4d382f6 -
Training in progress, step 50
Verified signaturef51d281
-
initial commit
Verified signature225ca7e