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

majentik
/
gemma-4-12B-RotorQuant-MLX-8bit

Image-Text-to-Text
MLX
Safetensors
gemma4_unified
quantized
gemma
gemma4
apple-silicon
rotorquant
8-bit precision
Model card Files Files and versions
xet
Community

Instructions to use majentik/gemma-4-12B-RotorQuant-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use majentik/gemma-4-12B-RotorQuant-MLX-8bit 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("majentik/gemma-4-12B-RotorQuant-MLX-8bit")
    config = load_config("majentik/gemma-4-12B-RotorQuant-MLX-8bit")
    
    # 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 Settings
  • LM Studio
gemma-4-12B-RotorQuant-MLX-8bit
12.7 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
majentik's picture
majentik
Card accuracy sweep: honest brand labeling, remove dead links, upstream KV tip
f50cf5b verified 3 days ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 6 days ago
  • README.md
    2.24 kB
    Card accuracy sweep: honest brand labeling, remove dead links, upstream KV tip 3 days ago
  • config.json
    5.8 kB
    Upload folder using huggingface_hub 6 days ago
  • generation_config.json
    280 Bytes
    Upload folder using huggingface_hub 6 days ago
  • model-00001-of-00003.safetensors
    5.35 GB
    xet
    Upload folder using huggingface_hub 6 days ago
  • model-00002-of-00003.safetensors
    5.36 GB
    xet
    Upload folder using huggingface_hub 6 days ago
  • model-00003-of-00003.safetensors
    2.01 GB
    xet
    Upload folder using huggingface_hub 6 days ago
  • model.safetensors.index.json
    135 kB
    Upload folder using huggingface_hub 6 days ago
  • processor_config.json
    868 Bytes
    Upload folder using huggingface_hub 6 days ago
  • tokenizer.json
    32.2 MB
    xet
    Upload folder using huggingface_hub 6 days ago
  • tokenizer_config.json
    1.53 kB
    Upload folder using huggingface_hub 6 days ago