Skip to content

Add Hugging Face organization slug helper under Allowed organization#2600

Open
Taj010 wants to merge 2 commits intokubeflow:mainfrom
Taj010:hf-helper-text
Open

Add Hugging Face organization slug helper under Allowed organization#2600
Taj010 wants to merge 2 commits intokubeflow:mainfrom
Taj010:hf-helper-text

Conversation

@Taj010
Copy link
Copy Markdown
Contributor

@Taj010 Taj010 commented Apr 15, 2026

Description

This PR adds secondary helper text below the Allowed organization field on the Hugging Face catalog source form. This text will inform the administrator that the display name and organization name may differ and provide guidance on locating the correct organization name.

image

How Has This Been Tested?

This has been tested by navigating to model-catalog-settings/add-source and ensuring the helper text is visible under the organization input field.

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages
  • [] Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.
  • For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label ok-to-test has been added to the PR.

If you have UI changes

  • The developer has added tests or explained why testing cannot be added.
  • Included any necessary screenshots or gifs if it was a UI change.
  • Verify that UI/UX changes conform the UX guidelines for Kubeflow.

'Enter the name of the organization (for example, meta-llama) to sync models from. Hugging Face sources are limited to 1 organization to prevent performance issues related to loading large model sets.',
YAML: 'Upload or paste a YAML string.',
ORGANIZATION_SLUG:
'Hugging Face organization’s name is case-sensitive and match the organization’s URL, which may differ from the displayed name. Use the organization’s URL slug found in the URL (e.g., Input: meta-llama from huggingface.co/meta-llama).',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
'Hugging Face organization’s name is case-sensitive and match the organization’s URL, which may differ from the displayed name. Use the organization’s URL slug found in the URL (e.g., Input: meta-llama from huggingface.co/meta-llama).',
'Hugging Face organization’s name is case-sensitive and should match the organization’s URL, which may differ from the displayed name. Use the organization’s URL slug found in the URL (e.g., Input: meta-llama from huggingface.co/meta-llama).',

grammatical correction

Signed-off-by: Taj010 <[email protected]>
@google-oss-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from manaswinidas. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Comment on lines +91 to +105
<ThemeAwareFormGroupWrapper
label={FORM_LABELS.ORGANIZATION}
fieldId="organization"
isRequired
descriptionTextNode={organizationDescriptionTxtNode}
helperTextNode={organizationHelperTxtNode}
>
{organizationInput}
</ThemeAwareFormGroupWrapper>
<FormHelperText>
<HelperText>
<HelperTextItem>{HELP_TEXT.ORGANIZATION_SLUG}</HelperTextItem>
</HelperText>
</FormHelperText>
</>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR will conflict with #2526 and will break the logic added there

Comment on lines +42 to +43
ORGANIZATION_SLUG:
'Hugging Face organization’s name is case-sensitive and should match the organization’s URL, which may differ from the displayed name. Use the organization’s URL slug found in the URL (e.g., Input: meta-llama from huggingface.co/meta-llama).',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will have the same problem from the previous comment, it should wait for the merge of #2526 and add following the const and logic there

@google-oss-prow
Copy link
Copy Markdown
Contributor

@Philip-Carneiro: changing LGTM is restricted to collaborators

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants