Closed NielsRogge closed 2 years ago
Note that we're also fixing Transformers
to work without this (in this PR) but the fix won't be out until the next release, so this makes sure Enformer works in the meantime.
@sgugger @NielsRogge thank you for the swift de- :fly: -ing! and congrats on releasing a great feature :)
This PR fixes the
from_pretrained
method by addingbase_model_prefix
, as this makes sure weights are properly loaded from the hub.Kudos to @sgugger for finding the bug.