Fix hf-hub handling when hf-hub is config source

pull/1014/head
Ross Wightman 3 years ago
parent 5f47518f27
commit 61d3493f87

@ -125,6 +125,7 @@ def _resolve_pretrained_source(pretrained_cfg):
# hf-hub specified as source via model identifier # hf-hub specified as source via model identifier
load_from = 'hf-hub' load_from = 'hf-hub'
assert hf_hub_id assert hf_hub_id
pretrained_loc = hf_hub_id
else: else:
# default source == timm or unspecified # default source == timm or unspecified
if pretrained_file: if pretrained_file:

Loading…
Cancel
Save