pub struct CampaignConfig {Show 14 fields
pub space: ConfigurationSpace,
pub model_path: String,
pub quantization: String,
pub prompt: String,
pub decode_tokens: u32,
pub warm_repeats: u32,
pub budget: usize,
pub batch_size: usize,
pub profile: ApplicationProfileWeight,
pub improvement_threshold: f64,
pub jsonl_path: Option<PathBuf>,
pub belief_path: Option<PathBuf>,
pub with_quality: bool,
pub max_duration: Option<Duration>,
}Expand description
Configuration for an optimization campaign.
Fields§
§space: ConfigurationSpaceThe configuration space to search over.
model_path: StringModel path for benchmarking.
quantization: StringQuantization label.
prompt: StringPrompt for quality evaluation.
decode_tokens: u32Decode token budget (0 = production default).
warm_repeats: u32Warm repeats for benchmark.
budget: usizeTotal evaluation budget (number of trials).
batch_size: usizeBatch size: after each batch, recompute frontier + update beliefs.
profile: ApplicationProfileWeightApplication profile for best-config selection.
improvement_threshold: f64Improvement threshold for verdict evaluation (e.g. 0.20 = 20%).
jsonl_path: Option<PathBuf>Optional path to persist JSONL experiment log.
belief_path: Option<PathBuf>Optional path to persist belief graph JSON.
with_quality: boolUse quality verification (decode_with_metrics + verify_and_heal_turn). If false, uses run_bench only (faster but no quality score).
max_duration: Option<Duration>Max wall-clock duration for the campaign.
Implementations§
Source§impl CampaignConfig
impl CampaignConfig
Sourcepub fn new(
space: ConfigurationSpace,
model_path: impl Into<String>,
budget: usize,
) -> Self
pub fn new( space: ConfigurationSpace, model_path: impl Into<String>, budget: usize, ) -> Self
Create a campaign config with sensible defaults.
pub fn with_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_profile(self, profile: ApplicationProfileWeight) -> Self
pub fn with_quality(self, quality: bool) -> Self
pub fn with_jsonl_log(self, path: impl Into<PathBuf>) -> Self
pub fn with_belief_log(self, path: impl Into<PathBuf>) -> Self
pub fn with_batch_size(self, batch: usize) -> Self
pub fn with_max_duration(self, dur: Duration) -> Self
Trait Implementations§
Source§impl Clone for CampaignConfig
impl Clone for CampaignConfig
Source§fn clone(&self) -> CampaignConfig
fn clone(&self) -> CampaignConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CampaignConfig
impl RefUnwindSafe for CampaignConfig
impl Send for CampaignConfig
impl Sync for CampaignConfig
impl Unpin for CampaignConfig
impl UnsafeUnpin for CampaignConfig
impl UnwindSafe for CampaignConfig
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more