Downloads · 30 days
26
43% of all-time downloads
SamMikaelson/deepseek-ocr-int8-uniform
deepseek-ocr-int8-uniform is a image-text-to-text model from SamMikaelson. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
Uniformly quantized version of DeepSeek-OCR using safetensors format + JSON metadata.
Downloads · 30 days
26
43% of all-time downloads
All-time downloads
61
Public
Parameters
3.3B
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.5 GB · 100%
How the weights are stored.
I83.2B · 95%
From the Hugging Face model README
Uniformly quantized version of DeepSeek-OCR using safetensors format + JSON metadata.
from model_loader import load_quantized_model
model = load_quantized_model(
"SamMikaelson/deepseek-ocr-int8-uniform",
device="cuda"
)
# Model is ready to use!
# Memory footprint: ~3352 MB
import torch
from safetensors.torch import load_file
import json
# Load weights
state_dict = load_file("model.safetensors")
# Load metadata
with open("quantization_config.json") as f:
metadata = json.load(f)
# Reconstruct model (see model_loader.py for details)
model.safetensors # 3352 MB - All weights (compressed)
quantization_config.json # Layer metadata (bits, shapes)
config.json # Model config
quantization.py # QuantizedLinear layer
model_loader.py # Loading utilities
import json
with open("quantization_config.json") as f:
config = json.load(f)
print(f"Quantized layers: {len(config['quantized_layers'])}")
print(f"Compression: {config['stats']['compression_ratio']}x")
MIT (inherited from DeepSeek-OCR)