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

AtomGradient
/
gemma-3-4b-it-qat-4bit-lite

Image-Text-to-Text
MLX
Safetensors
gemma3
multimodal
vision
quantized
pruned
on-device
apple-silicon
conversational
Model card Files Files and versions
xet
Community

Instructions to use AtomGradient/gemma-3-4b-it-qat-4bit-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use AtomGradient/gemma-3-4b-it-qat-4bit-lite 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("AtomGradient/gemma-3-4b-it-qat-4bit-lite")
    config = load_config("AtomGradient/gemma-3-4b-it-qat-4bit-lite")
    
    # 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
gemma-3-4b-it-qat-4bit-lite
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
AlexWuKing's picture
AlexWuKing
fix
f1140b5 3 months ago
  • .gitattributes
    1.57 kB
    init 3 months ago
  • .gitignore
    9 Bytes
    init 3 months ago
  • README.md
    3.83 kB
    fix 3 months ago
  • added_tokens.json
    35 Bytes
    init 3 months ago
  • chat_template.json
    1.62 kB
    init 3 months ago
  • config.json
    8.67 kB
    init 3 months ago
  • generation_config.json
    173 Bytes
    init 3 months ago
  • model.safetensors
    2.48 GB
    xet
    init 3 months ago
  • preprocessor_config.json
    569 Bytes
    init 3 months ago
  • processor_config.json
    70 Bytes
    init 3 months ago
  • special_tokens_map.json
    662 Bytes
    init 3 months ago
  • tokenizer.json
    33.4 MB
    xet
    init 3 months ago
  • tokenizer.model
    4.69 MB
    xet
    init 3 months ago
  • tokenizer_config.json
    1.16 MB
    init 3 months ago