Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Alina Lozovskaya
commited on
Commit
·
7f1a54e
1
Parent(s):
28fd56c
Fix weightsType casing
Browse files
frontend/src/pages/AddModelPage/components/ModelSubmissionForm/ModelSubmissionForm.js
CHANGED
@@ -137,7 +137,7 @@ function ModelSubmissionForm({ user, isAuthenticated }) {
|
|
137 |
isChatModel: false,
|
138 |
useChatTemplate: false,
|
139 |
precision: "float16",
|
140 |
-
weightsType: "
|
141 |
baseModel: "",
|
142 |
});
|
143 |
const [error, setError] = useState(null);
|
@@ -333,7 +333,7 @@ function ModelSubmissionForm({ user, isAuthenticated }) {
|
|
333 |
isChatModel: false,
|
334 |
useChatTemplate: false,
|
335 |
precision: "float16",
|
336 |
-
weightsType: "
|
337 |
baseModel: "",
|
338 |
});
|
339 |
}}
|
@@ -536,13 +536,13 @@ function ModelSubmissionForm({ user, isAuthenticated }) {
|
|
536 |
</FormControl>
|
537 |
</Grid>
|
538 |
|
539 |
-
{formData.weightsType !== "
|
540 |
<Grid item xs={12}>
|
541 |
<TextField
|
542 |
fullWidth
|
543 |
required={
|
544 |
-
formData.weightsType === "
|
545 |
-
formData.weightsType === "
|
546 |
}
|
547 |
name="baseModel"
|
548 |
label="Base Model"
|
|
|
137 |
isChatModel: false,
|
138 |
useChatTemplate: false,
|
139 |
precision: "float16",
|
140 |
+
weightsType: "Original",
|
141 |
baseModel: "",
|
142 |
});
|
143 |
const [error, setError] = useState(null);
|
|
|
333 |
isChatModel: false,
|
334 |
useChatTemplate: false,
|
335 |
precision: "float16",
|
336 |
+
weightsType: "Original",
|
337 |
baseModel: "",
|
338 |
});
|
339 |
}}
|
|
|
536 |
</FormControl>
|
537 |
</Grid>
|
538 |
|
539 |
+
{formData.weightsType !== "Original" && (
|
540 |
<Grid item xs={12}>
|
541 |
<TextField
|
542 |
fullWidth
|
543 |
required={
|
544 |
+
formData.weightsType === "Delta" ||
|
545 |
+
formData.weightsType === "Adapter"
|
546 |
}
|
547 |
name="baseModel"
|
548 |
label="Base Model"
|