Skip to content

Commit 2b31b88

Browse files
authored
Merge pull request #121 from artiz/claude/int8-note
docs(install): truthful note when the release hosts no layout int8
2 parents 3ca5b93 + 3aaf637 commit 2b31b88

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

scripts/install/download_dependencies.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,14 @@ if [ "$WITH_INT8" = true ]; then
202202
if [ -f models/layout_heron_int8.onnx ]; then
203203
echo "int8 models present — used by default (DOCLING_RS_FP32=1 forces full precision)"
204204
else
205-
echo "int8 assets not hosted at $BASE_URL — the fp32 models will be used."
206-
echo "To build the int8 models locally (see docs/PDF_CONFORMANCE.md):"
207-
echo " pip install onnx onnxruntime sympy pypdfium2 pillow numpy"
208-
echo " python scripts/install/quantize_models.py"
205+
echo "layout int8 not hosted at $BASE_URL — the fp32 layout model will be used"
206+
echo "(correct output, ~2.4x slower layout stage on CPU; irrelevant for GPU builds,"
207+
echo "which prefer fp32 anyway). The publish gate currently rejects the CI export's"
208+
echo "int8 quantization, and quantizing the downloaded fp32 reproduces exactly that"
209+
echo "rejected artifact — a good local int8 needs a layout model exported from"
210+
echo "source first (scripts/install/pdf_setup.sh), then the self-validating"
211+
echo " python scripts/install/quantize_models.py layout"
212+
echo "See docs/PDF_CONFORMANCE.md."
209213
fi
210214
fi
211215

0 commit comments

Comments
 (0)