Instructions to use forkjoin-ai/glm-ocr-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 forkjoin-ai/glm-ocr-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 forkjoin-ai/glm-ocr-gguf:Q8_0 # Run inference directly in the terminal: llama cli -hf forkjoin-ai/glm-ocr-gguf:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf forkjoin-ai/glm-ocr-gguf:Q8_0 # Run inference directly in the terminal: llama cli -hf forkjoin-ai/glm-ocr-gguf:Q8_0
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 forkjoin-ai/glm-ocr-gguf:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf forkjoin-ai/glm-ocr-gguf:Q8_0
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 forkjoin-ai/glm-ocr-gguf:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf forkjoin-ai/glm-ocr-gguf:Q8_0
Use Docker
docker model run hf.co/forkjoin-ai/glm-ocr-gguf:Q8_0
- LM Studio
- Jan
- vLLM
How to use forkjoin-ai/glm-ocr-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "forkjoin-ai/glm-ocr-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "forkjoin-ai/glm-ocr-gguf", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/forkjoin-ai/glm-ocr-gguf:Q8_0
- Ollama
How to use forkjoin-ai/glm-ocr-gguf with Ollama:
ollama run hf.co/forkjoin-ai/glm-ocr-gguf:Q8_0
- Unsloth Studio
How to use forkjoin-ai/glm-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 forkjoin-ai/glm-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 forkjoin-ai/glm-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 forkjoin-ai/glm-ocr-gguf to start chatting
- Docker Model Runner
How to use forkjoin-ai/glm-ocr-gguf with Docker Model Runner:
docker model run hf.co/forkjoin-ai/glm-ocr-gguf:Q8_0
- Lemonade
How to use forkjoin-ai/glm-ocr-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull forkjoin-ai/glm-ocr-gguf:Q8_0
Run and chat with the model
lemonade run user.glm-ocr-gguf-Q8_0
List all available models
lemonade list
- Atomic Chat
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,74 +1,53 @@
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
-
license:
|
| 5 |
-
library_name:
|
| 6 |
tags:
|
| 7 |
- gguf
|
| 8 |
-
- glm
|
| 9 |
-
- ocr
|
| 10 |
-
- document
|
| 11 |
- vision
|
|
|
|
| 12 |
- affectively
|
| 13 |
-
|
| 14 |
-
- aether
|
| 15 |
-
- distributed-inference
|
| 16 |
-
- edge-deployment
|
| 17 |
-
base_model: THUDM/glm-4v-9b
|
| 18 |
-
base_model_relation: quantized
|
| 19 |
pipeline_tag: image-text-to-text
|
| 20 |
---
|
| 21 |
|
| 22 |
-
#
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
## Highlights
|
| 27 |
-
|
| 28 |
-
- **~2B parameters** — OCR-optimized model based on GLM-4V architecture. Document and scene text recognition.
|
| 29 |
-
- **~2 GB** Q4_K_M quantized — optimized for distributed edge inference
|
| 30 |
-
- **GLM-4 architecture** — proven, stable, well-tested
|
| 31 |
-
- **Aether runtime compatible** — layer-sharded across distributed nodes via [Edgework.ai](https://edgework.ai)
|
| 32 |
|
| 33 |
## Model Details
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
| Parameters | ~2B |
|
| 39 |
-
| Architecture | GLM-4 |
|
| 40 |
-
| Quantization | Q4_K_M |
|
| 41 |
-
| Format | GGUF |
|
| 42 |
-
| Size | ~2 GB |
|
| 43 |
-
| License | other |
|
| 44 |
|
| 45 |
## Usage
|
| 46 |
|
| 47 |
### With llama.cpp
|
| 48 |
|
| 49 |
```bash
|
| 50 |
-
./llama-cli -m glm-ocr-
|
| 51 |
```
|
| 52 |
|
| 53 |
-
### With
|
| 54 |
-
|
| 55 |
-
This model is deployed across the [Aether](https://github.com/affectively-ai/aether) distributed inference network. Weights are layer-sharded and distributed across multiple edge nodes for parallel inference.
|
| 56 |
-
|
| 57 |
-
## Deployment Architecture
|
| 58 |
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
-
|
|
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
library_name: llama-cpp
|
| 6 |
tags:
|
| 7 |
- gguf
|
|
|
|
|
|
|
|
|
|
| 8 |
- vision
|
| 9 |
+
- multimodal
|
| 10 |
- affectively
|
| 11 |
+
base_model: THUDM/GLM-OCR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
pipeline_tag: image-text-to-text
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# Glm Ocr
|
| 16 |
|
| 17 |
+
AFFECTIVELY conversion of [THUDM/GLM-OCR](https://huggingface.co/THUDM/GLM-OCR) to GGUF format for edge deployment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
## Model Details
|
| 20 |
|
| 21 |
+
- **Source Model**: [THUDM/GLM-OCR](https://huggingface.co/THUDM/GLM-OCR)
|
| 22 |
+
- **Format**: GGUF
|
| 23 |
+
- **Converted by**: [AFFECTIVELY](https://affectively.ai)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
## Usage
|
| 26 |
|
| 27 |
### With llama.cpp
|
| 28 |
|
| 29 |
```bash
|
| 30 |
+
./llama-cli -m glm-ocr-gguf.gguf -p "Your prompt here" -n 256
|
| 31 |
```
|
| 32 |
|
| 33 |
+
### With Ollama
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
Create a `Modelfile`:
|
| 36 |
+
```
|
| 37 |
+
FROM ./glm-ocr-gguf.gguf
|
| 38 |
+
```
|
| 39 |
|
| 40 |
+
```bash
|
| 41 |
+
ollama create glm-ocr-gguf -f Modelfile
|
| 42 |
+
ollama run glm-ocr-gguf
|
| 43 |
+
```
|
| 44 |
|
| 45 |
+
## About AFFECTIVELY
|
| 46 |
|
| 47 |
+
[AFFECTIVELY](https://affectively.ai) is an emotion intelligence platform that runs AI models at the edge -- in-browser, on-device, zero cloud cost. These converted models power the platform's real-time emotion analysis, speech recognition, and natural language capabilities.
|
| 48 |
|
| 49 |
+
All conversions are optimized for edge deployment within browser and mobile memory constraints.
|
| 50 |
|
| 51 |
+
## License
|
| 52 |
|
| 53 |
+
Apache 2.0 (follows upstream model license)
|