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 custom preset display #2562

Merged
merged 2 commits into from
Apr 17, 2023
Merged

Fix custom preset display #2562

merged 2 commits into from
Apr 17, 2023

Conversation

notmd
Copy link
Collaborator

@notmd notmd commented Apr 15, 2023

fix #2544
The problem is the model_id in work_parameters is not the same as the name in ModelInfo. So I assume all models have the same preset config.

@notmd notmd force-pushed the fix_custom_preset_display branch from 06dd333 to a034ac0 Compare April 15, 2023 22:29
@notmd notmd force-pushed the fix_custom_preset_display branch from a034ac0 to f84ae07 Compare April 15, 2023 22:34
@@ -24,12 +24,11 @@ export const WorkParametersDisplay = memo(function WorkParametersDisplay({
parameters: NonNullable<InferenceMessage["work_parameters"]>;
}) {
const { seed: _, ...rest } = parameters;
const model_id = parameters.model_config.model_id;
const model_id = parameters.model_config.model_id.replace("OpenAssistant/", "");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also remove the prefix here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is only for display, correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@notmd notmd marked this pull request as ready for review April 15, 2023 22:36
@notmd notmd requested a review from AbdBarho as a code owner April 15, 2023 22:36
@notmd
Copy link
Collaborator Author

notmd commented Apr 16, 2023

Tbh I think hiding the preset would make more sense. Since we don't have enough information to show the correct preset. Yannic just make the change to k50 and with the current logic, old message with k50 will be display as custom

@AbdBarho
Copy link
Collaborator

makes sense, can we remove the preset and model name entirely? there is only one model anyway...

@notmd
Copy link
Collaborator Author

notmd commented Apr 17, 2023

@AbdBarho I remove the preset, still keep the model for now. We might need that in future, because the Pythia is coming

Copy link
Collaborator

@AbdBarho AbdBarho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, we can always expand the config json and see all info there, so maybe we could reduce clutter in the chat page by removing the model name at some point.

@AbdBarho AbdBarho merged commit 631ed55 into main Apr 17, 2023
@AbdBarho AbdBarho deleted the fix_custom_preset_display branch April 17, 2023 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preset is always stuck to custom
2 participants