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: #3667 - The recommended label should be hidden #3687

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

louis-jan
Copy link
Contributor

Description

It can be confusing when a recommended tag is applied to all models using the model size < available RAM/VRAM formula, because in reality, these models can still perform slowly on users' machines due to lack of GPU acceleration and the need to handle large contexts.

Decision

Hide the "Recommended" tag in the Hub and only display compatibility tags for models that are marked as "Slow on your device" or "Not enough RAM".

Fixes Issues

Screenshots

Screenshot 2024-09-17 at 15 01 59

Changes made

Changes in ModelLabel.test.tsx:

Three test cases are defined to cover different scenarios:
* The first test case checks if the ModelLabel component renders the NotEnoughMemoryLabel when the minimum RAM model is greater than the total RAM.
* The second test case checks if the ModelLabel component renders the SlowOnYourDeviceLabel when the minimum RAM model is less than the total RAM but greater than the available RAM.
* The third test case checks if the ModelLabel component renders nothing when the minimum RAM model is less than the available RAM.

Changes in index.tsx:

  1. The index.tsx file has been updated to remove the RecommendedLabel import and component invocation.
  2. The ModelLabel component's logic has been updated to only render the SlowOnYourDeviceLabel when the minimum RAM model is less than the total RAM and the available RAM. The RecommendedLabel component is no longer conditionally rendered.

@github-actions github-actions bot added the type: bug Something isn't working label Sep 17, 2024
Copy link
Contributor

Barecheck - Code coverage report

Total: 57.31%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@louis-jan louis-jan merged commit c3cb192 into dev Sep 17, 2024
11 checks passed
@louis-jan louis-jan deleted the fix/3667-hide-recommended-tag-in-hub branch September 17, 2024 09:09
@github-actions github-actions bot added this to the v0.5.5 milestone Sep 17, 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