BM-TNG commited on
Commit
83558b9
·
verified ·
1 Parent(s): 2cf44bb

Update README.md - add instructions for enabling tool calling

Browse files
Files changed (1) hide show
  1. README.md +32 -2
README.md CHANGED
@@ -54,7 +54,7 @@ R1T2 operates at a new sweet spot in intelligence vs. output token length. It ap
54
  - **R1-0528** is thinking much longer, but also is achieving **better hard benchmark results** than R1T2
55
  - As measured by SpeechMap.ai (courtesy of xlr8harder), **R1T2** is significantly **more reserved** than R1T, but not as much as R1-0528
56
  - When switching from R1T to R1T2 development, we changed from AIME24 and MT-Bench to AIME24, AIME25 and GPQA-Diamond for the intelligence score. With the new benchmark set, there is a larger score difference between R1 and the original R1T Chimera than published earlier.
57
- - Due to the influence of its R1 parent, which does not support function calling, **R1T2 is not yet recommended for function-calling** intensive applications. However, we have developed a very promising fix to this problem, it may be solved soon (i.e. until End of July or earlier)
58
 
59
  **Evaluation results**
60
 
@@ -79,7 +79,37 @@ For details on the AoE construction process, you can read our [Paper on arXiV](h
79
  With a context size of 130,000 tokens, the model proved very helpful in interpreting very long debug logs. Long-context testing was less extensive, though.
80
  - We're running the model using vLLM on 8xH200 and MI325X nodes, additionally we've tested the model using SGLang, which is also used by [chutes.ai](https://chutes.ai/app/chute/4fa0c7f5-82f7-59d1-8996-661bb778893d).
81
  - For SGLang, we recommend using versions >= v0.4.8 in combination with argument `--reasoning-parser qwen3` to properly handle rare cases when the model skips the `<think>` reasoning step.
82
- - For vLLM, we recommend to not use the `--chat-template` parameter. We observed a degenerate `<think>` token consistency otherwise.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
 
85
  ## Model Details
 
54
  - **R1-0528** is thinking much longer, but also is achieving **better hard benchmark results** than R1T2
55
  - As measured by SpeechMap.ai (courtesy of xlr8harder), **R1T2** is significantly **more reserved** than R1T, but not as much as R1-0528
56
  - When switching from R1T to R1T2 development, we changed from AIME24 and MT-Bench to AIME24, AIME25 and GPQA-Diamond for the intelligence score. With the new benchmark set, there is a larger score difference between R1 and the original R1T Chimera than published earlier.
57
+ - Function calling is supported in general, but both vLLM and SGLang currently require some specific adaptions, see the section below.
58
 
59
  **Evaluation results**
60
 
 
79
  With a context size of 130,000 tokens, the model proved very helpful in interpreting very long debug logs. Long-context testing was less extensive, though.
80
  - We're running the model using vLLM on 8xH200 and MI325X nodes, additionally we've tested the model using SGLang, which is also used by [chutes.ai](https://chutes.ai/app/chute/4fa0c7f5-82f7-59d1-8996-661bb778893d).
81
  - For SGLang, we recommend using versions >= v0.4.8 in combination with argument `--reasoning-parser qwen3` to properly handle rare cases when the model skips the `<think>` reasoning step.
82
+
83
+
84
+ ### Function calling
85
+
86
+ R1T2 does support function calling using an updated chat template (since 01 Aug 2025). However, neither vLLM nor SGLang provide an R1T2-compatible tool call parser natively but require some adaptions.
87
+
88
+ _vLLM:_
89
+
90
+ For function calling with vLLM, a new tool parser is required. While we opened a PR to vLLM to include an R1T2-compatible tool parser off-the-shelf, we also ship the tool parser file `tool_parser_vllm.py` within this repository.
91
+ With this file, tool calling can be enabled via
92
+ ```
93
+ --tool-parser-plugin <ABSOLUTE_MODEL_SNAPSHOT_PATH>/tool_parser_vllm.py \
94
+ --tool-call-parser tng_r1t2
95
+ ```
96
+
97
+ Here, put in the path to the snapshot folder such as `~/.cache/huggingface/hub/models--tngtech--DeepSeek-TNG-R1T2-Chimera/snapshots/SNAPSHOT/tool_parser_vllm.py`
98
+
99
+ _SGLang:_
100
+
101
+ Tool call support for R1T2 requires a recent SGLang version >= v0.4.10 (alternatively, you need to patch [this bugfix for the reasoning parser](https://github.com/sgl-project/sglang/pull/8606) for older versions of SGLang).
102
+
103
+ An R1T2-compatible tool call parser will be added with [this PR to SGLang](https://github.com/sgl-project/sglang/pull/8672).
104
+ Unfortunately, and unlike vLLM, there is no simple plugin system for tool call parsers in SGLang.
105
+ Until our PR is merged an relased with a new SGLang version, you can still install it manually by patching your SGLang source code as outlined in the PR:
106
+ The new tool call parser must be added and registered (so in total one file must be added, a second one edited, see [details here](https://github.com/sgl-project/sglang/pull/8672/files)).
107
+
108
+ Once the SGLang installation has been updated correctly, tool calling with R1T2 can be activated by starting SGLang with
109
+
110
+ ```
111
+ --tool-call-parser tng_r1t2
112
+ ```
113
 
114
 
115
  ## Model Details