Hoppa till huvudinnehållet

How to Run Muse Glimmer 30B Locally for AI Coding

Run Meta’s Muse Glimmer local agentic model using llama.cpp, dynamic quantization, DFlash speculative decoding, vision support, and OpenCode to run a fast, private, and low-cost AI coding agent.
11 aug. 2026  · 9 min läsa

Utforska med AI

ChatGPTClaudePerplexity

As we explored in our blog post, Muse Glimmer 30B is a new open model built for agentic and coding workloads

What makes it especially interesting is that you can run the entire setup locally on a single NVIDIA RTX 5090 with 32 GB of VRAM using llama.cpp.

The model is available in GGUF format, and for this guide, I will use the higher-quality dynamic quantization. 

The complete setup consists of:

  • muse-glimmer-30B-kquant-dynamic.gguf: 19.7 GB main model
  • dflash-kquant.gguf: 1.63 GB draft model for speculative decoding
  • mmproj-kquant.gguf: 1.4 GB vision and perception encoder

According to the model card, the 19.7 GB dynamic quant has only around 0.2% benchmark degradation compared with full precision. 

In my testing, running the model with a 64K context window used around 24 GB of VRAM, leaving useful headroom on the RTX 5090.

In this guide, you will learn how to:

  1. Build llama.cpp with CUDA support
  2. Download and run Muse Glimmer 30B locally
  3. Enable DFlash speculative decoding and vision input
  4. Test the model through the API and built-in Web UI
  5. Connect the local model to OpenCode
  6. Use Muse Glimmer to build and debug a complete application

By the end, we will also get a practical idea of where Muse Glimmer performs well as a local coding model and where it still struggles.

1. Set Up llama.cpp for GPU Inference

Before running Muse Glimmer locally, we first need to build llama.cpp with CUDA support so the model can use the RTX 5090 GPU.

Start by installing the required system packages:

apt-get update

apt-get install -y \
    build-essential \
    cmake \
    curl \
    git \
    libcurl4-openssl-dev

Next, clone the llama.cpp repository and move into the project directory:

git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp

Configure the build with CUDA enabled:

cmake -B build \
    -DBUILD_SHARED_LIBS=OFF \
    -DGGML_CUDA=ON

Now compile the command-line tools, multimodal CLI, and server:

cmake --build build --config Release -j \
    --target llama-cli llama-mtmd-cli llama-server

Once the build finishes, make llama-server available globally so you can run it from any directory:

ln -sf "$(pwd)/build/bin/llama-server" /usr/local/bin/llama-server

Finally, confirm that the installation is working:

llama-server --version

You should see output similar to:

version: 10373 (38406d597)
built with GNU 13.3.0 for Linux x86_64

At this point, llama.cpp is compiled with CUDA support, and llama-server is ready to run Muse Glimmer on the GPU.

2. Download Muse Glimmer

Next, download the main Muse Glimmer model along with the additional GGUF files needed for speculative decoding and vision input.

First, install the Hugging Face CLI:

pip install -U huggingface_hub

Then log in to your Hugging Face account:

hf auth login

Login using the the HF CLI

Choose the browser login option, open the authorization page, and approve the connection in your browser.

Now download the three required files:

hf download meta-models/Muse-Glimmer-30B-GGUF \
    --local-dir Muse-Glimmer-30B-GGUF \
    --include "muse-glimmer-30B-kquant-dynamic.gguf" \
    --include "dflash-kquant.gguf" \
    --include "mmproj-kquant.gguf"

This downloads:

  • muse-glimmer-30B-kquant-dynamic.gguf: the main 19.7 GB model
  • dflash-kquant.gguf: the draft model used for speculative decoding
  • mmproj-kquant.gguf: the perception encoder required for image input

The files are fairly large, so the download may take some time depending on your internet connection.

Downloading the Muse-Glimmer-30B-GGUF

Once all three files are downloaded, you will have everything needed to run Muse Glimmer with text generation, vision support, and DFlash speculative decoding.

3. Serve Muse Glimmer with Vision and Speculative Decoding

With all three GGUF files downloaded, we can now start Muse Glimmer using llama-server.

The command below loads the main model, enables the DFlash draft model for speculative decoding, and adds the perception encoder for vision input:

