Instructions to use yothinS/Typhoon_OCR_7B.gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use yothinS/Typhoon_OCR_7B.gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf yothinS/Typhoon_OCR_7B.gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf yothinS/Typhoon_OCR_7B.gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf yothinS/Typhoon_OCR_7B.gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf yothinS/Typhoon_OCR_7B.gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf yothinS/Typhoon_OCR_7B.gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf yothinS/Typhoon_OCR_7B.gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf yothinS/Typhoon_OCR_7B.gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf yothinS/Typhoon_OCR_7B.gguf:Q4_K_M
Use Docker
docker model run hf.co/yothinS/Typhoon_OCR_7B.gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use yothinS/Typhoon_OCR_7B.gguf with Ollama:
ollama run hf.co/yothinS/Typhoon_OCR_7B.gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use yothinS/Typhoon_OCR_7B.gguf with Docker Model Runner:
docker model run hf.co/yothinS/Typhoon_OCR_7B.gguf:Q4_K_M
- Lemonade
How to use yothinS/Typhoon_OCR_7B.gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull yothinS/Typhoon_OCR_7B.gguf:Q4_K_M
Run and chat with the model
lemonade run user.Typhoon_OCR_7B.gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Typhoon-OCR-7B - GGUF (Multi-Quantization)
This repository contains the GGUF weights for typhoon-ai/typhoon-ocr-7b, an advanced Vision-Language Model optimized for Optical Character Recognition (OCR) in Thai and English, developed by SCB 10X.
The models have been quantified using llama.cpp with CUDA acceleration, providing various sizes suitable for local deployment on hardware with limited resources (e.g., 16GB RAM).
π Available Files & Quantization Details
To run this Vision-Language Model (VLM), you need two components downloaded into the same directory:
- The Main Text Model: (
.gguffiles listed below) - The Vision Projector Model (The Eyes): You MUST download
typhoon-ocr-mmproj-f16.ggufto process images.
Main Models Table
| File Name | Quantization Type | Size | Recommended Use Case |
|---|---|---|---|
typhoon-ocr-Q2_K.gguf |
2-bit | ~2.5 GB | Extreme resource constraint / Testing purposes |
typhoon-ocr-Q4_K_M.gguf |
4-bit | ~4.5 GB | Recommended Balance for 16GB RAM systems |
typhoon-ocr-Q6_K.gguf |
6-bit | ~6.1 GB | High quality, minimal degradation of Thai vocabulary |
typhoon-ocr-Q8_0.gguf |
8-bit | ~7.7 GB | Near-lossless precision, requires higher VRAM/RAM |
Multi-Modal Component
typhoon-ocr-mmproj-f16.gguf(~1.3 GB): The required vision adapter component. Works universally with all quant variants above.
π How to Run Locally
1. Using llama.cpp (CLI)
You can run the model directly via the llama-cli using the multi-modal argument (--mmproj):
llama-cli -m typhoon-ocr-Q4_K_M.gguf \
--mmproj typhoon-ocr-mmproj-f16.gguf \
--image /path/to/your/document.png \
-p "<|im_start|><|role|>user<|im_end|><|image|>Extract text from this image.<|im_start|><|role|>assistant<|im_end|>" \
-n 2048
2. Using Ollama (Custom Modelfile)
To run this model natively in Ollama, create a file named Modelfile in your directory and add the following configuration:
# Path to the main model and vision projector
FROM ./typhoon-ocr-Q4_K_M.gguf
MMPROJ ./typhoon-ocr-mmproj-f16.gguf
# Set Parameters
PARAMETER temperature 0.1
PARAMETER stop <|im_end|>
PARAMETER stop <|endoftext|>
# Template for Qwen2.5-VL / Typhoon OCR
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ .Response }}<|im_end|>"""
Then compile and run it via terminal:
ollama create typhoon-ocr -f ./Modelfile
ollama run typhoon-ocr
π Usage & Prompt Notes
As stated by the original developers (Typhoon AI), this model is highly specialized for Document Parsing and OCR. Standard conversational chit-chat prompts might yield suboptimal results. Always structuralize your queries towards data extraction or text transcribing.
π€ Acknowledgements
Credits go to Typhoon AI (SCB 10X) for developing and releasing the original typhoon-ocr-7b weights. This GGUF version is optimized purely for the open-source community to leverage efficient local edge inference.
- Downloads last month
- -
2-bit
4-bit
6-bit
8-bit
16-bit
Model tree for yothinS/Typhoon_OCR_7B.gguf
Base model
Qwen/Qwen2.5-VL-7B-Instruct