Skip to content

Commit 5812d8d

Browse files
committed
model filename is configurable when loading pretrained
1 parent b91ff6e commit 5812d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alphafold3_pytorch/alphafold3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3652,9 +3652,9 @@ def _from_pretrained(
36523652
token: str | bool | None,
36533653
map_location: str = 'cpu',
36543654
strict: bool = False,
3655+
model_filename: str = 'alphafold3.bin',
36553656
**model_kwargs,
36563657
):
3657-
model_filename = "alphafold3.bin"
36583658
model_file = Path(model_id) / model_filename
36593659

36603660
if not model_file.exists():

0 commit comments

Comments
 (0)