llama-server \
    -m /workspace/Muse-Glimmer-30B-GGUF/muse-glimmer-30B-kquant-dynamic.gguf \
    -md /workspace/Muse-Glimmer-30B-GGUF/dflash-kquant.gguf \
    --mmproj /workspace/Muse-Glimmer-30B-GGUF/mmproj-kquant.gguf \
    --spec-type draft-dflash \
    --spec-draft-n-max 15 \
    -ngl 99 \
    --spec-draft-ngl all \
    -fa on \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 64 \
    --ctx-size 64000 \
    --alias muse-glimmer-30B \
    --host 0.0.0.0 \
    --port 8910 \
    --jinja

Serve Muse Glimmer with Vision and Speculative Decoding

This configuration uses a 64K context window, offloads the model to the GPU, enables Flash Attention, and runs the server on port 8910.

Once the model has loaded, it will be available at:

http://127.0.0.1:8910

You can confirm that everything is running correctly by sending a simple request to the OpenAI-compatible API:

curl -s http://127.0.0.1:8910/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "muse-glimmer-30B",
        "messages": [
            {
                "role": "user",
                "content": "Explain speculative decoding in three simple sentences."
            }
        ]
    }'

For this test, Muse Glimmer generated 364 completion tokens at 83.94 tokens/second, while the prompt was processed at 147.48 tokens/second

With DFlash speculative decoding enabled, the draft model proposed 1,665 tokens, of which 253 were accepted, giving an acceptance rate of approximately 15.2%

The 64-token prompt was processed in about 434 ms, while generation took roughly 4.34 seconds

The response confirms that the model is running correctly through the local API.

You can also check how much GPU memory the complete setup is using:

nvidia-smi

With the 30B dynamic quantized model, DFlash draft model, vision encoder, and 64K context window loaded together, my setup used approximately 23.8 GB of VRAM on the RTX 5090.

RTX 5090 GPU summary when Muse Glimmer model is loader with DFlash and vision encoder.

That leaves roughly 8 GB of VRAM available, giving us some room to experiment with larger context windows later.

4. Test Muse Glimmer in the Web UI with Vision and Coding Prompts

llama-server comes with a built-in Web UI, which makes it easy to test the model without sending API requests manually.

Open:

http://127.0.0.1:8910

You can use the interface for regular text prompts, image understanding, and quick coding experiments.

Because we loaded the vision encoder with:

--mmproj /workspace/Muse-Glimmer-30B-GGUF/mmproj-kquant.gguf

Muse Glimmer can also accept image input.

To test its vision capability, I uploaded the cover of one of my books and used the following prompt:

Describe what you see in this image and point out the most important details.

Testing the vision capabilities of the Muse Glimmer

The model produced a detailed description of the cover and picked up several smaller visual elements as well. 

This was a useful first test to confirm that the vision encoder was working correctly.

Next, I tested its coding ability with a simple website generation task:

Build a modern luxury watch website for VELORÉ, 
with a minimalist V logo, black/ivory/deep-green palette, 
cinematic hero, premium watches, smooth animations, 
and elegant Swiss-inspired styling.

During this coding task, generation averaged around 121 tokens per second, which was noticeably faster than the earlier general text test. 

DFlash speculative decoding appeared to work particularly well on this type of sequential code generation workload.

Testing Muse Glimmer on the coding task

The model generated a usable luxury watch website. 

There were still a few issues in the final output, which is not too surprising for a 30B model, but it was able to produce a complete project very quickly.

Website generated with Muse Glimmer 30B

Muse Glimmer is positioned as an agentic coding model, so the more important test is how well it performs when it has to create files, run commands, test its own work, and fix problems. We will test that next by connecting it to OpenCode.

5. Connect Muse Glimmer to OpenCode and Test Agentic Coding

Now that Muse Glimmer is running locally, the next step is to connect it to OpenCode and see how it performs as an agentic coding model.

First, install OpenCode:

curl -fsSL https://opencode.ai/install | bash

Installing the OpenCode

Reload the shell and confirm the installation:

exec bash
opencode --version

For this test, I was using:

1.18.16

Create the OpenCode configuration directory:

mkdir -p ~/.config/opencode

Instead of opening a text editor, create the configuration file directly from the terminal:

