Lumine2-8bit

Lumine 2 is a vision-language game agent that takes screenshots and generates keyboard and mouse actions. This MLX conversion runs on Apple Silicon with mlx-vlm. Original model ยท mlx-vlm

Conversion

The exported files use the MLX Safetensors layout, with the original tokenizer, processor files, and chat template. Eligible language-model layers use 8-bit affine quantization with group size 64. The vision encoder stays in BF16. The export omits the upstream MTP draft tensors. The weight files total about 10.4 GB on disk.

Quick start

This single-frame test uses the upstream corridor screenshot and Instant prompt. The preparation step applies the client's JPEG encoding before resizing the image to 800ร—448. It was verified on an M3 Max with Python 3.12. The pinned OpenCV wheel requires macOS 15 or later.

python -m pip install 'mlx-vlm==0.8.2' 'mlx==0.32.5' \
  'opencv-python==5.1.0.95' 'Pillow==13.0.0'

python - <<'PYTHON'
from io import BytesIO
from pathlib import Path
from urllib.request import urlopen

import cv2
import numpy as np
from PIL import Image

source = "https://raw.githubusercontent.com/LumineResearch/Lumine2/a383527d2f4c515e7f680a3aeca8d7502e0c4e69/"

def fetch(path):
    with urlopen(source + path, timeout=30) as response:
        return response.read()

game = fetch("client/prompts/games/cyberpunk_2077_en.txt").decode().rstrip()
instant = fetch("client/prompts/modes/instant.en.txt").decode().strip()
system = (game + "\n\n" + instant).replace(
    "<instruction>", "Walk forward down the corridor by holding W."
)
Path("system.txt").write_text(system, encoding="utf-8")

png = fetch("server/tests/test_data/screenshots/corridor.png")
frame = cv2.imdecode(np.frombuffer(png, dtype=np.uint8), cv2.IMREAD_COLOR)
frame = cv2.resize(frame, (1280, 720), interpolation=cv2.INTER_LINEAR)
ok, jpeg = cv2.imencode(".jpg", frame, [cv2.IMWRITE_JPEG_QUALITY, 95])
if not ok:
    raise RuntimeError("Could not encode the corridor frame")
with Image.open(BytesIO(jpeg.tobytes())) as image:
    image.convert("RGB").resize((800, 448), Image.Resampling.BILINEAR).save("corridor-800.png")
PYTHON

python -m mlx_vlm.generate \
  --model mlx-community/Lumine2-8bit \
  --image corridor-800.png \
  --system "$(cat system.txt)" \
  --prompt "" --no-enable-thinking --temperature 0 --max-tokens 48

The model emits six action slices. In this example, the sixth slice contains W.

<|action_start|>0 0 0<|action_sep|><|action_sep|><|action_sep|><|action_sep|><|action_sep|><|action_sep|> W<|action_end|>

Keep the special tokens in the output so the action slices can be parsed. This command prints actions to the terminal. For live play, the Lumine 2 client handles screen capture and input with a compatible server. Client setup

License

The converted weights use Apache License 2.0. The original model is credited to the Lumine 2 contributors. License ยท Upstream project

Downloads last month
-
Safetensors
Model size
9B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for mlx-community/Lumine2-8bit

Finetuned
Qwen/Qwen3.5-9B
Quantized
(4)
this model