Instructions to use LiquidAI/LFM3-Omni-2B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use LiquidAI/LFM3-Omni-2B-MLX-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download LiquidAI/LFM3-Omni-2B-MLX-8bit --local-dir LFM3-Omni-2B-MLX-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
LFM3-Omni-2B-MLX-8bit
8-bit MLX version of LFM3-Omni-2B for Apple Silicon. The weights take 2.71 GB, plus 0.15 GB for the audio codec in audio_tokenizer/.
The language backbone uses 8-bit affine quantization with groups of 64. The vision tower and projector, the audio encoder and projector, the depth decoder and the audio codec in audio_tokenizer/ stay in BF16. 8-bit is the recommended trade-off between size and accuracy.
Find architecture and usage details in the original model card.
Use with MLX-VLM
Support for LFM3-Omni in MLX-VLM is in progress. We will update this card when an MLX-VLM release supports it.
# Speech recognition
python -m mlx_vlm.generate --model LiquidAI/LFM3-Omni-2B-MLX-8bit --temperature 0 \
--system "Perform ASR in English." --prompt "" --audio speech.wav
# Text to speech (24 kHz WAV)
python -m mlx_vlm.generate --model LiquidAI/LFM3-Omni-2B-MLX-8bit \
--system "Perform TTS in American English using a female voice." \
--prompt "The quick brown fox jumps over the lazy dog." \
--output-modality audio --output tts.wav
# Image question
python -m mlx_vlm.generate --model LiquidAI/LFM3-Omni-2B-MLX-8bit --temperature 0 \
--system "Answer questions about the provided image. Base every answer only on what can be seen. Respond with text." \
--image image.png --prompt "What does the sign say?"
Text answers use greedy decoding (--temperature 0). Speech output samples with audio_temperature=0.4 and audio_repetition_penalty=1.2 by default. The original model card lists the voices, languages and other system prompts. More options in the MLX guide.
- Downloads last month
- 1,034
8-bit
Model tree for LiquidAI/LFM3-Omni-2B-MLX-8bit
Base model
LiquidAI/LFM3-Omni-2B