---
title: Qwen3.6-27B-H3-Prompt-Rewriter
canonical_url: "https://www.modelscope.cn/models/zhaoke1006/Qwen3.6-27B-H3-Prompt-Rewriter"
md_url: "https://www.modelscope.cn/models/zhaoke1006/Qwen3.6-27B-H3-Prompt-Rewriter.md"
repository: zhaoke1006/Qwen3.6-27B-H3-Prompt-Rewriter
last_updated: 2026-08-15
license: other
pipeline_tag: text-generation
tasks:
  - text-generation
base_model:
  - Qwen/Qwen3.6-27B
base_model_relation: quantized
library_name:
  - gguf
frameworks:
  - gguf
language:
  - en
  - zh
downloads: 161
stars: 1
tags:
  - gguf
  - llama.cpp
  - qwen3.6
  - lora-merged
  - prompt-rewriting
  - minimax-h3
  - text-to-audio-video
---

# Qwen3.6-27B-H3-Prompt-Rewriter

> Qwen3.6-27B-H3-Prompt-Rewriter - zhaoke1006 在 ModelScope 开源的模型。Qwen3.6-27B H3 Prompt Rewriter GGUF

zhaoke1006/Qwen3.6-27B-H3-Prompt-Rewriter 是 ModelScope 魔搭社区上的text-generation模型，采用 other 许可，基于 Qwen/Qwen3.6-27B 构建。

- **Repository**: zhaoke1006/Qwen3.6-27B-H3-Prompt-Rewriter
- **License**: other
- **Tasks**: text-generation
- **Base model**: Qwen/Qwen3.6-27B
- **Tags**: gguf, llama.cpp, qwen3.6, lora-merged, prompt-rewriting, minimax-h3, text-to-audio-video
- **Downloads**: 161
- **Stars**: 1
- **Last updated**: 2026-08-15

Source: https://www.modelscope.cn/models/zhaoke1006/Qwen3.6-27B-H3-Prompt-Rewriter

---

# Qwen3.6-27B H3 Prompt Rewriter GGUF

