-
Notifications
You must be signed in to change notification settings - Fork 184
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 teacher/judge section to ilab form #3777
base: main
Are you sure you want to change the base?
Add teacher/judge section to ilab form #3777
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks good to me, just a nit
...tend/src/pages/pipelines/global/modelCustomization/teacherJudgeSection/JudgeModelSection.tsx
Outdated
Show resolved
Hide resolved
7c526b4
to
75bede7
Compare
Updated the PR, use |
frontend/src/pages/pipelines/global/modelCustomization/FineTunePageFooter.tsx
Outdated
Show resolved
Hide resolved
The functionality and Zod validation work well. I'm also waiting for the above comment so I can also make changes in my PR accordingly |
@DaoDaoNoCode , I just notice that |
@pnaik1 Nice catch! I updated the zod validation functions. |
...pts/pipelines/content/modelCustomizationForm/modelCustomizationFormSchema/validationUtils.ts
Outdated
Show resolved
Hide resolved
frontend/src/pages/pipelines/global/modelCustomization/FineTunePageFooter.tsx
Outdated
Show resolved
Hide resolved
@DaoDaoNoCode take a look at what Purva did for here taxonomy PR we should just do something like const [runFormData] = useRunFormData(ilabPipelineVersion); then with on submit you do something like handleSubmit({
...runFormData,
...translateIlabFormToPipelineInput(formData, judgeSecretName, teacherSecretName)
}) |
ae1bfad
to
aaeae49
Compare
aaeae49
to
19c45b6
Compare
@@ -33,8 +53,109 @@ const FineTunePageFooter: React.FC<FineTunePageFooterProps> = ({ isInvalid, onSu | |||
// TODO: translate data to `RunFormData` | |||
const [runFormData] = useRunFormData(null, {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you put the ilabPipeline in instead of null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also {} is optional so no need to have that
JIRA: RHOAIENG-19108
Description
Added 2 similar sections to the form: Teacher model and Judge model. Here are the descriptions.
api_token
, 'endpoint' andmodel_name
. When it's public, theapi_token
field will be set as empty string.How Has This Been Tested?
Test Impact
Added unit tests for the validation
Added cypress tests for the 2 sections
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main