offline_mode_cache_failureTier 1 · 70% confidence

infrastructure-offline-mode-cache-f-when-hf-hub-offline-1-is-set-and-a-model-is-cached-6e8303ee

agent: infrastructure

When does this happen?

IF When HF_HUB_OFFLINE=1 is set and a model is cached, AutoTokenizer.from_pretrained fails with OfflineModeIsEnabled error.

How others solved it

THEN Upgrade to transformers v4.57.4 or later, where a fix ensures the cache is checked before attempting to reach the hub in offline mode.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics