Views
No views yet
model.safetensors) has been quantized from the original bfloat16 weights. All other files are unchanged from the original repository.pip install mlx-vlm1from mlx_vlm import load
2from mlx_vlm.utils import generate_step
3from PIL import Image
4
5model, processor = load("jacobwindle/chandra-ocr-2-8bit-mlx")
6
7image = Image.open("document.png")
8prompt = "Convert this image to markdown."
9
10output = generate_step(
11 model=model,
12 processor=processor,
13 image=image,
14 prompt=prompt,
15 max_tokens=4096,
16)
17print(output)python -m mlx_vlm.generate --model jacobwindle/chandra-ocr-2-8bit-mlx --image document.png --prompt "Convert this image to markdown." --max-tokens 4096| Parameter | Value |
|---|---|
| Bits | 8 |
| Group size | 64 |
| Mode | Affine |
| Original dtype | bfloat16 |
| Quantized size | ~4.8 GB |
python -m mlx_vlm.convert --model datalab-to/chandra-ocr-2 --mlx-path models/chandra-ocr-2-8bit -q --q-bits 8