Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

moonbox-dev
/
LFM3-VL-2B-MLX

Image-Text-to-Text
MLX
Safetensors
moonbox
liquid
lfm3
mlx-vlm
apple-silicon
vision
Model card Files Files and versions
xet
Community

Instructions to use moonbox-dev/LFM3-VL-2B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use moonbox-dev/LFM3-VL-2B-MLX with MLX:

    # Make sure mlx-vlm is installed
    # pip install --upgrade mlx-vlm
    
    from mlx_vlm import load, generate
    from mlx_vlm.prompt_utils import apply_chat_template
    from mlx_vlm.utils import load_config
    
    # Load the model
    model, processor = load("moonbox-dev/LFM3-VL-2B-MLX")
    config = load_config("moonbox-dev/LFM3-VL-2B-MLX")
    
    # Prepare input
    image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
    prompt = "Describe this image."
    
    # Apply chat template
    formatted_prompt = apply_chat_template(
        processor, config, prompt, num_images=1
    )
    
    # Generate output
    output = generate(model, processor, formatted_prompt, image)
    print(output)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • Atomic Chat
LFM3-VL-2B-MLX
5.65 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
jennyxue's picture
jennyxue
Model card: wording of the model's description
6fc8c8e verified 9 days ago
  • 4bit
    4bit build of LFM3-VL 2B 9 days ago
  • 6bit
    6bit build of LFM3-VL 2B 9 days ago
  • 8bit
    8bit build of LFM3-VL 2B 9 days ago
  • .gitattributes
    1.69 kB
    4bit build of LFM3-VL 2B 9 days ago
  • LICENSE
    10.6 kB
    Model card and the original license 9 days ago
  • NOTICE.md
    377 Bytes
    Model card and the original license 9 days ago
  • README.md
    156 kB
    Model card: wording of the model's description 9 days ago