Skip to content

Add Gemma 4 E4B thinking modes - #4

Merged
MilitantTurtle merged 1 commit into
mainfrom
agent/add-gemma4-e4b-modes
Jul 14, 2026
Merged

Add Gemma 4 E4B thinking modes#4
MilitantTurtle merged 1 commit into
mainfrom
agent/add-gemma4-e4b-modes

Conversation

@MilitantTurtle

Copy link
Copy Markdown
Owner

What changed

  • Replaced the single automatic Gemma 4 E4B preset with explicit Thinking and Non-Thinking profiles.
  • Kept Google's documented sampler: temperature 1.0, top-p 0.95, and top-k 64.
  • Set Thinking to unlimited reasoning and Non-Thinking to a zero reasoning budget.
  • Kept context and vision/projector selection out of the public preset because those remain machine-specific add-model choices.
  • Added regression coverage using the official Google QAT GGUF filename.

Why

The previous reasoning: auto profile left mode selection dependent on runtime detection. Explicit modes make the intended quality/direct behavior predictable while retaining the same creator-sourced sampling defaults.

Validation

  • python -m unittest discover -s tests -v — 28 passed
  • python -m py_compile app.py setup.py
  • node --check static/app.js
  • node --check static/settings.js
  • git diff --check
  • Tracked-file privacy scan

@MilitantTurtle
MilitantTurtle marked this pull request as ready for review July 14, 2026 15:27
@MilitantTurtle
MilitantTurtle merged commit 578d559 into main Jul 14, 2026
2 checks passed
@MilitantTurtle
MilitantTurtle deleted the agent/add-gemma4-e4b-modes branch July 14, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant