Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/sampleworks/cli/guidance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

import sys
from loguru import logger

from sampleworks.utils.guidance_script_arguments import GuidanceConfig

Expand Down
4 changes: 1 addition & 3 deletions src/sampleworks/core/samplers/edm.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,8 @@ def step(
# t_hat will be float if check_context didn't raise
# Use no_grad when gradients aren't needed to avoid memory overhead from
# gradient checkpointing holding intermediate activations
# TODO testing adding eps to signature for use with Protpardelle-1c, if successful,
# I need to modify the Protocol itself. @Michael Anzuoni
with torch.set_grad_enabled(allow_gradients):
x_hat_0 = model_wrapper.step(noisy_state, t_hat, eps, features=features)
x_hat_0 = model_wrapper.step(noisy_state, t_hat, features=features)

reconciler = (
context.reconciler.to(torch.as_tensor(x_hat_0).device)
Expand Down
3 changes: 1 addition & 2 deletions src/sampleworks/models/protpardelle/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def featurize(self, structure: dict) -> GenerativeModelInput[ProtpardelleConditi

def _atom37_indices_from_atom_array(
self, atom_array
) -> tuple[Int[Tensor, "atoms"], Int[Tensor, "atoms"]]:
) -> tuple[Int[Tensor, " atoms"], Int[Tensor, " atoms"]]:
"""Derive per-atom atom37 destination indices from an Atomworks atom array.

For each atom in ``atom_array`` (the order the sampler's flat ``x_t``
Expand Down Expand Up @@ -636,7 +636,6 @@ def step(
self,
x_t: Float[Tensor, "batch atoms 3"],
t: Float[Tensor, "*batch"] | float,
sigma_float: float,
*,
features: GenerativeModelInput[ProtpardelleConditioning] | None = None,
) -> Float[Tensor, "batch atoms 3"]:
Expand Down
3 changes: 2 additions & 1 deletion tests/runs/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ def test_dry_run_does_not_create_directories(
"""--dry-run prints commands but never touches the filesystem."""
monkeypatch.setenv("HOME", str(tmp_path))
results_dir = tmp_path / "results"
preset = loader.load_preset("rf3_partial", overrides=["jobs.0.gpu_count=1"]) # use 1 gpu so we don't need big nodes to test
# use 1 gpu so we don't need big nodes to test
preset = loader.load_preset("rf3_partial", overrides=["jobs.0.gpu_count=1"])
runner.run(preset, results_dir=results_dir, dry_run=True)
# results_dir gets created by run() (for log file location) but per-job
# output subdirs must NOT exist after dry-run.
Expand Down