HF_HUB_OFFLINE
environment variable not being honoured for Neuron cache
#741
Labels
bug
Something isn't working
System Info
Docker Image:
Who can help?
@michaelbenayoun
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction (minimal, reproducible, runnable)
Running any custom model where the Neuron compilation needs to run again, the script attempts to synchronize the cache with the
aws-neuron
repo.However, if
HF_HUB_OFFLINE
is set - this sync should not happenThis issue wasn't there on an earlier version, when using
optimum-neuron==0.0.22
Expected behavior
No API calls to the Hub is made when
HF_HUB_OFFLINE
is set -huggingface_hub.errors.OfflineModeIsEnabled
should be handled.This was already being handled in an earlier version,
optimum-neuron==0.0.22
The text was updated successfully, but these errors were encountered: