Skip to content

Commit

Permalink
switch model loading to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhie committed Apr 29, 2024
1 parent 9b4fa6d commit 1ccba71
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 1ccba71

Please sign in to comment.