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-1.7B-MLX

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

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
LFM3-1.7B-MLX / 4bit
1.33 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
jennyxue's picture
jennyxue
4bit build of LFM3 1.7B
73ee074 verified 9 days ago
  • chat_template.jinja

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    12.1 kB
    4bit build of LFM3 1.7B 9 days ago
  • config.json
    49.4 kB
    4bit build of LFM3 1.7B 9 days ago
  • generation_config.json
    328 Bytes
    4bit build of LFM3 1.7B 9 days ago
  • model.safetensors
    1.31 GB
    xet
    4bit build of LFM3 1.7B 9 days ago
  • model.safetensors.index.json
    50.7 kB
    4bit build of LFM3 1.7B 9 days ago
  • special_tokens_map.json
    92 Bytes
    4bit build of LFM3 1.7B 9 days ago
  • tokenizer.json
    17.9 MB
    xet
    4bit build of LFM3 1.7B 9 days ago
  • tokenizer_config.json

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    1.86 kB
    4bit build of LFM3 1.7B 9 days ago