Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class BasicCommand extends CommandRunner {

switch (command) {
case 'start':
const host = options?.host || defaultCortexJsHost;
const port = options?.port || defaultCortexJsPort;
const host = options?.host || 'localhost';
const port = options?.port || 3928;
return this.cortexUsecases
.startCortex(host, port)
.then((e) => console.log(e));
Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/infrastructure/commanders/init.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class InitCommand extends CommandRunner {
const cudaVersion =
options.runMode === 'GPU'
? options.gpuType === 'Nvidia'
? '-cuda-' + (options.cudaVersion === '11' ? '11.7' : '12.2')
? '-cuda-' + (options.cudaVersion === '11' ? '11-7' : '12-0')
: '-vulkan'
: '';
const instructions = options.instructions ? `-${options.instructions}` : '';
Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/usecases/cortex/cortex.usecases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class CortexUsecases {
env: {
...process.env,
// TODO: NamH need to get below information
// CUDA_VISIBLE_DEVICES: executableOptions.cudaVisibleDevices,
CUDA_VISIBLE_DEVICES: "0",
// // Vulkan - Support 1 device at a time for now
// ...(executableOptions.vkVisibleDevices?.length > 0 && {
// GGML_VULKAN_DEVICE: executableOptions.vkVisibleDevices[0],
Expand Down