Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: BUG on newest jan v5.0, it set the default to gpu instead of cpu #3012

Open
abaynp opened this issue Jun 8, 2024 · 3 comments
Open
Assignees
Labels
hardware: AMD GPUs AMD GPU issues hardware: Nvidia GPUs NVIDIA GPU related issues P1: important Important feature / fix type: bug Something isn't working

Comments

@abaynp
Copy link

abaynp commented Jun 8, 2024

Describe the bug
Before I use Jan v4.x and also update to v5.0, with a cortex model, and it works flawlessly
But when I clean install v5.0, it cannot start the model. I manage to get it works by switching to experimental mode, then turn on the vulkan (which obviously I don't have any amd gpu), run into the same problem, then switch off the vulkan and the experimental mode, then the cortex model will start as normal.

I look at the logs, I suprised that it try to load something from win-cuda folder. Look at it closer turn out it sets to run on gpu mode ("run_mode":"gpu") I don't know how the way the app recognize my system, but my system is just another intel based thinkpad without any other gpu installed.

this is a part of the log
[APP]::{"notify":true,"run_mode":"gpu","nvidia_driver":{"exist":false,"version":""},"cuda":{"exist":true,"version":"11"},"gpus":[],"gpu_highest_vram":"","gpus_in_use":[""],"is_initial":false,"vulkan":false}

I don't know why it sets to gpu on default installation, may be because it found a cuda which I'm not really sure, is Intel® HD Graphics 620 support cuda? I believe it is not.

But when I comeback from vulkan to non vulkan, it successfully go to cpu mode, rather than gpu mode from clean install or factory reset.

I know it can be fix by manually edit a config.json or something, but this still in fact a BUG

app.log

@abaynp abaynp added the type: bug Something isn't working label Jun 8, 2024
@Van-QA
Copy link
Contributor

Van-QA commented Jun 12, 2024

We are in the process of restructuring Jan to use Cortex, where the hardware information will be acquired from the library side, and we will follow up on the problem once #3499 is resolved, thank you

@Van-QA Van-QA added the P1: important Important feature / fix label Jun 12, 2024
@Van-QA Van-QA added this to the v.0.5.2 ⚡ Thunder Tea milestone Jun 12, 2024
@Van-QA Van-QA modified the milestones: v.0.6.0, v0.6.1 Aug 5, 2024
@imtuyethan imtuyethan removed this from the v0.7.1 milestone Aug 30, 2024
@0xSage
Copy link
Contributor

0xSage commented Sep 5, 2024

What's the source of the issue @louis-jan ? Is it related to janhq/cortex.cpp#1142

@louis-jan
Copy link
Contributor

@0xSage This was a bug related to GPU detection, which could be triggered by the presence of nvidia-smi installed on the user's machine or weird response. The upcoming hardware detection feature in cortex-cpp might fix this.

@imtuyethan imtuyethan added hardware: Nvidia GPUs NVIDIA GPU related issues hardware: AMD GPUs AMD GPU issues labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hardware: AMD GPUs AMD GPU issues hardware: Nvidia GPUs NVIDIA GPU related issues P1: important Important feature / fix type: bug Something isn't working
Projects
Status: Triage
Development

No branches or pull requests

5 participants