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

zboyles
/
SmolDocling-256M-preview-bf16

Image-Text-to-Text
MLX
Safetensors
English
idefics3
conversational
Model card Files Files and versions
xet
Community

Instructions to use zboyles/SmolDocling-256M-preview-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use zboyles/SmolDocling-256M-preview-bf16 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("zboyles/SmolDocling-256M-preview-bf16")
    config = load_config("zboyles/SmolDocling-256M-preview-bf16")
    
    # 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
SmolDocling-256M-preview-bf16
518 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
zboyles's picture
zboyles
Update README.md
18e08d3 verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    6.43 kB
    Update README.md about 1 year ago
  • added_tokens.json
    3.67 kB
    Upload folder using huggingface_hub about 1 year ago
  • chat_template.json
    430 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • config.json
    10 kB
    Upload folder using huggingface_hub about 1 year ago
  • merges.txt
    466 kB
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors
    513 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors.index.json
    38.1 kB
    Upload folder using huggingface_hub about 1 year ago
  • preprocessor_config.json
    486 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • processor_config.json
    68 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • special_tokens_map.json
    1.07 kB
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    3.55 MB
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    27.4 kB
    Upload folder using huggingface_hub about 1 year ago
  • vocab.json
    801 kB
    Upload folder using huggingface_hub about 1 year ago
  • zero_to_fp32.py
    33.3 kB
    Upload folder using huggingface_hub about 1 year ago