initContext method

Future<Map<Object?, dynamic>?> initContext(
  1. String model, {
  2. bool embedding = false,
  3. int nCtx = 512,
  4. int nBatch = 512,
  5. int nThreads = 0,
  6. int nGpuLayers = 0,
  7. bool useMlock = true,
  8. bool useMmap = true,
  9. String lora = "",
  10. double loraScaled = 1.0,
  11. double ropeFreqBase = 0.0,
  12. double ropeFreqScale = 0.0,
  13. bool loraInitWithoutApply = false,
  14. 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);
}