Downloads · 30 days
7
6% of all-time downloads
roboalchemist/ReaderLM-v2-mlx-fp16
ReaderLM-v2-mlx-fp16 is a text generation model from roboalchemist. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as cc-by-nc-4.0.
This is a full-precision (bfloat16) MLX conversion of jinaai/ReaderLM-v2, optimized for Apple Silicon.
Downloads · 30 days
7
6% of all-time downloads
All-time downloads
125
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
This is a full-precision (bfloat16) MLX conversion of jinaai/ReaderLM-v2, optimized for Apple Silicon.
While quantized versions (4-bit, 8-bit) exist for faster inference, this full-precision version offers:
from mlx_lm import load, generate
model, tokenizer = load("roboalchemist/ReaderLM-v2-mlx-fp16")
html_content = "<html><body><h1>Hello World</h1><p>This is a test.</p></body></html>"
prompt = f"Extract the main content from the following HTML and convert it to Markdown format:\n```html\n{html_content}\n```"
response = generate(model, tokenizer, prompt=prompt, max_tokens=2048)
print(response)
Converted using:
mlx_lm.convert --hf-path jinaai/ReaderLM-v2 --mlx-path ./ReaderLM-v2-mlx-fp16
This model inherits the CC-BY-NC-4.0 license from the original ReaderLM-v2.