pub struct WeightTensorRecord {
pub name: String,
pub dtype: String,
pub shape: Vec<u64>,
pub offset_in_shard: u64,
pub len: u64,
pub shard_index: u32,
pub extra: bool,
}Expand description
2026-09-25: Where one tensor of a staged model lies in its shard file. The
client reads [shard_base + offset_in_shard, + len).
Fields§
§name: String2026-09-25: The tensor’s name in the safetensors header.
dtype: String2026-09-25: The safetensors dtype string ("BF16", "F8_E4M3", …),
which the base-weight client maps with WeightDtype::from_safetensors_str.
shape: Vec<u64>§offset_in_shard: u642026-09-25: File offset of the tensor’s first byte: 8 + header size +
data_offsets[0] (metrale_core::safetensors::tensor_span).
len: u642026-09-25: Byte length, data_offsets[1] - data_offsets[0].
shard_index: u322026-09-25: Index into WeightManifest::shard_files.
extra: bool2026-09-25: True for tensors of extra_weights.safetensors, which the
client never drops with its expert-skip filter (should_skip_tensor in
weight_tier_rdma.rs).
Trait Implementations§
Source§impl Clone for WeightTensorRecord
impl Clone for WeightTensorRecord
Source§fn clone(&self) -> WeightTensorRecord
fn clone(&self) -> WeightTensorRecord
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 WeightTensorRecord
impl Debug for WeightTensorRecord
Source§impl<'de> Deserialize<'de> for WeightTensorRecord
impl<'de> Deserialize<'de> for WeightTensorRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WeightTensorRecord
impl PartialEq for WeightTensorRecord
Source§impl Serialize for WeightTensorRecord
impl Serialize for WeightTensorRecord
impl Eq for WeightTensorRecord
impl StructuralPartialEq for WeightTensorRecord
Auto Trait Implementations§
impl Freeze for WeightTensorRecord
impl RefUnwindSafe for WeightTensorRecord
impl Send for WeightTensorRecord
impl Sync for WeightTensorRecord
impl Unpin for WeightTensorRecord
impl UnwindSafe for WeightTensorRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.