Image-to-Text
Transformers
Safetensors
dots_ocr
text-generation
ocr
document-parse
layout
table
formula
quantized
4-bit precision
custom_code
bitsandbytes
Instructions to use helizac/dots.ocr-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use helizac/dots.ocr-4bit with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="helizac/dots.ocr-4bit", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("helizac/dots.ocr-4bit", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -53,8 +53,7 @@ import traceback
|
|
| 53 |
# This assumes the utility script is available in your environment
|
| 54 |
from qwen_vl_utils import process_vision_info
|
| 55 |
|
| 56 |
-
|
| 57 |
-
MODEL_ID = "[YOUR-HF-USERNAME]/dots.ocr-4bit"
|
| 58 |
|
| 59 |
print("Loading 4-bit quantized model from the Hub...")
|
| 60 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
|
| 53 |
# This assumes the utility script is available in your environment
|
| 54 |
from qwen_vl_utils import process_vision_info
|
| 55 |
|
| 56 |
+
MODEL_ID = "helizac/dots.ocr-4bit"
|
|
|
|
| 57 |
|
| 58 |
print("Loading 4-bit quantized model from the Hub...")
|
| 59 |
model = AutoModelForCausalLM.from_pretrained(
|