Image-Text-to-Text
Transformers
GGUF
English
qwen2_5_vl
ggml
llama.cpp
text-generation-inference
OCR
pdf2markdown
image-to-text
Instructions to use prithivMLmods/Nanonets-OCR-s-AIO-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Nanonets-OCR-s-AIO-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/Nanonets-OCR-s-AIO-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/Nanonets-OCR-s-AIO-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/Nanonets-OCR-s-AIO-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 prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/Nanonets-OCR-s-AIO-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 prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/Nanonets-OCR-s-AIO-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Nanonets-OCR-s-AIO-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Nanonets-OCR-s-AIO-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/Nanonets-OCR-s-AIO-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "prithivMLmods/Nanonets-OCR-s-AIO-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Nanonets-OCR-s-AIO-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "prithivMLmods/Nanonets-OCR-s-AIO-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Nanonets-OCR-s-AIO-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use prithivMLmods/Nanonets-OCR-s-AIO-GGUF with Ollama:
ollama run hf.co/prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use prithivMLmods/Nanonets-OCR-s-AIO-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/Nanonets-OCR-s-AIO-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/Nanonets-OCR-s-AIO-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Nanonets-OCR-s-AIO-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse files- .gitattributes +14 -0
- Nanonets-OCR-s.IQ4_XS.gguf +3 -0
- Nanonets-OCR-s.Q2_K.gguf +3 -0
- Nanonets-OCR-s.Q3_K_L.gguf +3 -0
- Nanonets-OCR-s.Q3_K_M.gguf +3 -0
- Nanonets-OCR-s.Q3_K_S.gguf +3 -0
- Nanonets-OCR-s.Q4_K_M.gguf +3 -0
- Nanonets-OCR-s.Q4_K_S.gguf +3 -0
- Nanonets-OCR-s.Q5_K_M.gguf +3 -0
- Nanonets-OCR-s.Q5_K_S.gguf +3 -0
- Nanonets-OCR-s.Q6_K.gguf +3 -0
- Nanonets-OCR-s.Q8_0.gguf +3 -0
- Nanonets-OCR-s.f16.gguf +3 -0
- Nanonets-OCR-s.mmproj-Q8_0.gguf +3 -0
- Nanonets-OCR-s.mmproj-f16.gguf +3 -0
- README.md +74 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,17 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Nanonets-OCR-s.mmproj-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Nanonets-OCR-s.mmproj-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Nanonets-OCR-s.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Nanonets-OCR-s.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Nanonets-OCR-s.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Nanonets-OCR-s.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Nanonets-OCR-s.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Nanonets-OCR-s.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Nanonets-OCR-s.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Nanonets-OCR-s.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Nanonets-OCR-s.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Nanonets-OCR-s.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Nanonets-OCR-s.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
Nanonets-OCR-s.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
Nanonets-OCR-s.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95e1964ac1aad2f0d890a1db1fe63c96d834661f967ca3b2f138f0b006a568f0
|
| 3 |
+
size 1753182976
|
Nanonets-OCR-s.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7fb9726e00e46855300bbabcfdc581c065ad2c5204ab9da0c754f27d8634cab
|
| 3 |
+
size 1274753792
|
Nanonets-OCR-s.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:173e2303fef6c5e9dbe7fe08c08882590aa0cda4fe324862203b18537530217b
|
| 3 |
+
size 1707389696
|
Nanonets-OCR-s.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50c14e7b274c5077c5b1599d68fad108b6b6ec6a65b3992853745bdc7b5adf4c
|
| 3 |
+
size 1590473472
|
Nanonets-OCR-s.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0000459b5d90fdc295cc45acc51b20a20857c7d091eb63303eb8f77dfc2ee49e
|
| 3 |
+
size 1454355200
|
Nanonets-OCR-s.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32f3f6257b7f1ae86ff6086a03c4713bd8d5f0b30bcb0ee8565cd157ef5d9313
|
| 3 |
+
size 1929900800
|
Nanonets-OCR-s.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe976722f2be80f3673405285e21d5e10c1bc0523cceeb84e6ef61abe0143b04
|
| 3 |
+
size 1834382080
|
Nanonets-OCR-s.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b01959eda5f69dafa8ed3ad61a80bbbaf041fc26d4aee454f0527d2bfab1403b
|
| 3 |
+
size 2224812800
|
Nanonets-OCR-s.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62e2ac86c55403d3b6d53ef5a26d9eef5b3292b46e3062f9a90269d90ed00b04
|
| 3 |
+
size 2169664256
|
Nanonets-OCR-s.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12c01abdcd8c927f1320af426118beee9b74b5d6a0487bb086dd417e790178fd
|
| 3 |
+
size 2538156800
|
Nanonets-OCR-s.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c951382943187ebe03e89e4c388f6b4e11050b321b9eb8fda19c4407402e05c0
|
| 3 |
+
size 3285474048
|
Nanonets-OCR-s.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15af5866418275d8520a490197d0b414cdfb373a9199a3efce0bb814e6cc9b53
|
| 3 |
+
size 6178315008
|
Nanonets-OCR-s.mmproj-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cac4b0879f12b67ab882a9e5f0e3aac7e4e9106ce6dc0bccfc40e838f24ea7ad
|
| 3 |
+
size 844758080
|
Nanonets-OCR-s.mmproj-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4cc49e5ff07c868b43c7b0fee13da9e16a1547372b21e810b8a26903680757ce
|
| 3 |
+
size 1338428480
|
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: nanonets/Nanonets-OCR-s
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
library_name: transformers
|
| 6 |
+
license: apache-2.0
|
| 7 |
+
mradermacher:
|
| 8 |
+
readme_rev: 1
|
| 9 |
+
quantized_by: mradermacher
|
| 10 |
+
tags:
|
| 11 |
+
- OCR
|
| 12 |
+
- pdf2markdown
|
| 13 |
+
---
|
| 14 |
+
## About
|
| 15 |
+
|
| 16 |
+
<!-- ### quantize_version: 2 -->
|
| 17 |
+
<!-- ### output_tensor_quantised: 1 -->
|
| 18 |
+
<!-- ### convert_type: hf -->
|
| 19 |
+
<!-- ### vocab_type: -->
|
| 20 |
+
<!-- ### tags: -->
|
| 21 |
+
static quants of https://huggingface.co/nanonets/Nanonets-OCR-s
|
| 22 |
+
|
| 23 |
+
<!-- provided-files -->
|
| 24 |
+
|
| 25 |
+
***For a convenient overview and download list, visit our [model page for this model](https://hf.tst.eu/model#Nanonets-OCR-s-GGUF).***
|
| 26 |
+
|
| 27 |
+
weighted/imatrix quants are available at https://huggingface.co/mradermacher/Nanonets-OCR-s-i1-GGUF
|
| 28 |
+
## Usage
|
| 29 |
+
|
| 30 |
+
If you are unsure how to use GGUF files, refer to one of [TheBloke's
|
| 31 |
+
READMEs](https://huggingface.co/TheBloke/KafkaLM-70B-German-V0.1-GGUF) for
|
| 32 |
+
more details, including on how to concatenate multi-part files.
|
| 33 |
+
|
| 34 |
+
## Provided Quants
|
| 35 |
+
|
| 36 |
+
(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)
|
| 37 |
+
|
| 38 |
+
| Link | Type | Size/GB | Notes |
|
| 39 |
+
|:-----|:-----|--------:|:------|
|
| 40 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.mmproj-Q8_0.gguf) | mmproj-Q8_0 | 0.9 | multi-modal supplement |
|
| 41 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q2_K.gguf) | Q2_K | 1.4 | |
|
| 42 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.mmproj-f16.gguf) | mmproj-f16 | 1.4 | multi-modal supplement |
|
| 43 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q3_K_S.gguf) | Q3_K_S | 1.6 | |
|
| 44 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q3_K_M.gguf) | Q3_K_M | 1.7 | lower quality |
|
| 45 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q3_K_L.gguf) | Q3_K_L | 1.8 | |
|
| 46 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.IQ4_XS.gguf) | IQ4_XS | 1.9 | |
|
| 47 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q4_K_S.gguf) | Q4_K_S | 1.9 | fast, recommended |
|
| 48 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q4_K_M.gguf) | Q4_K_M | 2.0 | fast, recommended |
|
| 49 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q5_K_S.gguf) | Q5_K_S | 2.3 | |
|
| 50 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q5_K_M.gguf) | Q5_K_M | 2.3 | |
|
| 51 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q6_K.gguf) | Q6_K | 2.6 | very good quality |
|
| 52 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.Q8_0.gguf) | Q8_0 | 3.4 | fast, best quality |
|
| 53 |
+
| [GGUF](https://huggingface.co/mradermacher/Nanonets-OCR-s-GGUF/resolve/main/Nanonets-OCR-s.f16.gguf) | f16 | 6.3 | 16 bpw, overkill |
|
| 54 |
+
|
| 55 |
+
Here is a handy graph by ikawrakow comparing some lower-quality quant
|
| 56 |
+
types (lower is better):
|
| 57 |
+
|
| 58 |
+

|
| 59 |
+
|
| 60 |
+
And here are Artefact2's thoughts on the matter:
|
| 61 |
+
https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9
|
| 62 |
+
|
| 63 |
+
## FAQ / Model Request
|
| 64 |
+
|
| 65 |
+
See https://huggingface.co/mradermacher/model_requests for some answers to
|
| 66 |
+
questions you might have and/or if you want some other model quantized.
|
| 67 |
+
|
| 68 |
+
## Thanks
|
| 69 |
+
|
| 70 |
+
I thank my company, [nethype GmbH](https://www.nethype.de/), for letting
|
| 71 |
+
me use its servers and providing upgrades to my workstation to enable
|
| 72 |
+
this work in my free time.
|
| 73 |
+
|
| 74 |
+
<!-- end -->
|