Class FileMetadata
- Namespace
- CivitaiSharp.Core.Models.Common
- Assembly
- CivitaiSharp.Core.dll
Metadata for a model file including format and precision information.
public sealed record FileMetadata : IEquatable<FileMetadata>
- Inheritance
-
FileMetadata
- Implements
- Inherited Members
Constructors
FileMetadata(string?, string?, string?)
Metadata for a model file including format and precision information.
public FileMetadata(string? Format = null, string? Size = null, string? Precision = null)
Parameters
FormatstringThe model file format (e.g., "SafeTensor", "PickleTensor", "Other"). Maps to JSON property "format".
SizestringThe model size specification (e.g., "full", "pruned"). Maps to JSON property "size".
PrecisionstringThe floating point precision of the model (e.g., "fp16", "fp32"). Maps to JSON property "fp".
Properties
Format
The model file format (e.g., "SafeTensor", "PickleTensor", "Other"). Maps to JSON property "format".
[JsonPropertyName("format")]
public string? Format { get; init; }
Property Value
Precision
The floating point precision of the model (e.g., "fp16", "fp32"). Maps to JSON property "fp".
[JsonPropertyName("fp")]
public string? Precision { get; init; }
Property Value
Size
The model size specification (e.g., "full", "pruned"). Maps to JSON property "size".
[JsonPropertyName("size")]
public string? Size { get; init; }