How to use from
Pi
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf prithivMLmods/WeVisDoc-4B-GGUF:
Configure the model in Pi
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "llama-cpp": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "prithivMLmods/WeVisDoc-4B-GGUF:"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

WeVisDoc-4B-GGUF

WeVisDoc-4B is an end-to-end document parsing model developed by Tencent that converts page images directly into structured Markdown output, complete with LaTeX-formatted formulas and HTML tables. Fine-tuned from Qwen3-VL-4B-Instruct, it is designed specifically for document parsing (rather than being a general-purpose vision-language model) and supports both English and Chinese. The model achieves state-of-the-art results among end-to-end document parsing specialists, scoring 95.38 Overall on OmniDocBench v1.6 and a mean Overall score of 75.54 across the three PureDocBench tracks (Clean, Digital Degraded, and Real Degraded), ranking first in all four reported settings while outperforming larger models like olmOCR-2-7B. Released under the Apache 2.0 license, it can be deployed via vLLM (requiring vLLM β‰₯0.11.1) for efficient serving or run locally with Transformers, and is accompanied by a smaller 2B variant (WeVisDoc-2B) for lighter deployments.

Model Files

File Name Quant Type File Size File Link
WeVisDoc-4B.BF16.gguf BF16 8.83 GB Download
WeVisDoc-4B.F16.gguf F16 8.83 GB Download
WeVisDoc-4B.Q3_K_L.gguf Q3_K_L 2.41 GB Download
WeVisDoc-4B.Q3_K_M.gguf Q3_K_M 2.24 GB Download
WeVisDoc-4B.Q4_K_M.gguf Q4_K_M 2.72 GB Download
WeVisDoc-4B.Q4_K_S.gguf Q4_K_S 2.6 GB Download
WeVisDoc-4B.Q5_K_M.gguf Q5_K_M 3.16 GB Download
WeVisDoc-4B.Q5_K_S.gguf Q5_K_S 3.09 GB Download
WeVisDoc-4B.Q6_K.gguf Q6_K 3.63 GB Download
WeVisDoc-4B.Q8_0.gguf Q8_0 4.69 GB Download
WeVisDoc-4B.mmproj-bf16.gguf mmproj-bf16 839 MB Download
WeVisDoc-4B.mmproj-f16.gguf mmproj-f16 839 MB Download
WeVisDoc-4B.mmproj-q8_0.gguf mmproj-q8_0 454 MB Download

llama.cpp

LLM inference in C/C++ β€” https://github.com/ggml-org/llama.cpp

Downloads last month
712
GGUF
Model size
4B params
Architecture
qwen3vl
Hardware compatibility
Log In to add your hardware

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for prithivMLmods/WeVisDoc-4B-GGUF

Quantized
(4)
this model

Collection including prithivMLmods/WeVisDoc-4B-GGUF