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

anusoft
/
OpenThai2.2-OCR-Markdown-20261127-mlx-rocm-pascal

Image-Text-to-Text
MLX
Safetensors
Thai
English
ocr
document-parsing
markdown
pascal
rocm
Model card Files Files and versions
xet
Community

Instructions to use anusoft/OpenThai2.2-OCR-Markdown-20261127-mlx-rocm-pascal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use anusoft/OpenThai2.2-OCR-Markdown-20261127-mlx-rocm-pascal 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("anusoft/OpenThai2.2-OCR-Markdown-20261127-mlx-rocm-pascal")
    config = load_config("anusoft/OpenThai2.2-OCR-Markdown-20261127-mlx-rocm-pascal")
    
    # 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
OpenThai2.2-OCR-Markdown-20261127-mlx-rocm-pascal
3.57 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
anusoft
Update instructions for renamed Hugging Face repository
1455269 3 days ago
  • bench
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • benchmarks
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • docs
    Update instructions for renamed Hugging Face repository 3 days ago
  • models
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • requirements
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • results
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • runtime
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • .gitattributes
    50 Bytes
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • .gitignore
    201 Bytes
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • LICENSES.md
    1.62 kB
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago
  • README.md
    19.7 kB
    Update instructions for renamed Hugging Face repository 3 days ago
  • SHA256SUMS
    14.5 kB
    Update instructions for renamed Hugging Face repository 3 days ago
  • run.sh
    1.78 kB
    Prepare compact bilingual OpenThai 2.2 Hub release 3 days ago