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

jmbarrancoidener
/
PaddleOCR-VL-1.6-mlx-8bit

Image-Text-to-Text
MLX
Safetensors
PaddleOCR
English
Chinese
multilingual
paddleocr_vl
ocr
document-parse
layout
table
formula
conversational
custom_code
8-bit precision
Model card Files Files and versions
xet
Community

Instructions to use jmbarrancoidener/PaddleOCR-VL-1.6-mlx-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use jmbarrancoidener/PaddleOCR-VL-1.6-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("jmbarrancoidener/PaddleOCR-VL-1.6-mlx-8bit")
    config = load_config("jmbarrancoidener/PaddleOCR-VL-1.6-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)
  • PaddleOCR

    How to use jmbarrancoidener/PaddleOCR-VL-1.6-mlx-8bit with PaddleOCR:

    # See https://www.paddleocr.ai/latest/version3.x/pipeline_usage/PaddleOCR-VL.html to installation
    
    from paddleocr import PaddleOCRVL
    pipeline = PaddleOCRVL(pipeline_version="jmbarrancoidener/PaddleOCR-VL-1.6-mlx-8bit")
    output = pipeline.predict("path/to/document_image.png")
    for res in output:
    	res.print()
    	res.save_to_json(save_path="output")
    	res.save_to_markdown(save_path="output")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • Atomic Chat
PaddleOCR-VL-1.6-mlx-8bit
1.1 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
jmbarrancoidener's picture
jmbarrancoidener
PaddleOCR-VL-1.6 MLX 8-bit
e175991 verified 29 days ago
  • .gitattributes
    1.57 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • README.md
    2.89 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • added_tokens.json
    25.4 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • chat_template.jinja
    1.47 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • config.json
    2.68 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • configuration_paddleocr_vl.py
    8.1 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • generation_config.json
    133 Bytes
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • image_processing_paddleocr_vl.py
    25 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • model.safetensors
    1.09 GB
    xet
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • model.safetensors.index.json
    69.9 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • modeling_paddleocr_vl.py
    104 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • preprocessor_config.json
    641 Bytes
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • processing_paddleocr_vl.py
    12.3 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • processor_config.json
    609 Bytes
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • special_tokens_map.json
    1.15 kB
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • tokenizer.json
    11.2 MB
    xet
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago
  • tokenizer_config.json
    803 Bytes
    PaddleOCR-VL-1.6 MLX 8-bit 29 days ago