Skip to content
Open
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: 1 addition & 0 deletions config/inference/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ inference:
model_only_neighbors: False
output_prefix: samples/design
write_trajectory: True
empty_cache_per_design: False
scaffold_guided: False
model_runner: SelfConditioning
cautious: True
Expand Down
3 changes: 3 additions & 0 deletions scripts/run_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def main(conf: HydraConfig) -> None:
chain_ids=sampler.chain_idx,
)

if conf.inference.empty_cache_per_design and torch.cuda.is_available():
torch.cuda.empty_cache()

log.info(f"Finished design in {(time.time()-start_time)/60:.2f} minutes")


Expand Down
Loading