> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m-star.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Muse Glimmer

> Choose a one- or two-GPU layout and read the answer to an image question.

Muse-Glimmer-30B accepts text and images. Its reply contains separate channels addressed to the model itself and to the user.

## Install and start

The BF16 weights are about 60 GB. The default layout is sized for one 141 GB GPU. Use `muse_glimmer_tp2.yaml` on two 80 GB GPUs.

### `muse_glimmer`

Text, image → text. The default `muse_glimmer.yaml` uses 1 GPU. Beta. The [weights](https://huggingface.co/meta-models/Muse-Glimmer-30B) use Apache-2.0.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[bagel]"
mstar serve muse_glimmer
```

[Send the request](#describe-image).

## Send a request

Run either client example in a second terminal after `/health` returns 200.

### Ask about an image

Supply a photograph as `scene.png` and read the model’s description.

**Python SDK**

```python theme={null}
from mstar import MStarClient

client = MStarClient("http://localhost:8000")
print(client.generate(
    text='Describe this image.',
    images='scene.png',
    input_modalities=('image', 'text'),
    output_modalities=('text',),
).text)
```

**curl**

```bash theme={null}
curl -fsS http://localhost:8000/generate \
  --form-string 'text=Describe this image.' \
  -F files=@scene.png \
  --form-string input_modalities=image,text \
  --form-string output_modalities=text \
  --form-string streaming=false \
  | python3 -c '
import base64, json, sys

outputs = json.load(sys.stdin)["outputs"]
text = b"".join(base64.b64decode(chunk["data"]) for chunk in outputs["text"])
print(text.decode())
'
```

## Deployment configs

| File | GPUs | Parallelism | When to use |
| - | - | - | - |
| `configs/muse_glimmer.yaml` | 1 | none | One 141 GB GPU. |
| `configs/muse_glimmer_tp2.yaml` | 2 | TP2 | Two 80 GB GPUs. The model has two KV heads, so TP past 2 replicates the KV cache and saves no memory. |

Both keep 2048 KV pages and set `prefix_cache: false`. Each request holds every token of the global layers but only about the last 2048 tokens of the sliding ones.

To use an alternative, pass `--config configs/<file>` after the launcher name. From a wheel installation, [copy the shipped YAML](https://docs.m-star.org/serving.md#custom-configs) and pass its local path.

## Settings and defaults

Request knobs go in `model_kwargs` on `/generate` and in `extra_body` on the OpenAI route.

| Knob | Default | Effect |
| - | - | - |
| `reasoning_effort` | the template's | Reasoning strength: `low`, `medium`, `high` or `xhigh`. `reasoning_strength` is the same knob under the template's own name. |
| `enable_thinking` | | `false` means `low`. The template has no off switch, so the model still reasons. |
| `current_date` | | A date string passed to the chat template. |
| `top_k`, `min_p`, `repetition_penalty` | the checkpoint's | Sampling defaults come from the checkpoint's `generation_config.json`. A `min_p` above 0 is refused unless that file sets one. |

`chat_template_kwargs` may carry any of these too; a flat key wins.

## Limits

* Video input is refused.
* The chat route refuses tool calls, `n` above 1, stop sequences and OpenAI `logprobs`.
* No prefix cache: a KV pool that keeps a sliding window does not prefix cache yet.
* Images resize with torchvision's antialiased Lanczos, which needs torchvision 0.27 or newer. An older torchvision falls back to PIL's Lanczos with a warning, and its pixels differ slightly.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.