config.json consistency check mismatch during model download (expected size != actual size)

#1
by Lwenq - opened

When loading the model, the download process fails with a consistency check error for config.json. The client expects one file size from metadata, but the
downloaded file has a different size, which aborts model initialization.

Example error:
OSError: Consistency check failed: file should be of size 144 but has size 729 (config.json).

This appears to be a cache/download inconsistency issue (often after interrupted/resumed downloads), and it blocks from_pretrained() from loading the model.

Sign up or log in to comment