cat > ~/.config/opencode/opencode.json <<'EOF'
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "llama.cpp": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Muse Glimmer Local",
      "options": {
        "baseURL": "http://127.0.0.1:8910/v1"
      },
      "models": {
        "muse-glimmer-30B": {
          "name": "Muse Glimmer 30B"
        }
      }
    }
  },
  "model": "llama.cpp/muse-glimmer-30B"
}
EOF

This tells OpenCode to use the OpenAI-compatible API exposed by our local llama-server.

Next, create a new project:

mkdir muse-app
cd muse-app
git init
opencode

OpenCode with Muse Glimmer 30B loaded

OpenCode will launch its terminal UI with Muse Glimmer 30B already configured as the main model.

Build a complete application

To test the model on something more realistic, I asked it to build a medical research application:

Build a modern medical AI web app called MedSearch AI.
Use Python FastAPI for the backend and HTML, CSS and JavaScript for the frontend.
Create a clean dark interface where users can ask medical research questions. 
Send prompts to my local Muse Glimmer server at:http://127.0.0.1:8910/v1/chat/completions
Add web search for the latest reliable medical information, show sources clearly, 
support streaming responses and Markdown, and include a clear-chat button and server status indicator.

Create all files, install dependencies, test the app, and tell me how to run it.

Medical AI application generated by the Muse Glimmer 30B on OpenCode

The initial result was impressive. It took only around one minute to generate the full project. 

It created the backend, frontend, dependencies, and overall application structure very quickly.

I then asked it to test both the backend and the UI.

This is where I started noticing the model's weaknesses.

Fast at building, weaker at debugging

On artificial coding benchmarks, Muse Glimmer ranks similarly to the model Qwen3.6 27B model, but from my own testing, I think it is noticeably worse when actually working through a coding task.

The biggest problem was debugging.

Muse Glimmer was very fast at creating a complete project from scratch, but once something went wrong, it struggled to work through the problem independently. It could spend a long time trying different things without making much progress.

I eventually had to tell it exactly what to do. 

For example, I explicitly instructed it to:

  1. Start the backend server in the background.
  2. Wait for the server to become available.
  3. Send a request to the running application.
  4. Check the response.
  5. Fix any errors it encountered.
  6. Test the application again.

Once I gave it those concrete steps, it understood the task and followed them successfully.

Debugging the AI App using Muse Glimmer 30B

That was probably my biggest takeaway from using Muse Glimmer with OpenCode. 

You need to be very explicit about what you want it to do. 

Rather than saying "test the application" or "fix the issue," it works much better when you describe the exact sequence of actions it should take.

Prompt engineering is therefore particularly important with this model.

The final application

After working through the debugging issues, the resulting MedSearch AI application worked very well.

MedSearch AI app generated by the Muse Glimmer 30B

The application was fast, feature-rich, and surprisingly simple. 

It used a lightweight FastAPI backend with plain HTML, CSS, and JavaScript rather than relying on a large frontend framework.

That simplicity was actually one of the things I liked about the result. 

Muse Glimmer created a functional AI application without introducing unnecessary complexity.

My experience so far is that Muse Glimmer is excellent at generating a lot of working code quickly, but it is much less reliable when it needs to diagnose problems, plan multi-step debugging, and recover from failures on its own.

For local coding, that distinction matters. 

If you give it clear and detailed instructions, it can be very capable. 

If you expect it to independently figure out every step, especially during debugging, the limitations become much more obvious.

Final Thoughts

Muse Glimmer 30B is still a very new model, and that showed in my testing. 

It was very fast at generating code, but it struggled more with debugging and multi-step tasks. I often had to tell it exactly what to do before it could move forward.

Even with those issues, I think the model has a lot of potential. 

With better prompting and future improvements, I can see it becoming a very usable local coding model, similar to my experience with Qwen3.6 27B.

I also think this is a great direction for Meta AI. 

There is a clear interest in local coding agents because they can offer:

  • Lower cost, with no API charges
  • Better privacy for your code and data
  • More control over output
  • The ability to work locally without depending on an external model API

In my setup, the model used around 24 GB of GPU memory, which makes it practical for high-end local hardware. 

You can also run models like this with system or unified memory, although performance will be slower.

In this guide, we built llama.cpp, downloaded the Muse Glimmer GGUF files, enabled vision and speculative decoding, tested the API and Web UI, and connected the model to OpenCode. 

