pub struct AgentConfig {
pub encoder: String,
pub head_layers: usize,
pub max_len: usize,
pub head_max_len: usize,
pub temperature: [f64; 3],
pub temperature_by_options: Vec<(String, f64)>,
}Expand description
Laya’s own config, rl_agent_config.json.
Fields§
§encoder: StringThe HF id of the encoder the checkpoint was trained from.
head_layers: usizeTransformer layers in the decision head.
max_len: usizeLongest sequence.
head_max_len: usizeBudget for the question head and its options.
temperature: [f64; 3]Per type temperatures, choice, score, noul.
temperature_by_options: Vec<(String, f64)>Temperatures per type and option count bucket, such as choice:3-5.
Implementations§
Source§impl AgentConfig
impl AgentConfig
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§impl Debug for AgentConfig
impl Debug for AgentConfig
Source§impl PartialEq for AgentConfig
impl PartialEq for AgentConfig
impl StructuralPartialEq for AgentConfig
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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