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

Add an 'Import from hugging face' modal #2514

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Jul 4, 2024

TL;DR

Add a new feature to import from Hugging Face in the VFolderListPage.

What changed?

  1. Modified config.toml.sample for indentation fix.
  2. Added ImportFromHuggingFaceModal component to react/src/components.
  3. Integrated ImportFromHuggingFaceModal in VFolderListPage.
  4. Added new buttons and toggle functionality to VFolderListPage.tsx.
  5. Updated language JSON files to include new translations for the Hugging Face import feature.

How to test?

  1. Remove this line
  2. Navigate to the data page. And click the model or model-store tab.
  3. You can check the added modal by clicking an 'Import From Hugging Face' button.

Screenshots

image.png

image.png


Checklist: (if applicable)

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

Copy link

graphite-app bot commented Jul 4, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization labels Jul 4, 2024
@github-actions github-actions bot added the size:L 100~500 LoC label Jul 4, 2024
Copy link

github-actions bot commented Jul 4, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
2.66% (-0.01% 🔻)
141/5293
🔴 Branches
2.87% (-0% 🔻)
101/3521
🔴 Functions
1.53% (-0.01% 🔻)
27/1760
🔴 Lines
2.54% (-0.01% 🔻)
132/5192
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / ImportFromHuggingFaceModal.tsx
0% 0% 0% 0%

Test suite run success

51 tests passing in 5 suites.

Report generated by 🧪jest coverage report action from f0f1be8

@agatha197 agatha197 added this to the 24.03 milestone Jul 4, 2024
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM, but it's better to merge later after finishing upcomming stacks for integrating the API.

@agatha197 agatha197 force-pushed the feature/add-import-from-hugging-face-modal branch from fb9f567 to 7fd4eff Compare July 5, 2024 02:56
@agatha197 agatha197 force-pushed the feature/add-import-from-hugging-face-modal branch from f0f1be8 to d07378c Compare August 12, 2024 07:11
Copy link

github-actions bot commented Aug 12, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.46% (-0.01% 🔻)
337/6169
🔴 Branches
5.05% (-0% 🔻)
214/4236
🔴 Functions
3.1% (-0.01% 🔻)
63/2029
🔴 Lines
5.36% (-0.01% 🔻)
323/6025
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / ImportFromHuggingFaceModal.tsx
0% 0% 0% 0%

Test suite run success

90 tests passing in 11 suites.

Report generated by 🧪jest coverage report action from c333321

@agatha197 agatha197 force-pushed the feature/add-import-from-hugging-face-modal branch 3 times, most recently from 7f49f61 to 77422f2 Compare September 19, 2024 07:55
@agatha197 agatha197 force-pushed the feature/add-import-from-hugging-face-modal branch from 77422f2 to f9c9efd Compare September 19, 2024 10:19
react/src/hooks/backendai.tsx Outdated Show resolved Hide resolved
@agatha197 agatha197 force-pushed the feature/add-import-from-hugging-face-modal branch from f9c9efd to d57d172 Compare September 20, 2024 03:49
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Sep 20, 2024

Merge activity

### TL;DR

Add a new feature to import from Hugging Face in the VFolderListPage.

### What changed?

1. Modified `config.toml.sample` for indentation fix.
2. Added `ImportFromHuggingFaceModal` component to `react/src/components`.
3. Integrated `ImportFromHuggingFaceModal` in `VFolderListPage`.
4. Added new buttons and toggle functionality to `VFolderListPage.tsx`.
5. Updated language JSON files to include new translations for the Hugging Face import feature.

### How to test?

1. [Remove this line ](https://github.com/lablup/backend.ai-webui/pull/2514/files#diff-65e44191bce624d5e51a52298306cdece45d544cfb5ac1cc5fa4a202ddde6693R122)
2. Navigate to the data page. And click the model or model-store tab.
3. You can check the added modal by clicking an 'Import From Hugging Face' button.

### Screenshots

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/fe73fa7c-5b00-44a0-af85-4a292067614f.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/55a18038-4783-4c65-b012-c270a5da9e26.png)

---

<!--
Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes,
and how it affects the users and other developers.
-->

**Checklist:** (if applicable)

- [ ] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
@yomybaby yomybaby force-pushed the feature/add-import-from-hugging-face-modal branch from d57d172 to c333321 Compare September 20, 2024 03:59
@graphite-app graphite-app bot merged commit c333321 into main Sep 20, 2024
8 checks passed
@graphite-app graphite-app bot deleted the feature/add-import-from-hugging-face-modal branch September 20, 2024 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:i18n Localization area:ux UI / UX issue. size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants