#[non_exhaustive]pub struct PreTunedModel {
pub tuned_model_name: String,
pub checkpoint_id: String,
pub base_model: String,
/* private fields */
}Available on crate feature
gen-ai-tuning-service only.Expand description
A pre-tuned model for continuous tuning.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tuned_model_name: StringThe resource name of the Model. E.g., a model resource name with a specified version id or alias:
projects/{project}/locations/{location}/models/{model}@{version_id}
projects/{project}/locations/{location}/models/{model}@{alias}
Or, omit the version id to use the default version:
projects/{project}/locations/{location}/models/{model}
checkpoint_id: StringOptional. The source checkpoint id. If not specified, the default checkpoint will be used.
base_model: StringOutput only. The name of the base model this PreTunedModel was tuned from.
Implementations§
Source§impl PreTunedModel
impl PreTunedModel
pub fn new() -> Self
Sourcepub fn set_tuned_model_name<T: Into<String>>(self, v: T) -> Self
pub fn set_tuned_model_name<T: Into<String>>(self, v: T) -> Self
Sets the value of tuned_model_name.
§Example
ⓘ
let x = PreTunedModel::new().set_tuned_model_name("example");Sourcepub fn set_checkpoint_id<T: Into<String>>(self, v: T) -> Self
pub fn set_checkpoint_id<T: Into<String>>(self, v: T) -> Self
Sets the value of checkpoint_id.
§Example
ⓘ
let x = PreTunedModel::new().set_checkpoint_id("example");Sourcepub fn set_base_model<T: Into<String>>(self, v: T) -> Self
pub fn set_base_model<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for PreTunedModel
impl Clone for PreTunedModel
Source§fn clone(&self) -> PreTunedModel
fn clone(&self) -> PreTunedModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreTunedModel
impl Debug for PreTunedModel
Source§impl Default for PreTunedModel
impl Default for PreTunedModel
Source§fn default() -> PreTunedModel
fn default() -> PreTunedModel
Returns the “default value” for a type. Read more
Source§impl Message for PreTunedModel
impl Message for PreTunedModel
Source§impl PartialEq for PreTunedModel
impl PartialEq for PreTunedModel
impl StructuralPartialEq for PreTunedModel
Auto Trait Implementations§
impl Freeze for PreTunedModel
impl RefUnwindSafe for PreTunedModel
impl Send for PreTunedModel
impl Sync for PreTunedModel
impl Unpin for PreTunedModel
impl UnwindSafe for PreTunedModel
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