Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

LetheanNetwork
/
lemma-mlx

Image-Text-to-Text
MLX
Safetensors
gemma4
apple-silicon
4bit
on-device
conversational
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use LetheanNetwork/lemma-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use LetheanNetwork/lemma-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("LetheanNetwork/lemma-mlx")
    config = load_config("LetheanNetwork/lemma-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
  • LM Studio
  • Pi new

    How to use LetheanNetwork/lemma-mlx with Pi:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "LetheanNetwork/lemma-mlx"
    Configure the model in Pi
    # Install Pi:
    npm install -g @mariozechner/pi-coding-agent
    # Add to ~/.pi/agent/models.json:
    {
      "providers": {
        "mlx-lm": {
          "baseUrl": "http://localhost:8080/v1",
          "api": "openai-completions",
          "apiKey": "none",
          "models": [
            {
              "id": "LetheanNetwork/lemma-mlx"
            }
          ]
        }
      }
    }
    Run Pi
    # Start Pi in your project directory:
    pi
lemma-mlx
4.26 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 2 commits
Snider
Virgil
feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16
dcdb5f9 25 days ago
  • .gitattributes
    1.57 kB
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago
  • README.md
    817 Bytes
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago
  • chat_template.jinja
    11.9 kB
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago
  • config.json
    4.93 kB
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago
  • generation_config.json
    208 Bytes
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago
  • model.safetensors
    4.23 GB
    xet
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago
  • model.safetensors.index.json
    129 kB
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago
  • tokenizer.json
    32.2 MB
    xet
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago
  • tokenizer_config.json
    2.72 kB
    feat: initial mlx 4bit quant, converted from LetheanNetwork/lemma bf16 25 days ago