Skip to content

Poor performance with local models #4385

Closed as not planned
Closed as not planned

Description

@JimmyBenHur

Description

I am using LM Studio with a local model, and responding in OpenCode takes much much longer (I would say 20x) than directly in LM Studio. I have also already tried with Ollama and the performance was poor as well. Is there a special reason for that, or could that be improved?

OpenCode version

1.0.67

Steps to reproduce

  1. Use Local model with LM Studio (Ollama the same)
  2. Wait for a response in OpenCode and compare to LM Studio directly

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 16, 2025
  2. github-actions commented on Nov 16, 2025

    @github-actions
    Contributor

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

    The issues show a pattern of local model performance problems across both LM Studio and Ollama providers. Issue #4255 provides particularly detailed analysis suggesting the root cause may be related to empty tool_calls array handling.

    Feel free to ignore if none of these address your specific case.

  3. rekram1-node commented on Nov 16, 2025

    @rekram1-node
    Contributor

    @JimmyBenHur I assume this is because opencode sends a lot more context right? tools + system prompt = ~10k tokens, add in your AGENTS.md files or mcp servers and it is even more

  4. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 16, 2025
  5. self-assigned this
    on Nov 16, 2025
  6. JimmyBenHur commented on Nov 16, 2025

    @JimmyBenHur
    Author

    Definitely makes sense that it's slower because of the context, but this much? The issue seems to be similar to #4182, but I have no AGENTS.md and no mcp servers, I wouldn't except it to be that much slower. I have about 12 tokens per second in LM Studio and I would say less than half a token in OpenCode, when using Qwen3 Coder. Isn't there something to do to improve performance?

  7. rekram1-node commented on Nov 16, 2025

    @rekram1-node
    Contributor

    I just don't know how we could possibly be causing an issue for you? We send an http request and the results stream in

    Here is a good way to test it, make an opencode.json file and add:

    {
      "tools": {
         "*": false
      }
    }
    

    That should disable all tools, and then see if it is any faster

  8. JimmyBenHur commented on Nov 16, 2025

    @JimmyBenHur
    Author

    Yeah, it is actually much faster without the tools. Thing is I need the tools...

  9. rekram1-node commented on Nov 17, 2025

    @rekram1-node
    Contributor

    @JimmyBenHur yes the tools are the whole thing as you know, but that's proof that the context is slowing down your local model, it isn't an opencode issue right?

  10. akemmanuel commented on Jan 7, 2026

    @akemmanuel

    Looks like it isn't...

  11. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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