pub struct PipelineRefinement {
pub scheduler_classes: HashSet<String>,
pub timestep_spacing: Option<String>,
pub name_signals: HashSet<String>,
pub param_overrides: Vec<ParamSpec>,
}Expand description
A conditional parameter override applied to a family when the model’s scheduler (and optionally its repo name) matches — e.g. the SDXL “turbo” low-step preset.
Fields§
§scheduler_classes: HashSet<String>Scheduler _class_names this refinement applies to.
timestep_spacing: Option<String>A required timestep_spacing, if the refinement is spacing-specific.
name_signals: HashSet<String>Repo-name tokens that must be present (any one), if name-gated.
param_overrides: Vec<ParamSpec>The parameter specs to overlay (replacing by key, or appending).
Implementations§
Source§impl PipelineRefinement
impl PipelineRefinement
Sourcepub fn matches(&self, facts: &SchedulerFacts, repo_hint: Option<&str>) -> bool
pub fn matches(&self, facts: &SchedulerFacts, repo_hint: Option<&str>) -> bool
Whether this refinement applies given the scheduler facts and an optional
repo_hint. The scheduler class must match; a set timestep_spacing must
match; and if any name_signals are declared, a token of repo_hint must
be among them.
Trait Implementations§
Source§impl Clone for PipelineRefinement
impl Clone for PipelineRefinement
Source§impl Debug for PipelineRefinement
impl Debug for PipelineRefinement
Source§impl PartialEq for PipelineRefinement
impl PartialEq for PipelineRefinement
impl StructuralPartialEq for PipelineRefinement
Auto Trait Implementations§
impl Freeze for PipelineRefinement
impl RefUnwindSafe for PipelineRefinement
impl Send for PipelineRefinement
impl Sync for PipelineRefinement
impl Unpin for PipelineRefinement
impl UnsafeUnpin for PipelineRefinement
impl UnwindSafe for PipelineRefinement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more