Image-to-Text
Transformers
GGUF
English
Chinese
multilingual
ocr
document-parse
layout
table
formula
custom_code
conversational
Instructions to use mradermacher/dots.ocr-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/dots.ocr-GGUF with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="mradermacher/dots.ocr-GGUF", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/dots.ocr-GGUF", trust_remote_code=True, dtype="auto") - llama-cpp-python
How to use mradermacher/dots.ocr-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mradermacher/dots.ocr-GGUF", filename="dots.ocr.IQ4_XS.gguf", )
llm.create_chat_completion( messages = "\"cats.jpg\"" )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/dots.ocr-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/dots.ocr-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/dots.ocr-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/dots.ocr-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/dots.ocr-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 mradermacher/dots.ocr-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/dots.ocr-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 mradermacher/dots.ocr-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/dots.ocr-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/dots.ocr-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/dots.ocr-GGUF with Ollama:
ollama run hf.co/mradermacher/dots.ocr-GGUF:Q4_K_M
- Unsloth Studio
How to use mradermacher/dots.ocr-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mradermacher/dots.ocr-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mradermacher/dots.ocr-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mradermacher/dots.ocr-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use mradermacher/dots.ocr-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/dots.ocr-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/dots.ocr-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/dots.ocr-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.dots.ocr-GGUF-Q4_K_M
List all available models
lemonade list
uploaded from nico1
Browse files- .gitattributes +12 -0
- dots.ocr.IQ4_XS.gguf +3 -0
- dots.ocr.Q2_K.gguf +3 -0
- dots.ocr.Q3_K_L.gguf +3 -0
- dots.ocr.Q3_K_M.gguf +3 -0
- dots.ocr.Q3_K_S.gguf +3 -0
- dots.ocr.Q4_K_M.gguf +3 -0
- dots.ocr.Q4_K_S.gguf +3 -0
- dots.ocr.Q5_K_M.gguf +3 -0
- dots.ocr.Q5_K_S.gguf +3 -0
- dots.ocr.Q6_K.gguf +3 -0
- dots.ocr.Q8_0.gguf +3 -0
- dots.ocr.f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
dots.ocr.mmproj-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
dots.ocr.mmproj-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
dots.ocr.mmproj-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
dots.ocr.mmproj-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
dots.ocr.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
dots.ocr.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
dots.ocr.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
dots.ocr.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
dots.ocr.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
dots.ocr.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
dots.ocr.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
dots.ocr.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
dots.ocr.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
dots.ocr.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
dots.ocr.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
dots.ocr.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
dots.ocr.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b26f18dcf7e557644439fdf7c69f515557531dd68aba7b2f69033ff07a52478
|
| 3 |
+
size 1026160832
|
dots.ocr.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe2f149757dc55ed451461527f722dc0d4e1985e38846c53e5849c409c8ced39
|
| 3 |
+
size 752878784
|
dots.ocr.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ca492072a85f4928a492eae4e43f83476bc743027cbe9740a13fa4f13cdc2ec
|
| 3 |
+
size 980438720
|
dots.ocr.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3129f804bf97c9fa7efde16dbbb0268f66981728a8442c80032c05673320bdc0
|
| 3 |
+
size 924454592
|
dots.ocr.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d00f86cfbff280a2c4b01608e922fa0539dea5c49a9e0a178a695a3c494488d
|
| 3 |
+
size 861220544
|
dots.ocr.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5b196c49210976e26f5c2469fe3979a12009fcda9416969424258342e6a8a6e
|
| 3 |
+
size 1117319360
|
dots.ocr.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa5da019a534d6037dcdfdea10fcedd93afcc7fb437b283484c456434f9a41af
|
| 3 |
+
size 1071583424
|
dots.ocr.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0dec7a9d8c1eab4876871c802f2786d14f5a707ea25d929fde3a7c7282fbeaa0
|
| 3 |
+
size 1285492928
|
dots.ocr.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a64982c02053863abde9f19622a0115c07bd98d85aca5d121d7afe0f7e9ed037
|
| 3 |
+
size 1259172032
|
dots.ocr.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72de04dc260c86e4ea957afdc3c9439f68f14018c4c6318c67cbbd2d760dfcb3
|
| 3 |
+
size 1464177344
|
dots.ocr.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de3dbc325c17fb6cefa49b083dcc1551a2e71e1016c3dfa0a6ccb8cf5d97461a
|
| 3 |
+
size 1894530752
|
dots.ocr.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6aaed54f013e0da81ab26f35e41878ccbb093248442a78e66c24ff655074ae0b
|
| 3 |
+
size 3560414912
|