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

fix: 4094 - gpu mode toggle on by default but not affect for the first time launch #4132

Merged

Conversation

louis-jan
Copy link
Contributor

@louis-jan louis-jan commented Nov 26, 2024

Describe Your Changes

This PR addresses an issue where the app fails to configure a new GPU variant update after detecting GPU information in the background during the first launch. The app still runs in CPU mode even when the GPU toggle is enabled in the settings.

Fixes Issues

The first attempt it sets CPU engine variant, then it switched to GPU engine variant
image

GPU is used without additional settings
image

Changes made

The code changes introduce the following updates across multiple files:

  1. inference-cortex-extension/src/index.ts:

    • Import AppConfigurationEventName from @janhq/core.
    • Added a new event listener for AppConfigurationEventName.OnConfigurationUpdate that updates the system's run mode when settings change.
    • Added an event emission ModelEvent.OnModelStopped when a WebSocket connection is closed.
  2. monitoring-extension/src/index.ts:

    • Imported AppConfigurationEventName and events from @janhq/core.
    • Emitting AppConfigurationEventName.OnConfigurationUpdate from within the onLoad method to notify of configuration updates post Nvidia info update.

The main focus of the changes seems to be around monitoring and responding to configuration changes and handling WebSocket connectivity events more robustly.

Copy link
Contributor

github-actions bot commented Nov 26, 2024

Barecheck - Code coverage report

Total: 69.18%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@louis-jan
Copy link
Contributor Author

@louis-jan louis-jan merged commit ad84845 into dev Nov 26, 2024
19 checks passed
@louis-jan louis-jan deleted the fix/4094-gpu-mode-not-working-after-first-factory-reset branch November 26, 2024 16:46
@github-actions github-actions bot added this to the v0.5.10 milestone Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants