Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • 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

LiquidAI
/
LFM2.5-2.6B-MLX

Text Generation
MLX
Safetensors
liquid
lfm2.5
edge
Model card Files Files and versions
xet
Community

Instructions to use LiquidAI/LFM2.5-2.6B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use LiquidAI/LFM2.5-2.6B-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("LiquidAI/LFM2.5-2.6B-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 LiquidAI/LFM2.5-2.6B-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 "LiquidAI/LFM2.5-2.6B-MLX" --prompt "Once upon a time"
LFM2.5-2.6B-MLX / 5bit
1.91 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
mlabonne's picture
mlabonne
Initial commit
58e239c 1 day ago
  • chat_template.jinja
    5.44 kB
    Initial commit 1 day ago
  • config.json
    2.2 kB
    Initial commit 1 day ago
  • generation_config.json
    307 Bytes
    Initial commit 1 day ago
  • model.safetensors
    1.89 GB
    xet
    Initial commit 1 day ago
  • model.safetensors.index.json
    42 kB
    Initial commit 1 day ago
  • tokenizer.json
    17.9 MB
    xet
    Initial commit 1 day ago
  • tokenizer_config.json
    363 Bytes
    Initial commit 1 day ago