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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

nightmedia
/
LFM2-1.2B-Tool-dwq6-mlx

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

Instructions to use nightmedia/LFM2-1.2B-Tool-dwq6-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use nightmedia/LFM2-1.2B-Tool-dwq6-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("nightmedia/LFM2-1.2B-Tool-dwq6-mlx")
    
    prompt = "Once upon a time in"
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • MLX LM

    How to use nightmedia/LFM2-1.2B-Tool-dwq6-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 "nightmedia/LFM2-1.2B-Tool-dwq6-mlx" --prompt "Once upon a time"
LFM2-1.2B-Tool-dwq6-mlx
1.03 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
nightmedia's picture
nightmedia
Add files using upload-large-folder tool
b806295 verified 8 months ago
  • .gitattributes
    1.52 kB
    initial commit 8 months ago
  • README.md
    913 Bytes
    Add files using upload-large-folder tool 8 months ago
  • chat_template.jinja
    1.3 kB
    Add files using upload-large-folder tool 8 months ago
  • config.json
    1.63 kB
    Add files using upload-large-folder tool 8 months ago
  • generation_config.json
    132 Bytes
    Add files using upload-large-folder tool 8 months ago
  • model.safetensors
    1.02 GB
    xet
    Add files using upload-large-folder tool 8 months ago
  • model.safetensors.index.json
    23.4 kB
    Add files using upload-large-folder tool 8 months ago
  • special_tokens_map.json
    434 Bytes
    Add files using upload-large-folder tool 8 months ago
  • tokenizer.json
    4.73 MB
    Add files using upload-large-folder tool 8 months ago
  • tokenizer_config.json
    91.6 kB
    Add files using upload-large-folder tool 8 months ago