> For the complete documentation index, see [llms.txt](https://unsloth.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unsloth.ai/docs/models/qwen-image-2.1/qwen-image-2.1-turbo.md). Agents can also search and read this documentation through its [MCP server](https://unsloth.ai/docs/~gitbook/mcp).

# Qwen-Image-2.1-Turbo: How to run locally

Run Qwen-Image-2.1-Turbo locally with Unsloth FP8 and GGUF quants in 8 steps.

**Qwen-Image-2.1-Turbo** is the 8-step version of [Qwen-Image-2.1](https://unsloth.ai/docs/models/qwen-image-2.1.md): the same 7B model and Qwen3-VL 8B text encoder, at **8 steps, guidance 1**. It creates and edits images, and is good at photos, text, posters and illustrations.

{% columns %}
{% column width="50%" %}
The quants use [Unsloth Dynamic](https://unsloth.ai/docs/basics/dynamic-3.0-ggufs). Run them in [Unsloth](https://unsloth.ai/docs/desktop.md), stable-diffusion.cpp and more.

* Qwen-Image-2.1-Turbo: [GGUF](https://huggingface.co/unsloth/Qwen-Image-2.1-Turbo-GGUF) • [FP8](https://huggingface.co/unsloth/Qwen-Image-2.1-Turbo-FP8)
* Base model: [Qwen-Image-2.1 guide](https://unsloth.ai/docs/models/qwen-image-2.1.md)

One 1024 × 1024 image takes about **7 s** (FP8 repo) or **13 s** (Q4\_K\_M) on a 24 GB L4 (Unsloth Studio 2026.11.4).
{% endcolumn %}

{% column width="50%" %}

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F1ZWoKBCmw0hevyPQYf9u%2Fqwen-image-2.1-turbo-out-bakery.webp?alt=media" alt="Unsloth Bakery shop sign"><figcaption><p>FP8 repo (INT8), 8 steps, L4</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Memory requirements

Same as Qwen-Image-2.1: fewer steps make Turbo faster, not smaller.

| Your hardware                   | Start with                                                             |
| ------------------------------- | ---------------------------------------------------------------------- |
| **GPU with 24 GB or more**      | FP8 repo (Unsloth loads its INT8 file). Tested on a 24 GB L4.          |
| **GPU with 12 to 16 GB**        | GGUF **Q4\_K\_M** (4.2 GB file). Unsloth offloads parts to system RAM. |
| **GPU with 8 GB or less**       | GGUF **Q3\_K\_XL** or smaller, with enough system RAM for offloading.  |
| **Mac with 16 GB or more**      | GGUF **Q4\_K\_M**                                                      |
| **CPU only, 16 GB RAM or more** | GGUF **Q4\_K\_M** (slow)                                               |

**Only the 24 GB row was tested; the others are estimates.** With stable-diffusion.cpp, Q4\_K\_M with its text encoder and VAE used **9.1 GB of VRAM** on the L4 (10.2 GB when editing).

The picker's **Fast FP8** entry loads **INT8-ConvRot** by default: it is closest to bf16 (LPIPS 0.037 vs 0.125 for FP8) and about 2x faster than GGUF in Unsloth. GGUF also runs on Macs and CPUs.

| File                   | Size    | Notes                                      |
| ---------------------- | ------- | ------------------------------------------ |
| FP8 repo, INT8-ConvRot | 7.26 GB | Default in Unsloth. Fastest on NVIDIA GPUs |
| GGUF **Q8\_0**         | 7.64 GB | Closest GGUF to bf16                       |
| GGUF **Q6\_K\_XL**     | 6.72 GB |                                            |
| GGUF **Q4\_K\_M**      | 4.20 GB | **Recommended** GGUF                       |
| GGUF **Q3\_K\_XL**     | 3.61 GB | For very small GPUs                        |

Unsloth also downloads the Qwen3-VL text encoder and the VAE.

#### T4 and other GPUs without bf16

Tested on a 15 GB Colab T4 with default settings. Unsloth runs in fp16 there, with the INT8 text encoder and parts offloaded to system RAM.

| Task, 8 steps              | Time per image   | GPU memory in use | System RAM  |
| -------------------------- | ---------------- | ----------------- | ----------- |
| Text to image, 1024 x 1024 | about 41 s       | 11 to 14 GB       | about 24 GB |
| Edit, 1248 x 832           | about 51 to 55 s | about 14 GB       | about 24 GB |

LoRAs load and render on the T4. Training needs a bf16 GPU (Ampere or newer); on a T4, Studio refuses with "This trainer requires a bfloat16-capable GPU".

### Quickstart

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F7IYIwQPoKlF1ccsCopH0%2Fqwen-image-2.1-turbo-flow.webp?alt=media" alt="Animation: pick Qwen-Image 2.1 Turbo (Fast FP8), type a prompt, click Generate and get a boathouse on an alpine lake"><figcaption><p>The Studio flow, sped up</p></figcaption></figure>

{% stepper %}
{% step %}

#### Install Unsloth and open Images

Install Unsloth as in the [Qwen-Image-2.1 guide](https://unsloth.ai/docs/models/qwen-image-2.1.md#quickstart), then select **Images** in the sidebar.

<a href="https://unsloth.ai/download" class="button primary" data-icon="down-to-bracket">Download Unsloth</a>
{% endstep %}

{% step %}

#### Pick Qwen-Image-2.1-Turbo

Click **Select image model** and search `Qwen-Image-2.1-Turbo`:

* **Qwen-Image 2.1 Turbo (Fast FP8)**: NVIDIA GPUs with 24 GB or more.
* **Qwen-Image-2.1-Turbo-GGUF**: pick a quant. **Q4\_K\_M** is recommended.

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FRH8ykKUJAJloBkvbAASI%2Fqwen-image-2.1-turbo-picker-search.png?alt=media" alt="Picker search results"><figcaption><p>Search results</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FCDQPP7ZV8mFXVZ1vatEe%2Fqwen-image-2.1-turbo-gguf-quants.png?alt=media" alt="GGUF quant list"><figcaption><p>GGUF quants</p></figcaption></figure></div>

The first load downloads the model, text encoder and VAE. A green check appears when it is ready.

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fi50PAJRZ305wKNdSjO9M%2Fqwen-image-2.1-turbo-download.png?alt=media" alt="Download progress panel"><figcaption><p>Downloading</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F3zJmKz8zQY8u1lszn6wy%2Fqwen-image-2.1-turbo-fp8-loaded.png?alt=media" alt="Turbo Fast FP8 loaded"><figcaption><p>Loaded</p></figcaption></figure></div>
{% endstep %}

{% step %}

#### Write your prompt

Unsloth fills in **8 steps** and **guidance 1**. Keep them. Set a seed to repeat a result.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FcVIfJ2rzQdX6YjQeXVdn%2Fqwen-image-2.1-turbo-settings.png?alt=media" alt="Create panel with Turbo defaults" width="375"><figcaption><p>Turbo defaults</p></figcaption></figure>
{% endstep %}

{% step %}

#### Generate

Click **Generate**. A live preview shows progress. **Recipe** shows every setting used; **Download** saves the image.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FnL0XlGZelHnuTCXEn6a7%2Fqwen-image-2.1-turbo-generating.png?alt=media" alt="Live preview at step 2 of 8" width="563"><figcaption><p>Generating</p></figcaption></figure>

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FStfTvPOPpHeJYXq5d81R%2Fqwen-image-2.1-turbo-result.png?alt=media" alt="Finished boathouse image and gallery"><figcaption><p>Q4_K_M, seed 42</p></figcaption></figure>

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FgKrGe4xQsqHSfsxEulix%2Fqwen-image-2.1-turbo-recipe.png?alt=media" alt="Recipe card" width="320"><figcaption><p>Recipe card</p></figcaption></figure>
{% endstep %}
{% endstepper %}

### Image editing

1. Select **Edit** and upload your image.
2. Set **Output size** to **Custom**, **Resolution** **2048 × 2048** (or the matching shape under **2K presets**).
3. Write a short instruction and click **Generate**. Keep 8 steps, guidance 1.

Use 2048 for Edit and Reference: at 1024, edits come out over-sharpened and over-saturated and can skip parts of the instruction (newer Unsloth versions default to 2048).

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fq6jSEE5GC7egaVA6SMJn%2Fqwen-image-2.1-turbo-edit.png?alt=media" alt="Edit at 2048 with result"><figcaption><p>Edit at 2048, FP8 repo, about 15 s</p></figcaption></figure>

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FhTiSCM0bTbFpgezsMSU0%2Fqwen-image-2.1-turbo-out-boathouse.webp?alt=media" alt="Boathouse at sunrise"><figcaption><p>Before</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FiDeYphnADkE57lAsE9oE%2Fqwen-image-2.1-turbo-edit-after.webp?alt=media" alt="Boathouse in winter"><figcaption><p>"Turn it into a winter scene with snow on the roof and a frozen lake"</p></figcaption></figure></div>

### Train a LoRA <a href="#train-a-lora" id="train-a-lora"></a>

[Fine-tune Qwen-Image-2.1-Turbo](https://unsloth.ai/docs/models/qwen-image-2.1/qwen-image-2.1-turbo/fine-tune-qwen-image-2.1-turbo.md)

### Use a LoRA <a href="#use-a-lora" id="use-a-lora"></a>

[Use your LoRA with Turbo](https://unsloth.ai/docs/models/qwen-image-2.1/qwen-image-2.1-turbo/fine-tune-qwen-image-2.1-turbo.md#use-a-lora)

Seed 42, 1024 × 1024, 8 steps, guidance 1, INT8; only the LoRA changes (500 steps on 1920 Tarot, trigger `trtcrd`). Prompt: `a trtcrd of a cat sitting on a throne holding a golden cup, "queen of cats"`

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FwAgkIclKaEbM0qwfQCDh%2Fqwen-image-2.1-turbo-lora-before.webp?alt=media" alt="Cat on a throne, photo"><figcaption><p>Without the LoRA</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F6Tip80jfAwmIUafJxo1t%2Fqwen-image-2.1-turbo-lora-after.webp?alt=media" alt="Cat on a throne, tarot card"><figcaption><p>With the LoRA</p></figcaption></figure></div>

### Run from code

#### Unsloth API

API setup (key, `UNSLOTH_API_KEY`, model switching) is the same as for [Qwen-Image-2.1](https://unsloth.ai/docs/models/qwen-image-2.1.md#unsloth-api). Load Turbo on the Images page first.

<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FlgXwW0yHjoJAIHwyDfXf%2Fqwen-image-2.1-turbo-api-settings.png?alt=media" alt="Settings API page" width="563"><figcaption><p>Settings → API</p></figcaption></figure>

{% code collapsedlinecount="10" %}

```python
import base64
import os

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8888/v1", api_key=os.environ["UNSLOTH_API_KEY"])

result = client.images.generate(
    model="unsloth/Qwen-Image-2.1-Turbo-GGUF",
    prompt="A wooden boathouse on a calm alpine lake at sunrise, snow-capped mountains reflected in the water, morning mist, golden light, landscape photo",
    size="1024x1024",
    response_format="b64_json",
    extra_body={"steps": 8, "guidance": 1.0, "seed": 42},
)

with open("boathouse.png", "wb") as f:
    f.write(base64.b64decode(result.data[0].b64_json))
```

{% endcode %}

{% code collapsedlinecount="10" %}

```bash
curl -s http://localhost:8888/v1/images/generations \
  -H "Authorization: Bearer $UNSLOTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "unsloth/Qwen-Image-2.1-Turbo-GGUF",
    "prompt": "A wooden boathouse on a calm alpine lake at sunrise, snow-capped mountains reflected in the water, morning mist, golden light, landscape photo",
    "size": "1024x1024",
    "response_format": "b64_json",
    "seed": 7
  }' \
  | python3 -c "import sys, json, base64; open('boathouse-curl.png', 'wb').write(base64.b64decode(json.load(sys.stdin)['data'][0]['b64_json']))"
```

{% endcode %}

Omitted `steps` / `guidance` default to 8 and 1. About 13 s per image with Q4\_K\_M on the L4, 2 s on an RTX PRO 6000.

**LoRAs over the API** (Unsloth 2026.11.5 or newer): add `"loras": [{"id": "my-lora", "weight": 1.0}]` to the request, where `id` is the name in the LoRA list, or `"loras": []` for none. Without `loras`, FP8 and INT8 loads keep the LoRAs they were loaded with, for example after **Deploy to Create**.

FP8 and INT8 loads take LoRAs only when the model loads. A request on such a load can use the LoRAs it was loaded with, or some of them, but a LoRA it was not loaded with returns a 400 error. Load the model with that LoRA first: pick it on the Images page and click **Reapply**, or send it as `loras` when you load the model. A bf16 load (**Precision** set to **Off**) takes any LoRA per request.

#### GGUF with stable-diffusion.cpp

Get `sd-cli` as in the [Qwen-Image-2.1 guide](https://unsloth.ai/docs/models/qwen-image-2.1.md#run-from-code), then download the Turbo GGUF, text encoder and VAE (about 10 GB):

{% code collapsedlinecount="10" %}

```bash
pip install -U huggingface_hub
hf download unsloth/Qwen-Image-2.1-Turbo-GGUF qwen-image-2.1-turbo-Q4_K_M.gguf --local-dir models
hf download unsloth/Qwen3-VL-8B-Instruct-GGUF Qwen3-VL-8B-Instruct-UD-Q4_K_XL.gguf --local-dir models
hf download unsloth/Qwen-Image-2.1-FP8 vae/qwen_image_2.1_vae_bf16.safetensors --local-dir models
```

{% endcode %}

**Create an image.** Turbo needs its 8-step schedule via `--sigmas` (about 5 s on an RTX PRO 6000):

{% code collapsedlinecount="10" %}

```bash
./sd/sd-cli \
  --diffusion-model models/qwen-image-2.1-turbo-Q4_K_M.gguf \
  --llm models/Qwen3-VL-8B-Instruct-UD-Q4_K_XL.gguf \
  --vae models/vae/qwen_image_2.1_vae_bf16.safetensors \
  -p "A wooden boathouse on a calm alpine lake at sunrise, snow-capped mountains reflected in the water, morning mist, golden light, landscape photo" \
  --steps 8 --cfg-scale 1.0 --sampling-method euler \
  --sigmas "1.0,0.978453,0.95418,0.926626,0.89508,0.845148,0.704534,0.414568,0.0" \
  -W 1024 -H 1024 --diffusion-fa --seed 42 \
  -o boathouse-sdcpp.png
```

{% endcode %}

**Edit an image** with `--llm_vision`, `-r` and a 2048 size matching the image shape (about 31 s):

{% code collapsedlinecount="10" %}

```bash
hf download unsloth/Qwen3-VL-8B-Instruct-GGUF mmproj-F16.gguf --local-dir models

./sd/sd-cli \
  --diffusion-model models/qwen-image-2.1-turbo-Q4_K_M.gguf \
  --llm models/Qwen3-VL-8B-Instruct-UD-Q4_K_XL.gguf \
  --llm_vision models/mmproj-F16.gguf \
  --vae models/vae/qwen_image_2.1_vae_bf16.safetensors \
  -r boathouse-sdcpp.png \
  -p "Turn it into a winter scene with snow on the roof and a frozen lake" \
  --steps 8 --cfg-scale 1.0 --sampling-method euler \
  --sigmas "1.0,0.978453,0.95418,0.926626,0.89508,0.845148,0.704534,0.414568,0.0" \
  -W 2048 -H 2048 --diffusion-fa --seed 42 \
  -o boathouse-sdcpp-edit.png
```

{% endcode %}

### Recommended settings

Do not use the base model's step count with Turbo.

| Setting                | Unsloth (FP8 or GGUF)            | stable-diffusion.cpp                                    |
| ---------------------- | -------------------------------- | ------------------------------------------------------- |
| **Steps**              | **8**                            | `--steps 8`                                             |
| **Guidance / CFG**     | **1**                            | `--cfg-scale 1.0`                                       |
| **Sampler / schedule** | Set by Unsloth                   | `--sampling-method euler` and the `--sigmas` list above |
| **Negative prompt**    | Leave empty                      | Leave empty                                             |
| **Size**               | `1024×1024` to start, up to 2048 | `-W 1024 -H 1024`                                       |
| **Edit size**          | `2048×2048`                      | `-W 2048 -H 2048`                                       |
| **Seed**               | Any number to repeat a result    | `--seed 42`                                             |

Turbo was trained for its own sigma schedule, which Unsloth applies; keep 8 steps. Other sizes: see [resolution presets](https://unsloth.ai/docs/models/qwen-image-2.1.md#resolution-and-aspect-ratios).

### Example outputs

1024 × 1024, 8 steps, seed 42, L4 GPU.

<div><figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fa5teZGDbqQn7KJGSDa3P%2Fqwen-image-2.1-turbo-out-ramen.webp?alt=media" alt="Neon ramen shop"><figcaption><p>"A neon-lit ramen shop in a rainy Tokyo alley at night, reflections on wet pavement, cinematic photo" (Q4_K_M, 13 s)</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FeUgMrARGjaBd9HfVYBNW%2Fqwen-image-2.1-turbo-out-bee.webp?alt=media" alt="Honeybee on a sunflower"><figcaption><p>"Macro photograph of a honeybee on a sunflower, visible pollen grains, extreme detail" (Q4_K_M, 13 s)</p></figcaption></figure> <figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FOoLevkElFI5ptCbyzKsM%2Fqwen-image-2.1-turbo-out-island.webp?alt=media" alt="Isometric lighthouse island"><figcaption><p>"Isometric 3D illustration of a tiny island with a lighthouse, pastel colors, soft shadows" (FP8 repo, 7 s)</p></figcaption></figure></div>

### Troubleshooting

<details>

<summary>I do not see Qwen-Image-2.1-Turbo in the model picker</summary>

[Update Unsloth](https://unsloth.ai/docs/get-started/install/updating) and restart. If the picker opens on **On Device**, click **Recommended**.

</details>

<details>

<summary>My images look noisy or burnt</summary>

Use **8** steps and guidance **1**. In `sd-cli`, pass the `--sigmas` list.

</details>

<details>

<summary>The API ignores the model I asked for</summary>

Load Turbo on the Images page, or turn on **Switch image and video model by request** in **Settings → API**.

</details>

<details>

<summary>sd-cli errors</summary>

Missing `libcudart.so.12` / `.13`: match the zip to your CUDA runtime or use Vulkan. "requires Qwen3-VL vision weights" when editing: add `--llm_vision models/mmproj-F16.gguf`.

</details>

For more on the Images page, see [How to Run Image Diffusion Models Locally](https://unsloth.ai/docs/basics/diffusion-image.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://unsloth.ai/docs/models/qwen-image-2.1/qwen-image-2.1-turbo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
