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

MegawizCo
/
typhoon-ocr-3b-mlx-q4

Image-Text-to-Text
MLX
Safetensors
Thai
English
qwen2_5_vl
vlm
ocr
thai
typhoon
apple-silicon
vision-language
document-understanding
multilingual
conversational
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use MegawizCo/typhoon-ocr-3b-mlx-q4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use MegawizCo/typhoon-ocr-3b-mlx-q4 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("MegawizCo/typhoon-ocr-3b-mlx-q4")
    config = load_config("MegawizCo/typhoon-ocr-3b-mlx-q4")
    
    # 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
  • LM Studio
typhoon-ocr-3b-mlx-q4
3.09 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
paripolt's picture
paripolt
Initial MLX q4 release
3ab2d4b verified 16 days ago
  • .gitattributes
    1.57 kB
    Initial MLX q4 release 16 days ago
  • README.md
    3.07 kB
    Initial MLX q4 release 16 days ago
  • added_tokens.json
    605 Bytes
    Initial MLX q4 release 16 days ago
  • chat_template.jinja
    1.02 kB
    Initial MLX q4 release 16 days ago
  • chat_template.json
    1.05 kB
    Initial MLX q4 release 16 days ago
  • config.json
    1.53 kB
    Initial MLX q4 release 16 days ago
  • generation_config.json
    266 Bytes
    Initial MLX q4 release 16 days ago
  • model.safetensors
    3.07 GB
    xet
    Initial MLX q4 release 16 days ago
  • model.safetensors.index.json
    108 kB
    Initial MLX q4 release 16 days ago
  • preprocessor_config.json
    575 Bytes
    Initial MLX q4 release 16 days ago
  • processor_config.json
    1.08 kB
    Initial MLX q4 release 16 days ago
  • special_tokens_map.json
    613 Bytes
    Initial MLX q4 release 16 days ago
  • tokenizer.json
    11.4 MB
    xet
    Initial MLX q4 release 16 days ago
  • tokenizer_config.json
    421 Bytes
    Initial MLX q4 release 16 days ago
  • vocab.json
    2.78 MB
    Initial MLX q4 release 16 days ago