chore: add cpu_threads settings in cortex extension #4386
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe Your Changes
This PR made a minor change, where the cortex extension should also display the cpt_threads settings (which are optional).
Context:
Scenarios:
In a fresh launch, I don't set anything or invalid setting, it shouldn't send the settings.
When I set a number, it should send to the engine
Changes made
This pull request includes several updates and improvements to the
inference-cortex-extension
. The changes focus on updating the engine version, adding a new configuration option, and ensuring proper handling of this new configuration in the codebase.Key Changes:
Version Update:
ENGINE_VERSION
from0.1.42
to0.1.42-hotfix
indownload.bat
,download.sh
, androllup.config.ts
to ensure the latest hotfix is used. [1] [2] [3]Configuration Enhancements:
cpu_threads
to thedefault_settings.json
to allow users to specify the number of CPU threads for inferencing in CPU mode.cpu_threads
in theSettings
enum and handled its initialization and usage inindex.ts
. [1] [2] [3] [4] [5]UI Improvement:
Advanced
settings screen to simplify the UI logic.