Skip to content

Commit 78642e6

Browse files
committed
Fixed config [skip ci]
1 parent cb1b3d4 commit 78642e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/informers/models.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def self.from_pretrained(
132132
model_name = MODEL_CLASS_TO_NAME_MAPPING[self]
133133
model_type = MODEL_TYPE_MAPPING[model_name]
134134

135-
config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **options)
135+
config ||= AutoConfig.from_pretrained(pretrained_model_name_or_path, **options)
136136

137137
if model_type == MODEL_TYPES[:DecoderOnly]
138138
info = [

0 commit comments

Comments
 (0)