Struct google_api_proto::google::cloud::aiplatform::v1beta1::DistillationSpec
source · pub struct DistillationSpec {
pub training_dataset_uri: String,
pub validation_dataset_uri: Option<String>,
pub hyper_parameters: Option<DistillationHyperParameters>,
pub student_model: String,
pub pipeline_root_directory: String,
pub teacher_model: Option<TeacherModel>,
}
Expand description
Tuning Spec for Distillation.
Fields§
§training_dataset_uri: String
Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
validation_dataset_uri: Option<String>
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
hyper_parameters: Option<DistillationHyperParameters>
Optional. Hyperparameters for Distillation.
student_model: String
The student model that is being tuned, e.g., “google/gemma-2b-1.1-it”.
pipeline_root_directory: String
Required. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.
teacher_model: Option<TeacherModel>
The teacher model that is being distilled from, e.g., “gemini-1.0-pro-002”.
Implementations§
source§impl DistillationSpec
impl DistillationSpec
sourcepub fn validation_dataset_uri(&self) -> &str
pub fn validation_dataset_uri(&self) -> &str
Returns the value of validation_dataset_uri
, or the default value if validation_dataset_uri
is unset.
Trait Implementations§
source§impl Clone for DistillationSpec
impl Clone for DistillationSpec
source§fn clone(&self) -> DistillationSpec
fn clone(&self) -> DistillationSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DistillationSpec
impl Debug for DistillationSpec
source§impl Default for DistillationSpec
impl Default for DistillationSpec
source§impl Message for DistillationSpec
impl Message for DistillationSpec
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DistillationSpec
impl PartialEq for DistillationSpec
source§fn eq(&self, other: &DistillationSpec) -> bool
fn eq(&self, other: &DistillationSpec) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DistillationSpec
Auto Trait Implementations§
impl Freeze for DistillationSpec
impl RefUnwindSafe for DistillationSpec
impl Send for DistillationSpec
impl Sync for DistillationSpec
impl Unpin for DistillationSpec
impl UnwindSafe for DistillationSpec
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
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request