We also used it to build and test a complete application. 

My main takeaway is that Muse Glimmer is very fast at creating code, but it still needs clear instructions when debugging or handling more complex agentic tasks.

FAQs

What is DFlash speculative decoding in llama.cpp, and why do I need a separate GGUF file?

DFlash (draft-dflash) is a block-diffusion speculative decoding technique that predicts an entire block of draft tokens ahead of the main model in a single forward pass. By guessing chunks of text at once and having the larger model quickly verify them, it significantly accelerates text generation. The separate dflash-kquant.gguf file is the lightweight draft model explicitly trained to anticipate Muse Glimmer's output.

Can I run Muse Glimmer 30B on AMD GPUs or Apple Silicon Macs, or is NVIDIA required?

Because the model runs on llama.cpp, you do not strictly need an NVIDIA GPU. Meta has confirmed strong out-of-the-box local performance on AMD Ryzen AI Max+ processors and Radeon PRO R9700 graphics cards. Apple Silicon users (M2/M3/M4 Max or Ultra) can also run the model efficiently by taking advantage of macOS's Unified Memory, though they will need to compile llama.cpp with Apple Metal support (-DGGML_METAL=ON) instead of CUDA.

What is the maximum context window for Muse Glimmer 30B?

The model supports a native context window of up to 131,072 (128K) tokens. However, utilizing the full 128K context requires significantly more VRAM to store the KV cache. To run the maximum context window locally on a 32 GB graphics card, you will likely need to enable KV cache quantization (such as 8-bit or 4-bit cache types) in llama.cpp or offload some of the model's layers to your system RAM.

Muse Glimmer 30B vs. Qwen3.6 27B: Which is better for local coding?

While both are highly capable models in a similar weight class, they excel in different areas. Muse Glimmer 30B is exceptionally fast at zero-shot code generation and rapidly building complete application structures from scratch. However, Qwen3.6 27B is currently more reliable for independent, multi-step debugging and agentic problem-solving. If you use Muse Glimmer for debugging, you will get the best results by providing it with highly explicit, step-by-step troubleshooting instructions.

Ämnen

Top DataCamp Courses

track

Deploy Production-Ready Agents

2 timmar
Deploy AI agents to production using Google's ADK, Vertex AI Agent Engine, Cloud Run, and Memory Bank for persistent cross-session state.
Se detaljerRight Arrow
Starta Kursen
Se merRight Arrow
Släkt

blog

Muse Glimmer: Meta's Open Agentic Model That Runs on Your Device

Meta Superintelligence Labs released Muse Glimmer, a 30B open-weight agentic model that runs locally on a single 24 GB consumer GPU. Here's what it does and how it works.
Matt Crabtree's photo

Matt Crabtree

10 min

tutorial

Run GLM-5 Locally For Agentic Coding

Run GLM-5, the best open-weight AI model, on a single GPU with llama.cpp, and connect it to Aider to turn it into a powerful local coding agent.
Abid Ali Awan's photo

Abid Ali Awan

tutorial

How to Run GLM 5.1 Locally For Agentic Coding

Learn how to run GLM 5.1 locally on an H100 GPU with llama.cpp, test it, use the WebUI, and integrate Claude Code.
Abid Ali Awan's photo

Abid Ali Awan

tutorial

Running MiniMax M2.7 Locally for Agentic Coding

In this guide, we will rent an H200 GPU and install llama.cpp, download MiniMax M2.7 GGUF, run it locally, test it in the WebUI, and connect it to OpenCode.
Abid Ali Awan's photo

Abid Ali Awan

tutorial

How to Run MiniMax M3 Locally: Multi-GPU Setup with llama.cpp and Pi Agent

Learn how to run MiniMax M3 locally on two RTX PRO 6000 GPUs with llama.cpp, test its OpenAI-compatible API and web UI, and connect it to Pi Coding Agent for private, high-speed local coding workflows.
Abid Ali Awan's photo

Abid Ali Awan

tutorial

Run a Mythos Enhanced Qwen Model Locally with Hermes Agent

Run Qwythos 9B locally with llama.cpp and Hermes Agent for fast, private AI coding, browser chat, Discord automation, and local tool use.
Abid Ali Awan's photo

Abid Ali Awan

Se MerSe Mer