-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: v0.4.12 Every new thread created is reset to 2048 token context length #2821
Comments
Hi @Propheticus, this is a minor update to ensure that new models with large context lengths (>8k) do not crash low-spec devices. We will add a global setting to the extension or check device specs using heuristics to determine the proper settings. |
I can understand that reason. The main issue I had is that it's done silently for new threads, even after overriding it manually when loading the model. Without checking the model's engine parameters you wouldn't know your setting was undone. |
Yeah, that sucks. We'll address this in the next release. |
should be resolved via janhq/cortex#617 |
Like the title says the default value is set for every new thread. After picking a model where the model.json defines a ctx_len of e.g. 20000, the context is still set to 2048. After you manually adjust this and load the model, when you open a new thread the default is still reset to 2048. Dragging the slider in the new thread kills nitro and unloads the model.
![image](https://private-user-images.githubusercontent.com/6628064/325605335-4b9f7c21-069d-4930-8eb8-e5f512350662.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NDEyMTQsIm5iZiI6MTcyMDc0MDkxNCwicGF0aCI6Ii82NjI4MDY0LzMyNTYwNTMzNS00YjlmN2MyMS0wNjlkLTQ5MzAtOGViOC1lNWY1MTIzNTA2NjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTFUMjMzNTE0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjdhN2JhNjk3MzQ3NGRmYWRhZWQzNmQ5NGRhM2FiYjEyNDc1ZGYwZjk0ZTgwMTE3Mjk4NWNjOTI2YzU2MjcyMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BGrq0Z9qhxCjnXHxZ8sEvG0OFEcULOXFbZK_kGnDlg0)
Related? : https://github.com/janhq/jan/blob/dev/extensions/inference-nitro-extension/resources/default_settings.json
The text was updated successfully, but these errors were encountered: