Instructions to use moonbox-dev/LFM3-1.7B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-dev/LFM3-1.7B-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("moonbox-dev/LFM3-1.7B-MLX") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use moonbox-dev/LFM3-1.7B-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "moonbox-dev/LFM3-1.7B-MLX" --prompt "Once upon a time"
- Atomic Chat
|
Download NOTICE.md from moonbox-dev/LFM3-1.7B-MLX: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/moonbox-dev/LFM3-1.7B-MLX/resolve/main/NOTICE.md
- Command line
-
hf download hf://moonbox-dev/LFM3-1.7B-MLX/NOTICE.md
-
curl -L -o NOTICE.md https://huggingface.co/moonbox-dev/LFM3-1.7B-MLX/resolve/main/NOTICE.md
354 Bytes
| Modified by Moonbox: the weights of https://huggingface.co/LiquidAI/LFM3-1.7B (revision 1da06bec) were converted to MLX in mlx-vlm's layout and the language model was quantized with MLX affine quantization (8 and 6 bits, and a dynamic 4-bit); text only (no vision tower). The publisher's Python files are not included. Not an official Liquid AI release. | |