RuntimeConfig constructor
const
RuntimeConfig({})
Implementation
const RuntimeConfig({
required this.maxTokens,
required this.modelPath,
this.tokenizerPath,
this.preferredBackend,
this.supportImage = false,
this.supportAudio = false,
this.maxNumImages,
this.enableSpeculativeDecoding,
this.maxConcurrentSessions,
this.loraRanks,
}) : assert(maxTokens >= 0, 'maxTokens must not be negative'),
assert(maxNumImages == null || maxNumImages >= 0,
'maxNumImages must not be negative'),
assert(maxConcurrentSessions == null || maxConcurrentSessions > 0,
'maxConcurrentSessions must be positive when set');