Text Generation
Transformers
Safetensors
Bengali
English
gemma3
image-text-to-text
math
reasoning
computational-graph
bangla
low-resource
distractor-aware
grpo
reinforcement-learning
conversational
text-generation-inference
Instructions to use dipta007/dagger-12B_GRPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dipta007/dagger-12B_GRPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dipta007/dagger-12B_GRPO") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("dipta007/dagger-12B_GRPO") model = AutoModelForMultimodalLM.from_pretrained("dipta007/dagger-12B_GRPO", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dipta007/dagger-12B_GRPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dipta007/dagger-12B_GRPO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dipta007/dagger-12B_GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dipta007/dagger-12B_GRPO
- SGLang
How to use dipta007/dagger-12B_GRPO 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 "dipta007/dagger-12B_GRPO" \ --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": "dipta007/dagger-12B_GRPO", "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 "dipta007/dagger-12B_GRPO" \ --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": "dipta007/dagger-12B_GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dipta007/dagger-12B_GRPO with Docker Model Runner:
docker model run hf.co/dipta007/dagger-12B_GRPO
Update card: EMNLP 2026 Findings badges, proceedings citation, drop unimplemented ratio_split op
Browse files
README.md
CHANGED
|
@@ -24,12 +24,18 @@ datasets:
|
|
| 24 |
|
| 25 |
# DAGGER-12B-GRPO
|
| 26 |
|
| 27 |
-
<
|
| 28 |
-
|
| 29 |
-
</
|
| 30 |
-
<
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## Model Description
|
| 35 |
|
|
@@ -86,7 +92,7 @@ USER_PROMPT_TEMPLATE = """You are an expert Bengali Math Reasoner. Your task is
|
|
| 86 |
### Graph Rules:
|
| 87 |
- `id`: Unique identifier (e.g., "n1", "n2").
|
| 88 |
- `val`: The raw number extracted from text (for input nodes).
|
| 89 |
-
- `op`: The operation (`add`, `sub`, `mul`, `div`, `round`, `sqrt`, `floor`, `sum`, `mean`
|
| 90 |
- `args`: List of input node IDs.
|
| 91 |
- `distractor`: Boolean (`true` / `false`). Set to `true` if the node is NOT used in the final calculation path.
|
| 92 |
- `label`: Label for the node.
|
|
@@ -177,13 +183,14 @@ print(response)
|
|
| 177 |
## Citation
|
| 178 |
|
| 179 |
```bibtex
|
| 180 |
-
@
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
|
|
|
| 188 |
}
|
| 189 |
```
|
|
|
|
| 24 |
|
| 25 |
# DAGGER-12B-GRPO
|
| 26 |
|
| 27 |
+
<p align="center">
|
| 28 |
+
<a href="https://arxiv.org/abs/2601.06853">
|
| 29 |
+
<img src="https://img.shields.io/badge/%F0%9F%94%A5_Accepted_at-EMNLP_2026_(Findings)_%F0%9F%94%A5-b12a00?style=for-the-badge&labelColor=ffb300" alt="Accepted at EMNLP 2026 (Findings)">
|
| 30 |
+
</a>
|
| 31 |
+
</p>
|
| 32 |
+
|
| 33 |
+
[](https://arxiv.org/abs/2601.06853)
|
| 34 |
+
[](https://arxiv.org/abs/2601.06853)
|
| 35 |
+
[](https://dipta007.github.io/DAGGER/)
|
| 36 |
+
[](https://huggingface.co/datasets/dipta007/DistractMath-Bn)
|
| 37 |
+
[](https://huggingface.co/collections/dipta007/dagger-emnlp-2026-findings)
|
| 38 |
+
[](https://github.com/dipta007/dagger)
|
| 39 |
|
| 40 |
## Model Description
|
| 41 |
|
|
|
|
| 92 |
### Graph Rules:
|
| 93 |
- `id`: Unique identifier (e.g., "n1", "n2").
|
| 94 |
- `val`: The raw number extracted from text (for input nodes).
|
| 95 |
+
- `op`: The operation (`add`, `sub`, `mul`, `div`, `round`, `sqrt`, `floor`, `sum`, `mean`). Use `const` for input numbers.
|
| 96 |
- `args`: List of input node IDs.
|
| 97 |
- `distractor`: Boolean (`true` / `false`). Set to `true` if the node is NOT used in the final calculation path.
|
| 98 |
- `label`: Label for the node.
|
|
|
|
| 183 |
## Citation
|
| 184 |
|
| 185 |
```bibtex
|
| 186 |
+
@inproceedings{nazi2026dagger,
|
| 187 |
+
title={{\dag}DAGGER: Distractor-Aware Graph Generation for Executable Reasoning in Math Problems},
|
| 188 |
+
author={Zabir Al Nazi and Shubhashis Roy Dipta and Sudipta Kar},
|
| 189 |
+
booktitle={Findings of the Association for Computational Linguistics: EMNLP 2026},
|
| 190 |
+
year={2026},
|
| 191 |
+
eprint={2601.06853},
|
| 192 |
+
archivePrefix={arXiv},
|
| 193 |
+
primaryClass={cs.CL},
|
| 194 |
+
url={https://arxiv.org/abs/2601.06853},
|
| 195 |
}
|
| 196 |
```
|