Skip to content

What is the proper setup for gemma4:latest when running local with ollama #31291

Closed as duplicate

Description

@Bazmundi

Question

I pulled gemma4:local and it seems happy running in ollama. If I connect with opencode and have the minimal config, I get a stunted output of say the letter "I". If I put a more elaborate config I get loops of (which I can break out of with ESC ESC):

Goal
- No specific task goal has been established yet.
Constraints & Preferences
- (none)
Progress
Done
- (none)
In Progress
- (none)
Blocked
- (none)
Key Decisions
- (none)
Next Steps
- (none)
Critical Context
- (none)
Relevant Files
- (none)
▣  Compaction · gemma4-opencode · 4.1s
I
▣  Build · gemma4-opencode · 1.3s

Simple config was:

        "gemma4:latest": {
          "name": "gemma4"
        },

More elaborate code was:

        "gemma4:latest": {
          "name": "gemma4",
          "tool_call": false,
          "reasoning": false,4096
          "limit": { "context": 8192, "output": 4096 },
          "cost": { "input": 0, "output": 0 }
        },

or

        "gemma4:latest": {
          "name": "gemma4",
          "tool_call": true,
          "reasoning": true,
          "limit": { "context": 8192, "output": 4096 },
          "cost": { "input": 0, "output": 0 }
        },

I got the ideas from https://github.com/tellang/opencode-gemma4-setup/blob/main/configs/opencode.json which I supposed was somehow working for someone.

Activity

  1. github-actions commented on Jun 8, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is the same, please add a comment or reaction there rather than opening a new one.

  2. rekram1-node commented on Jun 8, 2026

    @rekram1-node
    Contributor

    AUTOMATED: closing as duplicate of: #22132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions