HuggingFace镜像/Qwopus3.8-27B-Flash-V2-4bit
模型介绍
文件和版本
分析

mlx-community/Qwopus3.8-27B-Flash-V2-4bit

该模型 mlx-community/Qwopus3.8-27B-Flash-V2-4bit 由 Jackrong/Qwopus3.8-27B-Flash-V2 转换而来, 并采用 0.4.4 版本的 mlx-vlm 完成 MLX 格式转换。

这是一个 4bit MLX 量化版本。它保留了源模型的聊天模板,以及面向文本/代码、图像和视频类输入的多模态处理器配置。语言模型权重采用 MLX 4-bit 仿射量化;多模态视觉组件保持原样,以支持图像/视频输入。

请参考 原始模型卡片 了解模型详情、许可证及预期用途。

使用 mlx

pip install -U mlx-vlm

图像输入

python -m mlx_vlm.generate \
  --model mlx-community/Qwopus3.8-27B-Flash-V2-4bit \
  --max-tokens 512 \
  --temperature 0.0 \
  --prompt "Describe this image." \
  --image <path_to_image>

文本 / 代码输入

python -m mlx_vlm.generate \
  --model mlx-community/Qwopus3.8-27B-Flash-V2-4bit \
  --max-tokens 512 \
  --temperature 0.2 \
  --prompt "Write a Python function that parses a JSONL file and counts records by label."

说明

  • 这是 Jackrong/Qwopus3.8-27B-Flash-V2 的 4bit MLX 量化版本。
  • 该模型旨在通过 MLX 在 Apple Silicon 上进行推理。
  • 如需多模态使用,建议优先使用 mlx-vlm,而非普通的 mlx-lm。
  • 许可证:Apache 2.0,沿用自源模型元数据。

转换

mlx_vlm.convert \
  --hf-path Jackrong/Qwopus3.8-27B-Flash-V2 \
  --mlx-path Qwopus3.8-27B-Flash-V2-4bit \
  --quantize \
  --q-bits 4 \
  --q-group-size 64 \
  --q-mode affine