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

  • Log In
  • Sign Up

lthn
/
lemer-mlx

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

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

  • Libraries
  • MLX

    How to use lthn/lemer-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("lthn/lemer-mlx")
    config = load_config("lthn/lemer-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 lthn/lemer-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 "lthn/lemer-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": "lthn/lemer-mlx"
            }
          ]
        }
      }
    }
    Run Pi
    # Start Pi in your project directory:
    pi
  • Hermes Agent new

    How to use lthn/lemer-mlx with Hermes Agent:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "lthn/lemer-mlx"
    Configure Hermes
    # Install Hermes:
    curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
    hermes setup
    # Point Hermes at the local server:
    hermes config set model.provider custom
    hermes config set model.base_url http://127.0.0.1:8080/v1
    hermes config set model.default lthn/lemer-mlx
    Run Hermes
    hermes
lemer-mlx
4.39 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 4 commits
lthn's picture
lthn
fix(config): sync with upstream Google Gemma 4 day-1 fixes (b446025, b4a6011)
df8c592 verified 26 days ago
  • .gitattributes
    1.57 kB
    feat: LEK-merged multimodal MLX Q4 (On-device default, 4.1 GB) about 1 month ago
  • LICENSE
    13.8 kB
    feat: LEK-merged multimodal MLX Q4 (On-device default, 4.1 GB) about 1 month ago
  • README.md
    7.19 kB
    docs: correct base_model lineage for HF model tree about 1 month ago
  • chat_template.jinja
    16.3 kB
    feat: LEK-merged multimodal MLX Q4 (On-device default, 4.1 GB) about 1 month ago
  • config.json
    4.95 kB
    fix(config): sync with upstream Google Gemma 4 day-1 fixes (b446025, b4a6011) 26 days ago
  • generation_config.json
    208 Bytes
    fix(config): sync with upstream Google Gemma 4 day-1 fixes (b446025, b4a6011) 26 days ago
  • model.safetensors
    4.36 GB
    xet
    feat: LEK-merged multimodal MLX Q4 (On-device default, 4.1 GB) about 1 month ago
  • model.safetensors.index.json
    230 kB
    feat: LEK-merged multimodal MLX Q4 (On-device default, 4.1 GB) about 1 month ago
  • processor_config.json
    902 Bytes
    feat: LEK-merged multimodal MLX Q4 (On-device default, 4.1 GB) about 1 month ago
  • tokenizer.json
    32.2 MB
    xet
    feat: LEK-merged multimodal MLX Q4 (On-device default, 4.1 GB) about 1 month ago
  • tokenizer_config.json
    2.69 kB
    feat: LEK-merged multimodal MLX Q4 (On-device default, 4.1 GB) about 1 month ago