Understand DocStrange model hosting infrastructure
mainDocStrange uses a dual-layer hosting system for its models to ensure high availability and speed:
- Primary (S3): Models are hosted in the Nanonets S3 bucket (
public-vlms). This is the preferred method because it is faster and requires no authentication. - Fallback (Hugging Face Hub): If the S3 download fails, the system automatically falls back to the original source on the Hugging Face Hub. Note that some models may require authentication when accessed via Hugging Face.
The ModelDownloader class manages this logic automatically, providing graceful degradation if a model cannot be reached via either source.