Skip to content

Commit

Permalink
Merge pull request #55 from evo-design/model_version1.1
Browse files Browse the repository at this point in the history
Load fixed Evo v1.1 model checkpoint
  • Loading branch information
Zymrael authored Apr 29, 2024
2 parents 9b4fa6d + 1ccba71 commit 8142b68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion evo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ def load_checkpoint(

# Load model config.

model_config = AutoConfig.from_pretrained(hf_model_name, trust_remote_code=True)
model_config = AutoConfig.from_pretrained(
hf_model_name,
trust_remote_code=True,
revision='1.1_fix',
)
model_config.use_cache = True

# Load model.
Expand All @@ -80,6 +84,7 @@ def load_checkpoint(
hf_model_name,
config=model_config,
trust_remote_code=True,
revision='1.1_fix',
)

# Load model state dict & cleanup.
Expand Down
2 changes: 1 addition & 1 deletion evo/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '0.1.1'
version = '0.1.2'

0 comments on commit 8142b68

Please sign in to comment.