Skip to content

Commit

Permalink
fix: cpu instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Jul 4, 2024
1 parent 9c43c9f commit 70beab2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
55 changes: 27 additions & 28 deletions cortex-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"scripts": {
"dev": "nest dev",
"build": "ncc build ./src/command.ts -o command --external cpuinfo",
"build": "npx -q patch-package && ncc build ./src/command.ts -o command",
"build:binary": "yarn build && npx -q patch-package && npx @yao-pkg/pkg .",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"build:extensions": "run-script-os",
Expand All @@ -34,42 +34,25 @@
"build:dev:linux": "chmod +x ./command/index.js"
},
"dependencies": {
"cpuinfo": "git://github.com/louis-jan/cpuinfo.git#master"
"cpu-instructions": "^0.0.9"
},
"devDependencies": {
"@huggingface/gguf": "^0.1.5",
"@huggingface/hub": "^0.15.1",
"@nestjs/axios": "^3.0.2",
"@nestjs/cli": "^10.0.0",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.2.2",
"@nestjs/core": "^10.0.0",
"@nestjs/devtools-integration": "^0.1.6",
"@nestjs/event-emitter": "^2.0.4",
"@nestjs/mapped-types": "*",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.3.1",
"@terascope/fetch-github-release": "^0.8.8",
"axios": "^1.6.8",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cli-progress": "^3.12.0",
"cortexso-node": "^0.0.4",
"decompress": "^4.2.1",
"js-yaml": "^4.1.0",
"nest-commander": "^3.13.0",
"readline": "^1.3.0",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1",
"sqlite3": "^5.1.7",
"systeminformation": "^5.22.11",
"typeorm": "^0.3.20",
"ulid": "^2.3.0",
"uuid": "^9.0.1",
"yaml": "^2.4.2",
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/swagger": "^7.3.1",
"@nestjs/testing": "^10.0.0",
"@nestjs/typeorm": "^10.0.2",
"@terascope/fetch-github-release": "^0.8.8",
"@types/cli-progress": "^3.11.5",
"@types/decompress": "^4.2.7",
"@types/express": "^4.17.17",
Expand All @@ -81,26 +64,43 @@
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vercel/ncc": "^0.38.0",
"@yao-pkg/pkg": "^5.12.0",
"axios": "^1.6.8",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cli-progress": "^3.12.0",
"cortexso-node": "^0.0.4",
"cpx": "^1.5.0",
"decompress": "^4.2.1",
"eslint": "^8.42.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"hanbi": "^1.0.3",
"is-primitive": "^3.0.1",
"jest": "^29.5.0",
"js-yaml": "^4.1.0",
"nest-commander": "^3.13.0",
"nest-commander-testing": "^3.3.0",
"patch-package": "^8.0.0",
"prettier": "^3.0.0",
"readline": "^1.3.0",
"reflect-metadata": "^0.2.0",
"resedit-cli": "^2.0.0",
"run-script-os": "^1.1.6",
"rxjs": "^7.8.1",
"source-map-support": "^0.5.21",
"sqlite3": "^5.1.7",
"supertest": "^6.3.3",
"systeminformation": "^5.22.11",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"tsconfig-paths": "^4.2.0",
"typeorm": "^0.3.20",
"typescript": "^5.1.3",
"patch-package": "^8.0.0",
"@yao-pkg/pkg": "^5.12.0",
"resedit-cli": "^2.0.0",
"@vercel/ncc": "^0.38.0"
"ulid": "^2.3.0",
"uuid": "^9.0.1",
"yaml": "^2.4.2"
},
"resolutions": {
"ajv": "8.15.0",
Expand Down Expand Up @@ -135,8 +135,7 @@
"assets": [
"command/*.node",
"**/package.json",
"node_modules/axios/**/*",
"cpuinfo/**/*"
"node_modules/axios/**/*"
],
"outputPath": "dist"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import { checkNvidiaGPUExist, cudaVersion } from '@/utils/cuda';
import { Engines } from '../types/engine.interface';

import { cpuInfo } from 'cpuinfo';
import { cpuInfo } from 'cpu-instructions';

@Injectable()
export class InitCliUsecases {
Expand Down

0 comments on commit 70beab2

Please sign in to comment.