pub struct PythonTorchWorkloadConfig {
pub runtime: PythonTorchRuntimeConfig,
pub dataset: PythonTorchDatasetConfig,
pub supported_workload: SupportedWorkload,
pub model_schema_hash: ContentId,
pub artifact_record_format: String,
pub artifact_precision: Precision,
pub artifact_chunking: ChunkingScheme,
pub patch_support: PatchSupport,
}Expand description
Static workload identity and artifact settings for one Python/Torch runtime.
Fields§
§runtime: PythonTorchRuntimeConfigPython worker launch config.
dataset: PythonTorchDatasetConfigDataset/shard config.
supported_workload: SupportedWorkloadWorkload identity published into the release manifest.
model_schema_hash: ContentIdStable model schema hash.
artifact_record_format: StringArtifact record format tag.
artifact_precision: PrecisionDescriptor precision published with model artifacts.
artifact_chunking: ChunkingSchemeChunking policy for stored model artifacts.
patch_support: PatchSupportPatch support advertised by the workload.
Implementations§
Source§impl PythonTorchWorkloadConfig
impl PythonTorchWorkloadConfig
Sourcepub fn new(
runtime: PythonTorchRuntimeConfig,
dataset: PythonTorchDatasetConfig,
supported_workload: SupportedWorkload,
model_schema_hash: ContentId,
) -> Result<Self>
pub fn new( runtime: PythonTorchRuntimeConfig, dataset: PythonTorchDatasetConfig, supported_workload: SupportedWorkload, model_schema_hash: ContentId, ) -> Result<Self>
Creates a new config with a safetensors-backed artifact default.
Trait Implementations§
Source§impl Clone for PythonTorchWorkloadConfig
impl Clone for PythonTorchWorkloadConfig
Source§fn clone(&self) -> PythonTorchWorkloadConfig
fn clone(&self) -> PythonTorchWorkloadConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PythonTorchWorkloadConfig
impl RefUnwindSafe for PythonTorchWorkloadConfig
impl Send for PythonTorchWorkloadConfig
impl Sync for PythonTorchWorkloadConfig
impl Unpin for PythonTorchWorkloadConfig
impl UnsafeUnpin for PythonTorchWorkloadConfig
impl UnwindSafe for PythonTorchWorkloadConfig
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