Run this model with HF Jobs

Run mlx-community/Lumine2-bf16 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/mlx-community/Lumine2-bf16. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/mlx-community/Lumine2-bf16 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/mlx-community/Lumine2-bf16. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/mlx-community/Lumine2-bf16. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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/Lumine2-bf16")
config = load_config("mlx-community/Lumine2-bf16")

# 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)

Lumine2-bf16

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. The language and vision weights use BF16. The export omits the upstream MTP draft tensors. The weight files total about 18.8 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-bf16 \
  --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
57
Safetensors
Model size
9B params
Tensor type
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

Quantized

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

Model tree for mlx-community/Lumine2-bf16

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