ollama/x/models/gemma4
Jesse Gross d00622060f mlxrunner: drive MTP speculation through cache snapshots
Speculation used a parallel hierarchy of wrapper cache types that shadowed
the live caches and reconciled against them on commit. Replace it with
snapshot/restore on the live caches themselves: a cache snapshots itself as
a write crosses each offset, and the runner commits a batched draft by
restoring to the accepted count. The wrappers and the comparison plumbing
around them are gone.

Snapshots are lazy. A KV or rotating capture indexes into the live buffer and
owns no memory until a destructive write forces a copy-out, so rejecting a
draft is free.

Recurrent layers now validate in the same batched pass rather than falling
back to serial. A gated-delta layer reports its interior split offsets and
hands back the recurrent state at each one, which the cache records as a
snapshot.
2026-06-09 00:39:19 -07:00
..
assistant.go mlxrunner: drive MTP speculation through cache snapshots 2026-06-09 00:39:19 -07:00
gemma4.go models: add support for gemma4-12b (#16457) 2026-06-03 07:44:57 -07:00
gemma4_moe_test.go mlxrunner: add logprobs support 2026-04-20 17:43:00 -07:00
gemma4_test.go models: add support for gemma4-12b (#16457) 2026-06-03 07:44:57 -07:00