Instructions to use noctrex/LightOnOCR-2-1B-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 noctrex/LightOnOCR-2-1B-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 noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf noctrex/LightOnOCR-2-1B-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 noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf noctrex/LightOnOCR-2-1B-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 noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf noctrex/LightOnOCR-2-1B-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 noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use noctrex/LightOnOCR-2-1B-GGUF with Ollama:
ollama run hf.co/noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M
- Unsloth Studio
How to use noctrex/LightOnOCR-2-1B-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 noctrex/LightOnOCR-2-1B-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 noctrex/LightOnOCR-2-1B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for noctrex/LightOnOCR-2-1B-GGUF to start chatting
- Docker Model Runner
How to use noctrex/LightOnOCR-2-1B-GGUF with Docker Model Runner:
docker model run hf.co/noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M
- Lemonade
How to use noctrex/LightOnOCR-2-1B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull noctrex/LightOnOCR-2-1B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LightOnOCR-2-1B-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Add files using upload-large-folder tool
Browse files- .gitattributes +12 -0
- LightOnOCR-2-1B-BF16.gguf +3 -0
- LightOnOCR-2-1B-F16.gguf +3 -0
- LightOnOCR-2-1B-IQ4_NL.gguf +3 -0
- LightOnOCR-2-1B-IQ4_XS.gguf +3 -0
- LightOnOCR-2-1B-Q4_K_M.gguf +3 -0
- LightOnOCR-2-1B-Q5_K_M.gguf +3 -0
- LightOnOCR-2-1B-Q6_K.gguf +3 -0
- LightOnOCR-2-1B-Q8_0.gguf +3 -0
- README.md +12 -0
- imatrix.gguf +3 -0
- mmproj-BF16.gguf +3 -0
- mmproj-F16.gguf +3 -0
- mmproj-F32.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ 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 |
+
imatrix.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
LightOnOCR-2-1B-BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
LightOnOCR-2-1B-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
LightOnOCR-2-1B-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
LightOnOCR-2-1B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
LightOnOCR-2-1B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
LightOnOCR-2-1B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
LightOnOCR-2-1B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
LightOnOCR-2-1B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
mmproj-BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
mmproj-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
mmproj-F32.gguf filter=lfs diff=lfs merge=lfs -text
|
LightOnOCR-2-1B-BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72048ae42e608f76e2bef31f1a84d1389b0cd5e2bb664241abd69eb8a8ace86d
|
| 3 |
+
size 1198179040
|
LightOnOCR-2-1B-F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cbee6bce16ae62ed6a98e8e358ba373215154c889f981cf1b1bf4c3d311c5e7
|
| 3 |
+
size 1198179040
|
LightOnOCR-2-1B-IQ4_NL.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0a5416d423c9d1ab44bf817295eae6842ccbdb8cdf6c0cbd60461888a81cbbb
|
| 3 |
+
size 381562816
|
LightOnOCR-2-1B-IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53d8be01ad7502d7542b12e5213eace44e3211153e0182d0619f1c67c5327fc8
|
| 3 |
+
size 367800256
|
LightOnOCR-2-1B-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de6fbbcf4ec11451cc10955ddaf05dcd9f5bcb207a7f993af429f4fca41b992b
|
| 3 |
+
size 396701632
|
LightOnOCR-2-1B-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7faae1c49d77e74739620022e9f04d133a046f5be50e267840d8fc798c0037e8
|
| 3 |
+
size 444411840
|
LightOnOCR-2-1B-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08a5a0ed57cf592c4f988543e32e5b7c1df5870f15476acb87d823ef60c65c3e
|
| 3 |
+
size 495103936
|
LightOnOCR-2-1B-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:062cc44af0b922f016b1f73672389087494a893a4cc6f716b672f5c45ffbf000
|
| 3 |
+
size 639443680
|
README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: image-to-text
|
| 3 |
+
base_model: lightonai/LightOnOCR-2-1B
|
| 4 |
+
---
|
| 5 |
+
This are the quantizations of the model [LightOnOCR-2-1B](https://huggingface.co/lightonai/LightOnOCR-2-1B)
|
| 6 |
+
|
| 7 |
+
Try to use the best quality you can run.
|
| 8 |
+
|
| 9 |
+
Quality order: BF16 > F16 > Q8_0 > Q6_K > Q5_K_M > IQ4_NL > IQ4_XS > Q4_K_M
|
| 10 |
+
|
| 11 |
+
For the mmproj, try to use the F32 version as it will produce the best results.
|
| 12 |
+
Quality order: F32 > BF16 > F16
|
imatrix.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c790a393cf5f99ec47736ea3ea046336cbae64bd8e72149b56047cdf0bb3d3f8
|
| 3 |
+
size 1177056
|
mmproj-BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b30a935ce0d3d971e5323bf27d8b660f7b8c940f27a1f1c74c158c9b90b79875
|
| 3 |
+
size 828905856
|
mmproj-F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b016fb4fcfdefb61e128ddea069b1b3b1dec9d8a5f572bd1418189a37f4af2cb
|
| 3 |
+
size 819313024
|
mmproj-F32.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6288499e8f11d487248c0ae7a550b81b1aa55d41277d5e483b60f6115529f828
|
| 3 |
+
size 1638406528
|