initContext method
Future<Map<Object?, dynamic> ?>
initContext(
- String model, {
- bool embedding = false,
- int nCtx = 512,
- int nBatch = 512,
- int nThreads = 0,
- int nGpuLayers = 0,
- bool useMlock = true,
- bool useMmap = true,
- String lora = "",
- double loraScaled = 1.0,
- double ropeFreqBase = 0.0,
- double ropeFreqScale = 0.0,
- bool loraInitWithoutApply = false,
- bool emitLoadProgress = false,
Implementation
Future<Map<Object?, dynamic>?> initContext(String model,
{bool embedding = false,
int nCtx = 512,
int nBatch = 512,
int nThreads = 0,
int nGpuLayers = 0,
bool useMlock = true,
bool useMmap = true,
String lora = "",
double loraScaled = 1.0,
double ropeFreqBase = 0.0,
double ropeFreqScale = 0.0,
bool loraInitWithoutApply = false,
bool emitLoadProgress = false}) {
return FCllamaPlatform.instance.initContext(model,
embedding: embedding,
nCtx: nCtx,
nBatch: nBatch,
nThreads: nThreads,
nGpuLayers: nGpuLayers,
useMlock: useMlock,
useMmap: useMmap,
lora: lora,
loraScaled: loraScaled,
loraInitWithoutApply: loraInitWithoutApply,
ropeFreqBase: ropeFreqBase,
ropeFreqScale: ropeFreqScale,
emitLoadProgress: emitLoadProgress);
}