Skip to content

Commit 2670c74

Browse files
authored
Fix model loading (#100)
* match regex to the correct string * update version
1 parent 63555e1 commit 2670c74

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

evo/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def load_checkpoint(
8484
model_config = AutoConfig.from_pretrained(
8585
hf_model_name,
8686
trust_remote_code=True,
87-
revision='1.1_fix' if re.match(r'evo-1-.*-base', hf_model_name) else 'main',
87+
revision='1.1_fix' if re.match(r'evo-1-.*-base', model_name) else 'main',
8888
)
8989
model_config.use_cache = True
9090

@@ -94,7 +94,7 @@ def load_checkpoint(
9494
hf_model_name,
9595
config=model_config,
9696
trust_remote_code=True,
97-
revision='1.1_fix' if re.match(r'evo-1-.*-base', hf_model_name) else 'main',
97+
revision='1.1_fix' if re.match(r'evo-1-.*-base', model_name) else 'main',
9898
)
9999

100100
# Load model state dict & cleanup.

evo/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = '0.2.1'
1+
version = '0.3'

0 commit comments

Comments
 (0)