这是将 [`lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA`](https://huggingface.co/lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA) 融合到 [`Qwen/Qwen3.6-27B`](https://huggingface.co/Qwen/Qwen3.6-27B) 后制作的独立 GGUF 模型合集，用于把简短的视频创意扩写成 MiniMax H3 风格的音视频联合生成提示词。

This repository contains standalone GGUF models created by merging the `lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA` adapter into `Qwen/Qwen3.6-27B`. The model rewrites a short video idea into a structured, production-ready joint audio-video prompt.

> 本仓库是社区转换与量化版本，不是 Qwen、MiniMax 或 LightX2V 官方发布。

## 模型特点

- LoRA 已经融合进模型；加载这些 GGUF 时不需要再挂载 LoRA。
- 所有量化版本均直接从融合后的 F16 母模型生成，不是从较低位模型二次量化。
- Q4_K_M、Q5_K_M 和 Q6_K 使用基于 MiniMax H3 官方提示词指南构建的任务专用 importance matrix。
- 校准矩阵包含 128 个 512-token chunks、496 个 importance entries；语料以 T2VA 为主，并覆盖镜头、时间戳、运镜、对白、画面文字、环境音和配乐。
- 仓库同时提供生成 importance matrix 时使用的 160 组校准 Prompt 和脱敏 manifest，便于复现或继续量化。
- 最终的 `MiniMax-H3-Prompt-Rewriter-imatrix.gguf` 也一并发布，可用于从兼容的高精度融合母模型继续制作其他 K-quant 版本。
- 这是 text-only GGUF，不包含 Qwen3.6 的视觉编码器或多模态投影器；请以文本形式提供原始视频创意。
- 原始 LoRA 的模型卡主要面向 T2VA。其他模式没有做系统质量评测。

## 文件选择

| 文件 | 大小 | BPW | 建议用途 |
| --- | ---: | ---: | --- |
| `Qwen3.6-27B-H3-Prompt-Rewriter-Q4_K_M.gguf` | 15.66 GiB | 4.92 | 16GB 显卡/内存受限环境首选，可能需要少量 CPU offload |
| `Qwen3.6-27B-H3-Prompt-Rewriter-Q5_K_M.gguf` | 18.19 GiB | 5.72 | 推荐的质量/体积平衡版本 |
| `Qwen3.6-27B-H3-Prompt-Rewriter-Q6_K.gguf` | 20.89 GiB | 6.56 | 更高质量，需要更多内存或 CPU+GPU 混合推理 |
| `Qwen3.6-27B-H3-Prompt-Rewriter-Q8_0.gguf` | 27.05 GiB | 8.50 | 接近高精度，适合 32GB 级内存/显存环境 |

附加量化资源：`MiniMax-H3-Prompt-Rewriter-imatrix.gguf`（13,642,752 bytes，128 chunks，496 importance entries）。请勿将 imatrix 当作可独立推理的模型加载。
如果只下载一个版本，建议优先选择 `Q5_K_M`；16GB 显存机器建议从 `Q4_K_M` 开始。实际显存还需要为 KV cache、上下文和运行时缓冲区留出空间。

融合后的 F16 母模型未上传：它约 50.90 GiB，主要用于制作后续量化版本，在普通 64GB 主机上实际推理容易产生严重换页。

## llama.cpp 使用方法

请使用支持 `qwen35` 架构的较新版本 llama.cpp。测试使用的版本为 `b301-d415e65`。

```bash
llama-cli \
  -m Qwen3.6-27B-H3-Prompt-Rewriter-Q5_K_M.gguf \
  -sysf H3-Prompt-Rewriter-System.txt \
  --reasoning off \
  -ngl 99 \
  -c 4096 \
  --temp 0.7 \
  -p "resolution: 16:9\nduration: 10s\noriginal_prompt: A red fox crosses a snowy pine forest at dawn."
```

如果显存不足，请降低 `-ngl`。Windows 下使用 PowerShell 时，也可以把提示词保存成 UTF-8 文本文件后通过 `-f` 传入。

输入建议保持以下格式：

```text
resolution: 16:9
duration: 10s
original_prompt: your video idea
```

模型应只返回以下三个字段：

```text
integrated_multimodal_description: ...
overall_soundscape: ...
non_diegetic_music: ...
```

仓库中的 `H3-Prompt-Rewriter-System.txt` 是本次融合模型验证时使用的 system prompt，建议加载。

## 合并与量化方法

1. 将完整的 Qwen3.6-27B Hugging Face BF16 checkpoint 转换为 text-only GGUF。
2. 使用 llama.cpp `llama-export-lora` 将 F16 LoRA 合并进高精度 GGUF。
3. 依据 MiniMax 官方 [`VIDEO_PROMPT_WRITING_GUIDE_base_en.md`](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/docs/VIDEO_PROMPT_WRITING_GUIDE_base_en.md) 和 [`VIDEO_PROMPT_WRITING_GUIDE_ref_en.md`](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/docs/VIDEO_PROMPT_WRITING_GUIDE_ref_en.md) 构建校准语料。
4. 使用 Q8_0 校准副本采集 128 chunks 的 importance matrix。Q8_0 只用于统计激活；最终 Q4_K_M、Q5_K_M、Q6_K 均直接从融合 F16 母模型量化，避免 double quantization。
5. 使用同一 llama.cpp 构建执行运行验证。

`blk.64` 是 Qwen3.6 的辅助 NextN/MTP prediction layer，不属于普通生成使用的主模型 blocks 0–63。由于普通 imatrix 采集不执行该辅助层，其权重使用对应量化格式的标准回退策略。

## 160 组校准 Prompt

仓库中的 [`calibration/MiniMax-H3-Prompt-Rewriter-calibration-160.txt`](calibration/MiniMax-H3-Prompt-Rewriter-calibration-160.txt) 是本次 importance-matrix 采集所使用的完整 Qwen chat-template 语料：

- 共 160 组 conversations，约 100,895 tokens。
- 128 T2VA（80%）、12 I2VA、10 FL2VA、10 L2VA。
- 覆盖三字段输出、shot timestamps、camera motion、dialogue、voiceover、visible text、`<scenetrans>`、`<cutoff>`、soundscape 和 non-diegetic music。
- 语料 SHA-256：`fd1b936721a523d7935e5b98a4fbcd34d6ebbeefc10a3b19e4c348456b67dca8`。

这些 Prompt 是根据公开提示词指南为量化校准合成的任务样本，不是 LightX2V 上游 LoRA 的原始训练数据，也没有用于重新训练或微调 LoRA。详细统计和来源哈希见 [`calibration/calibration-manifest.json`](calibration/calibration-manifest.json)。

## 完整性校验

下载后可使用 `SHA256SUMS` 验证文件：

```powershell
Get-FileHash .\Qwen3.6-27B-H3-Prompt-Rewriter-Q5_K_M.gguf -Algorithm SHA256
```

## 验证状态

- Q4_K_M：实际生成了结构化镜头描述和时间戳。
- Q5_K_M：llama.cpp 识别为 `Q5_K - Medium`，完成 prompt prefill 和 forward pass，退出码 0。
- Q6_K：llama.cpp 识别为 `Q6_K`，完成 prompt prefill 和 forward pass，退出码 0。
- Q8_0：用于完成全部 128 chunks 的 imatrix 采集，证明主推理图可执行。
- F16 母模型：完成模型结构与加载验证，但未在本仓库发布；在 64GB RAM + 16GB VRAM 主机上会产生严重换页。

这里的验证是格式、加载和功能性 smoke test，不等同于主观质量基准。不同量化版本与动态 LoRA 加载之间可能存在细微输出差异。

## 限制

- 主要用途是 MiniMax H3/T2VA 风格提示词扩写，不应被当作通用聊天模型质量发布。
- GGUF 为 text-only，不支持直接输入图片、视频或音频。
- 模型可能扩写出用户未明确提供的视觉或音频细节，请人工复核关键文本、对白、品牌名称和安全要求。
- 长上下文会显著增加 KV cache 占用；显存有限时请降低上下文长度和 GPU offload 层数。
- 本仓库未对各量化版本做大规模人工偏好评测。
- 公开的 160 组 Prompt 是量化校准语料，不代表 MiniMax 官方数据集或上游 LoRA 训练数据。

## 来源与许可证说明

- Base model: `Qwen/Qwen3.6-27B`, Apache-2.0.
- Adapter: `lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA`.
- Conversion/quantization runtime: [`ggml-org/llama.cpp`](https://github.com/ggml-org/llama.cpp).

截至 2026-08-15，上游 LoRA 仓库的模型卡元数据未声明许可证。因此，本仓库将许可证元数据标记为 `other`，不将底模的 Apache-2.0 自动解释为覆盖 LoRA 或融合权重。下载者应在再分发或商用前自行确认上游适配器的授权条件，并同时遵守所有上游模型与工具的许可证。

本仓库名称中的 “MiniMax H3” 用于描述目标提示词格式和上游适配器来源，不代表 MiniMax 官方背书。

## 致谢

- Qwen team for Qwen3.6-27B
- LightX2V for the MiniMax-H3 Prompt Rewriter LoRA
- MiniMax for the H3 prompt-writing guides
- ggml-org/llama.cpp for GGUF conversion, LoRA merge, imatrix, quantization and inference tools
