ollama/parser
Daniel Hiltgen a18c230189
model: add Laguna v8 chat support and fix Metal inference (#17291)
Add a laguna-v8 renderer/parser matching the Laguna XS 2.1 template, and fix v2 handling of embedded thinking and structured tool arguments.

Prevent FP16 overflow in Metal's quantized routed-MoE prefill path by scaling the linear branch and folding the inverse into the routing scale. Other backends and token-generation paths are unchanged.

Add comprehensive v2/v8 Jinja parity and parser tests.
2026-07-21 16:06:29 -07:00
..
expandpath_test.go Fix absolute path names + gguf detection (#8428) 2025-01-14 19:01:24 -08:00
parser.go model: add Laguna v8 chat support and fix Metal inference (#17291) 2026-07-21 16:06:29 -07:00
parser_test.go model: add Laguna v8 chat support and fix Metal inference (#17291) 2026-07-21 16:06:29 -07:00