Files
foundry/models/rfd3/configs/inference_engine/rfdiffusion3.yaml
Jasper Butcher 54a8d721c1 Expose n_recycle as inference sampler parameter (#259)
* Expose n_recycle as inference sampler parameter and improve docs

The n_recycle parameter was previously hardcoded in the diffusion module
config and not overridable at inference time. This exposes it through the
inference sampler so users can control recycling iterations via CLI
(e.g. inference_sampler.n_recycle=3). Also adds num_timesteps and
n_recycle to the "Other CLI Options" docs section, and makes the
InputSpecification reference more prominent in the README.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-04 16:37:44 -07:00

69 lines
2.2 KiB
YAML

# @package _global_
defaults:
- base
- _self_
_target_: rfd3.engine.RFD3InferenceEngine
out_dir: ???
inputs: ??? # null, json, pdb or
ckpt_path: rfd3
json_keys_subset: null
skip_existing: True
#########################################################
# Design spec args: overrides args from input json
specification: {}
#########################################################
# Diffusion args
diffusion_batch_size: 8
n_batches: 1
# Inference sampler args | set to None to use the default in the checkpoint's config
inference_sampler:
kind: "default" # "default" or "symmetry" to choose the sampler
# Classifier-free guidance args:
cfg_features: # set to 0 in the reference CFG step
- active_donor
- active_acceptor
- ref_atomwise_rasa
use_classifier_free_guidance: False
cfg_t_max: null # max t to apply cfg guidance
cfg_scale: 1.5
center_option: "all" # Options are ["all", "motif", "diffuse"]
s_trans: 1.0 # Translational noise scale for augmentation during inference
inference_noise_scaling_factor: 1.0
allow_realignment: False
# Recycling
n_recycle: null # Override model default n_recycle for inference (default from checkpoint: 2)
# Diffusion args:
num_timesteps: 200
step_scale: 1.5 # 1.5 - 1.0 | Higher values lead to less diverse, more designable, structures
noise_scale: 1.003
p: 7
gamma_0: 0.6 # Previously 1.0 | 0.0 for ODE sampling
gamma_min: 1.0
s_jitter_origin: 0.0 # Sigma of gaussian noise to jitter the motif offset (equivalent to ORI token Jitter)
# Saving args
cleanup_guideposts: True
cleanup_virtual_atoms: True
read_sequence_from_sequence_head: True
output_full_json: True
# Prefix to add to all output samples
# Default: None -> f'{jsonfilebasename}_{jsonkey}_{batch}_{model}'
# Otherwise: string -> f'{string}{jsonkey}_{batch}_{model}'
# e.g. Empty string -> f'{jsonkey}_{batch}_{model}'
# e.g. Chunk string -> f'{chunkprefix_}{jsonkey}_{batch}_{model}' (pipelines usage)
global_prefix: null
dump_prediction_metadata_json: True
dump_trajectories: False
align_trajectory_structures: False
prevalidate_inputs: False
low_memory_mode: False # False for standard mode, True for memory efficient tokenization mode