This repository was archived by the owner on Jul 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ async function startServer(dataFolderPath?: string) {
82
82
dataFolderPath : dataFolderPath || config . dataFolderPath ,
83
83
cortexCppPort : enginePort ,
84
84
} ) ;
85
+ return app ;
85
86
} catch ( e ) {
86
87
console . error ( e ) ;
87
88
// revert the data folder path if it was set
Original file line number Diff line number Diff line change @@ -93,15 +93,17 @@ export class EnginesUsecases {
93
93
engine === Engines . llamaCPP &&
94
94
( options ?. vulkan ||
95
95
( options ?. runMode === 'GPU' && options ?. gpuType !== 'Nvidia' ) ) ;
96
+ const platformMatcher =
97
+ process . platform === 'win32'
98
+ ? '-windows'
99
+ : process . platform === 'darwin'
100
+ ? '-mac'
101
+ : '-linux' ;
96
102
installPackages . push (
97
103
this . installAcceleratedEngine ( options ?. version ?? 'latest' , engine , [
98
- process . platform === 'win32'
99
- ? '-windows'
100
- : process . platform === 'darwin'
101
- ? '-mac'
102
- : '-linux' ,
104
+ platformMatcher ,
103
105
// CPU Instructions - CPU | GPU Non-Vulkan
104
- ! isVulkan && engine === Engines . llamaCPP
106
+ ! isVulkan && engine === Engines . llamaCPP && platformMatcher !== '-mac'
105
107
? `-noavx`
106
108
: '' ,
107
109
// Cuda
You can’t perform that action at this time.
0 commit comments