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)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kangdawei/MMR-DAPO") model = AutoModelForCausalLM.from_pretrained("kangdawei/MMR-DAPO") 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
- 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
Training in progress, step 10
Browse files- config.json +1 -1
- model.safetensors +1 -1
- training_args.bin +1 -1
config.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
| 53 |
"sliding_window": null,
|
| 54 |
"tie_word_embeddings": false,
|
| 55 |
"transformers_version": "4.57.1",
|
| 56 |
-
"use_cache":
|
| 57 |
"use_mrope": false,
|
| 58 |
"use_sliding_window": false,
|
| 59 |
"vocab_size": 151936
|
|
|
|
| 53 |
"sliding_window": null,
|
| 54 |
"tie_word_embeddings": false,
|
| 55 |
"transformers_version": "4.57.1",
|
| 56 |
+
"use_cache": false,
|
| 57 |
"use_mrope": false,
|
| 58 |
"use_sliding_window": false,
|
| 59 |
"vocab_size": 151936
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3554214752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:753b35bd67e9ecd06bd50acc8aa83bb594749cec2448bc4a0189ebc8eac5e6e2
|
| 3 |
size 3554214752
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 8760
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ddd7c83bec00d2d24e4b515aeb9a4ee9831bc36342f39876c29bca2b8ca04fc
|
| 3 |
size 8760
|