Hacker GitHub

← All repos

ml-explore/mlx-lm

View on GitHub ↗ ★ 7,532 Python

Run LLMs with MLX

8 mentions on Hacker News by 7 people: 0 stories, 8 comments · first 2025-04-28 · latest 2026-06-17

Mentions per year 8 mentions · busiest year 2025 (4)
20082026
  1. Yeah, first think I looked for on the post was MLX and it wasn't there. https://github.com/ml-explore/mlx-lm Having used half the systems that Vicki mentioned, mlx was the best balance between power and ease of use. Just a pip install away.
    comment by genxy · 2026-06-17 · in Running local models is good now
  2. It's not implemented in mlx[1] yet (or llama.cpp[2]), so it may take a while. [1] https://github.com/ml-explore/mlx-lm/pull/990 [2] https://github.com/ggml-org/llama.cpp/pull/22673
  3. Get into a venv, and run: > pip3 install git+ https://github.com/ml-explore/mlx-lm.git > ./venv/bin/mlx_lm.generate --model "$MODEL" --temp 1.0 --top-p 0.95 --top-k 64 --max-tokens 128000 --prompt "Hello world" Where $MODEL is an unsloth…
  4. …instead. That too was broken in mlx-lm (it crashed), but has since been fixed on the main branch of https://github.com/ml-explore/mlx-lm . I unfortunately only have 16 GiB of RAM on a Macbook M1, but I just tried to run the Q8_0 GGUF…
  5. …https://github.com/swiss-ai/apertus-tech-report/blob/main/Ap... quantizations: available now in MLX https://github.com/ml-explore/mlx-lm (gguf coming soon, not trivial due to new architecture) model sizes: still many good dense models…
  6. …(requires the latest mlx-lm to be installed) here's the MLX-lm PR if you're interested: https://github.com/ml-explore/mlx-lm/pull/272 similarly, llama.cpp here: https://github.com/ggml-org/llama.cpp/pull/14581 Let me know if you face any…
  7. …but only for Apple Silicon. mlx-lm is a llama.cpp equivalent, but built on top of mlx. https://github.com/ml-explore/mlx-lm
  8. …I've used to try out models: https://simonwillison.net/tags/mlx/ I mainly use MLX for LLMs (with https://github.com/ml-explore/mlx-lm and my own https://github.com/simonw/llm-mlx which wraps that), vision LLMs (via…