Table of Contents

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

Format string

The model file format (e.g., "SafeTensor", "PickleTensor", "Other"). Maps to JSON property "format".

Size string

The model size specification (e.g., "full", "pruned"). Maps to JSON property "size".

Precision string

The 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

string

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

string

Size

The model size specification (e.g., "full", "pruned"). Maps to JSON property "size".

[JsonPropertyName("size")]
public string? Size { get; init; }

Property Value

string