EmbeddedGgufModel class

Describes a GGUF model that can be run on-device via llama.cpp.

Constructors

EmbeddedGgufModel({required String id, required String displayName, required String filename, required String url, required String description, String? mmprojUrl, String? mmprojFilename, int sizeBytes = 0, int minRamGb = 2, int contextSize = 4096, int maxTokens = 1024, int defaultTopK = 40, int defaultGpuLayers = 0, bool supportsToolCalling = false, double defaultTemperature = 0.3, double defaultTopP = 0.9})
const
EmbeddedGgufModel.fromJson(Map<String, dynamic> json)
factory

Properties

contextSize → int
final
defaultGpuLayers → int
final
defaultTemperature → double
final
defaultTopK → int
final
defaultTopP → double
final
description → String
final
displayName → String
final
filename → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
maxTokens → int
final
minRamGb → int
final
mmprojFilename → String?
final
mmprojUrl → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeBytes → int
final
sizeLabel → String
Human-readable file size (e.g. "720 MB").
no setter
supportsToolCalling → bool
final
url → String
final

Methods

copyWith({String? id, String? displayName, String? filename, String? url, String? description, String? mmprojUrl, String? mmprojFilename, int? sizeBytes, int? minRamGb, int? contextSize, int? maxTokens, int? defaultTopK, int? defaultGpuLayers, bool? supportsToolCalling, double? defaultTemperature, double? defaultTopP}) → EmbeddedGgufModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited