CactusInitParams constructor
CactusInitParams({
- String? modelPath,
- String? modelUrl,
- String? modelFilename,
- String? mmprojPath,
- String? mmprojUrl,
- String? mmprojFilename,
- String? chatTemplate,
- int contextSize = 2048,
- int batchSize = 512,
- int ubatchSize = 512,
- int gpuLayers = 0,
- int threads = 4,
- bool useMmap = true,
- bool useMlock = false,
- bool generateEmbeddings = false,
- int poolingType = 0,
- int normalizeEmbeddings = 2,
- bool useFlashAttention = false,
- String? cacheTypeK,
- String? cacheTypeV,
- CactusProgressCallback? onInitProgress,
Implementation
CactusInitParams({
this.modelPath,
this.modelUrl,
this.modelFilename,
this.mmprojPath,
this.mmprojUrl,
this.mmprojFilename,
this.chatTemplate,
this.contextSize = 2048,
this.batchSize = 512,
this.ubatchSize = 512,
this.gpuLayers = 0,
this.threads = 4,
this.useMmap = true,
this.useMlock = false,
this.generateEmbeddings = false,
this.poolingType = 0,
this.normalizeEmbeddings = 2,
this.useFlashAttention = false,
this.cacheTypeK,
this.cacheTypeV,
this.onInitProgress,
});