Unverified Commit 3bec3e9b authored by Jennifer Wei's avatar Jennifer Wei Committed by GitHub
Browse files

Merge pull request #438 from jnwei/pl_upgrades

Upgrades pl_upgrades to match main branch changes.
parents 49ab0539 c07075cf
...@@ -114,8 +114,7 @@ def tree_map(fn, tree, leaf_type): ...@@ -114,8 +114,7 @@ def tree_map(fn, tree, leaf_type):
elif isinstance(tree, leaf_type): elif isinstance(tree, leaf_type):
return fn(tree) return fn(tree)
else: else:
print(type(tree)) raise ValueError(f"Tree of type {type(tree)} not supported")
raise ValueError("Not supported")
tensor_tree_map = partial(tree_map, leaf_type=torch.Tensor) tensor_tree_map = partial(tree_map, leaf_type=torch.Tensor)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/bin/bash #!/bin/bash
# #
# Copyright 2021 DeepMind Technologies Limited # Copyright 2024 AlQuraishi Laboratory
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
# Downloads OpenFold parameters. # Downloads OpenFold SoloSeq (single sequence model) parameters.
# #
# Usage: bash download_openfold_params_huggingface.sh /path/to/download/directory # Usage: bash download_openfold_soloseq_params.sh /path/to/download/directory
set -e set -e
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -202,4 +202,4 @@ class TestModel(unittest.TestCase): ...@@ -202,4 +202,4 @@ class TestModel(unittest.TestCase):
out_repro = out_repro["sm"]["positions"][-1] out_repro = out_repro["sm"]["positions"][-1]
out_repro = out_repro.squeeze(0) out_repro = out_repro.squeeze(0)
self.assertTrue(torch.max(torch.abs(out_gt - out_repro)) < 1e-3) compare_utils.assert_mean_abs_diff_small(out_gt, out_repro, 1e-3)
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment