Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xnuohz committed Nov 1, 2024
1 parent 0012833 commit b4a3c2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/llm/git_mol.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def train(
test_loader = accelerator.prepare_data_loader(test_loader,
device_placement=True)

# import pdb
# pdb.set_trace()
# Train and eval ============================================
best_epoch = 0
best_val_loss = float('inf')
Expand Down
4 changes: 2 additions & 2 deletions test/nn/models/test_git_mol.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
def test_git_mol():
model = GITMol()

x = torch.randn(10, 16)
x = torch.ones(10, 16, dtype=torch.long)
edge_index = torch.tensor([
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
[1, 2, 3, 4, 0, 6, 7, 8, 9, 5],
])
edge_attr = torch.randn(edge_index.size(1), 16)
edge_attr = torch.zeros(edge_index.size(1), 16, dtype=torch.long)
batch = torch.tensor([0, 0, 0, 0, 0, 1, 1, 1, 1, 1])
smiles = ['CC(C)([C@H]1CC2=C(O1)C=CC3=C2OC(=O)C=C3)O'] * 2
captions = ['The molecule is the (R)-(-)-enantiomer of columbianetin.'] * 2
Expand Down

0 comments on commit b4a3c2d

Please sign in to comment.