Fix MLX pythonic tool parser metadata
Browse files
README.md
CHANGED
|
@@ -47,13 +47,13 @@ Stage 2 was a local MLX LoRA repair pass focused on native LFM tool-call emissio
|
|
| 47 |
|
| 48 |
## Why The Repair Pass Was Needed
|
| 49 |
|
| 50 |
-
Hermes executes OpenAI-style structured `tool_calls`.
|
| 51 |
|
| 52 |
```text
|
| 53 |
<|tool_call_start|>[browser_navigate(url="https://www.google.com/search?q=weather+Austin+TX")]<|tool_call_end|>
|
| 54 |
```
|
| 55 |
|
| 56 |
-
That is semantically a tool call, but Hermes
|
| 57 |
|
| 58 |
## Key Eval Results
|
| 59 |
|
|
@@ -67,6 +67,8 @@ That is semantically a tool call, but Hermes did not execute it until a small pa
|
|
| 67 |
|
| 68 |
Both 8-bit and 6-bit variants also passed a five-prompt generation smoke test with no observed repetition collapse.
|
| 69 |
|
|
|
|
|
|
|
| 70 |
## Repository Contents
|
| 71 |
|
| 72 |
- `configs/`: run configs and local hardware profile.
|
|
@@ -82,4 +84,4 @@ Both 8-bit and 6-bit variants also passed a five-prompt generation smoke test wi
|
|
| 82 |
- The eval suite is intentionally small and targeted. Passing it means the release gate was met; it does not prove broad agent reliability.
|
| 83 |
- The grouped direct-weight stage updated MoE experts and routers, not every model weight simultaneously.
|
| 84 |
- The 6-bit release uses MLX whole-checkpoint quantization because stock MLX conversion does not currently expose the exact expert-only mixed quant policy used in the experimental runtime.
|
| 85 |
-
- The Hermes parser patch remains useful for production reliability
|
|
|
|
| 47 |
|
| 48 |
## Why The Repair Pass Was Needed
|
| 49 |
|
| 50 |
+
Hermes executes OpenAI-style structured `tool_calls`. During the first local setup, MLX returned native tool calls as assistant text because the exported tokenizer config did not declare the MLX tool parser:
|
| 51 |
|
| 52 |
```text
|
| 53 |
<|tool_call_start|>[browser_navigate(url="https://www.google.com/search?q=weather+Austin+TX")]<|tool_call_end|>
|
| 54 |
```
|
| 55 |
|
| 56 |
+
That is semantically a tool call, but Hermes does not execute it if it arrives only as `message.content`. The fix is to set `tool_parser_type: "pythonic"` in `tokenizer_config.json`, which activates MLX's built-in parser for `<|tool_call_start|>[fn(...)]<|tool_call_end|>` and returns real `message.tool_calls`. A small Hermes parser patch remains useful as a safety net for runtimes or model variants that still return native tool syntax as plain text.
|
| 57 |
|
| 58 |
## Key Eval Results
|
| 59 |
|
|
|
|
| 67 |
|
| 68 |
Both 8-bit and 6-bit variants also passed a five-prompt generation smoke test with no observed repetition collapse.
|
| 69 |
|
| 70 |
+
After adding `tool_parser_type: "pythonic"`, a live MLX server call with a browser tool returned structured OpenAI-compatible `message.tool_calls` and `finish_reason: "tool_calls"` for the repaired fused model.
|
| 71 |
+
|
| 72 |
## Repository Contents
|
| 73 |
|
| 74 |
- `configs/`: run configs and local hardware profile.
|
|
|
|
| 84 |
- The eval suite is intentionally small and targeted. Passing it means the release gate was met; it does not prove broad agent reliability.
|
| 85 |
- The grouped direct-weight stage updated MoE experts and routers, not every model weight simultaneously.
|
| 86 |
- The 6-bit release uses MLX whole-checkpoint quantization because stock MLX conversion does not currently expose the exact expert-only mixed quant policy used in the experimental runtime.
|
| 87 |
+
- The Hermes parser patch remains useful for production reliability when a runtime returns valid tool calls as text rather than structured OpenAI `tool_calls`.
|