initContext method

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

Implementation

Future<Map<Object?, dynamic>?> initContext(String model,
    {bool embedding = false,
    int nCtx = 768,
    int nBatch = 768,
    int nThreads = 0,
    int nGpuLayers = 0,
    bool useMlock = true,
    bool useMmap = true,
    String lora = "",
    bool loraInitWithoutApply = false,
    double loraScaled = 1.0,
    double ropeFreqBase = 0.0,
    double ropeFreqScale = 0.0,
    bool emitLoadProgress = false}) {
  throw UnimplementedError(
      "Method initContext(String model,{int modelType = 1,bool embedding = false,int nCtx = 768,int nBatch = 768,int nThreads = 0,int nGpuLayers = 0,bool useMlock = true,bool useMmap = true,String lora = "
      ",bool loraInitWithoutApply = false,double loraScaled = 1.0,double ropeFreqBase = 0.0,double ropeFreqScale = 0.0,bool emitLoadProgress = false}) has not been implemented.");
}