Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

starkdmi
/
SmolVLM2-500M-Video-Instruct-mlx-8bit

Image-Text-to-Text
MLX
Safetensors
smolvlm
conversational
8-bit precision
Model card Files Files and versions
xet
Community

Instructions to use starkdmi/SmolVLM2-500M-Video-Instruct-mlx-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use starkdmi/SmolVLM2-500M-Video-Instruct-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("starkdmi/SmolVLM2-500M-Video-Instruct-mlx-8bit")
    config = load_config("starkdmi/SmolVLM2-500M-Video-Instruct-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
  • Atomic Chat
SmolVLM2-500M-Video-Instruct-mlx-8bit
625 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
starkdmi's picture
starkdmi
Model card: licence and base model
2e8ce12 verified 16 days ago
  • .gitattributes
    1.52 kB
    initial commit 9 months ago
  • README.md
    327 Bytes
    Model card: licence and base model 16 days ago
  • added_tokens.json
    4.74 kB
    Upload folder using huggingface_hub 9 months ago
  • chat_template.jinja
    403 Bytes
    Upload folder using huggingface_hub 9 months ago
  • chat_template.json
    430 Bytes
    Upload folder using huggingface_hub 9 months ago
  • config.json
    10.4 kB
    Upload folder using huggingface_hub 9 months ago
  • model.safetensors
    620 MB
    xet
    Upload folder using huggingface_hub 9 months ago
  • model.safetensors.index.json
    75.4 kB
    Upload folder using huggingface_hub 9 months ago
  • preprocessor_config.json
    599 Bytes
    Upload folder using huggingface_hub 9 months ago
  • processor_config.json
    1.62 kB
    Upload folder using huggingface_hub 9 months ago
  • special_tokens_map.json
    868 Bytes
    Upload folder using huggingface_hub 9 months ago
  • tokenizer.json
    3.55 MB
    Upload folder using huggingface_hub 9 months ago
  • tokenizer_config.json
    924 Bytes
    Upload folder using huggingface_hub 9 months ago
  • vocab.json
    801 kB
    Upload folder using huggingface_hub 9 months ago