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

mlx-community
/
idefics2-8b-8bit

Image-Text-to-Text
MLX
Safetensors
English
idefics2
multimodal
vision
conversational
Model card Files Files and versions
xet
Community
1

Instructions to use mlx-community/idefics2-8b-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/idefics2-8b-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("mlx-community/idefics2-8b-8bit")
    config = load_config("mlx-community/idefics2-8b-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
  • Atomic Chat
idefics2-8b-8bit
9.45 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
Dianyo's picture
Dianyo
Typo of `mlx-vlm`
2e1a1d5 verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    914 Bytes
    Typo of `mlx-vlm` almost 2 years ago
  • added_tokens.json
    92 Bytes
    Upload 12 files over 2 years ago
  • config.json
    840 Bytes
    Upload 12 files over 2 years ago
  • model-00001-of-00002.safetensors
    5.31 GB
    xet
    Upload 12 files over 2 years ago
  • model-00002-of-00002.safetensors
    4.13 GB
    xet
    Upload 12 files over 2 years ago
  • model.safetensors.index.json
    121 kB
    Upload 12 files over 2 years ago
  • preprocessor_config.json
    461 Bytes
    Update preprocessor_config.json over 2 years ago
  • processor_config.json
    68 Bytes
    Upload 12 files over 2 years ago
  • special_tokens_map.json
    1.04 kB
    Upload 12 files over 2 years ago
  • tokenizer.json
    1.8 MB
    Upload 12 files over 2 years ago
  • tokenizer.model
    493 kB
    xet
    Upload 12 files over 2 years ago
  • tokenizer_config.json
    1.62 kB
    Upload 12 files over 2 years ago