I’m following the quick overview at docs.fast.ai/text.html and got an SSLError of ‘certificate verify failed’ when running:
learn = language_model_learner(data_lm, AWD_LSTM, drop_mult=0.5)
probably because of a bad interaction between my company firewall and the amazonaws SSL certificate management.
My question is:
Is there a way I can load the pre-trained weights from a local file rather than going through the amazonaws URL?
I’ve tried specifying the parameter pretrained_fnames as in this old topic but then got a “missing 1 required positional argument: ‘arch’” error, so it seems I need to specify the local file path directly in the value of the arch parameter somehow - alas, I couldn’t figure out how.