How to use from the
Use from the
MLX library
# Make sure mlx-vlm is installed
# pip install --upgrade mlx-vlm

from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config

# Load the model
model, processor = load("mlx-community/Qwopus3.6-27B-Coder-4bit")
config = load_config("mlx-community/Qwopus3.6-27B-Coder-4bit")

# Prepare input
image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
prompt = "Describe this image."

# Apply chat template
formatted_prompt = apply_chat_template(
    processor, config, prompt, num_images=1
)

# Generate output
output = generate(model, processor, formatted_prompt, image)
print(output)

mlx-community/Qwopus3.6-27B-Coder-4bit

This model mlx-community/Qwopus3.6-27B-Coder-4bit was converted to MLX format from Jackrong/Qwopus3.6-27B-Coder using mlx-vlm version 0.4.4.

This is a 4bit MLX quantized conversion. It keeps the source model's chat template and multimodal processor configuration for text/coding, image, and video-style inputs. The language model weights were quantized with MLX 4-bit affine quantization; the multimodal vision components are preserved for image/video inputs.

Refer to the original model card for model details, license, and intended use.

Use with mlx

pip install -U mlx-vlm

Image input

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

Text / coding input

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

Notes

  • This is a 4bit MLX quantized version of Jackrong/Qwopus3.6-27B-Coder.
  • The model is intended for Apple Silicon inference with MLX.
  • For multimodal usage, prefer mlx-vlm rather than plain mlx-lm.
  • License: Apache 2.0, inherited from the source model metadata.

Conversion

mlx_vlm.convert \
  --hf-path Jackrong/Qwopus3.6-27B-Coder \
  --mlx-path Qwopus3.6-27B-Coder-4bit \
  --quantize \
  --q-bits 4 \
  --q-group-size 64 \
  --q-mode affine
Downloads last month
220
Safetensors
Model size
5B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mlx-community/Qwopus3.6-27B-Coder-4bit

Quantized
(26)
this model