Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
f70f9b29
Commit
f70f9b29
authored
1 year ago
by
Tony Salomone
Browse files
Options
Downloads
Patches
Plain Diff
Save model path in training template for local models.
parent
b5f23722
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/renderer/components/Experiment/Train/TrainLoRA.tsx
+2
-2
2 additions, 2 deletions
src/renderer/components/Experiment/Train/TrainLoRA.tsx
src/renderer/components/Experiment/Train/TrainingModalLoRA.tsx
+5
-3
5 additions, 3 deletions
...enderer/components/Experiment/Train/TrainingModalLoRA.tsx
with
7 additions
and
5 deletions
src/renderer/components/Experiment/Train/TrainLoRA.tsx
+
2
−
2
View file @
f70f9b29
...
@@ -64,9 +64,9 @@ function formatJobConfig(c): ReactElement {
...
@@ -64,9 +64,9 @@ function formatJobConfig(c): ReactElement {
{
/* {JSON.stringify(c)} */
}
{
/* {JSON.stringify(c)} */
}
<
b
>
Template ID:
</
b
>
{
c
.
template_name
}
<
b
>
Template ID:
</
b
>
{
c
.
template_name
}
<
br
/>
<
br
/>
<
b
>
Model
Name
:
</
b
>
{
c
.
model_name
}
<
b
>
Model:
</
b
>
{
c
.
model_name
}
<
br
/>
<
br
/>
<
b
>
Dataset
Name
:
</
b
>
{
c
.
dataset_name
}
<
b
>
Dataset:
</
b
>
{
c
.
dataset_name
}
</>
</>
);
);
return
r
;
return
r
;
...
...
This diff is collapsed.
Click to expand it.
src/renderer/components/Experiment/Train/TrainingModalLoRA.tsx
+
5
−
3
View file @
f70f9b29
...
@@ -78,7 +78,9 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
...
@@ -78,7 +78,9 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
return
chatAPI
.
Endpoints
.
Dataset
.
Info
(
selectedDataset
);
return
chatAPI
.
Endpoints
.
Dataset
.
Info
(
selectedDataset
);
},
fetcher
);
},
fetcher
);
const
currentModelName
=
experimentInfo
?.
config
?.
foundation
;
const
currentModel
=
experimentInfo
?.
config
?.
foundation_filename
?
experimentInfo
?.
config
?.
foundation_filename
:
experimentInfo
?.
config
?.
foundation
;
function
injectIntoTemplate
(
key
)
{
function
injectIntoTemplate
(
key
)
{
// Add the key to the textbox with id "template"
// Add the key to the textbox with id "template"
...
@@ -182,7 +184,7 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
...
@@ -182,7 +184,7 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
<
Stack
direction
=
"row"
justifyContent
=
"space-evenly"
gap
=
{
2
}
>
<
Stack
direction
=
"row"
justifyContent
=
"space-evenly"
gap
=
{
2
}
>
<
FormControl
sx
=
{
{
flex
:
1
}
}
>
<
FormControl
sx
=
{
{
flex
:
1
}
}
>
<
FormLabel
>
Model:
</
FormLabel
>
<
FormLabel
>
Model:
</
FormLabel
>
<
Typography
variant
=
"soft"
>
{
currentModel
Name
}
</
Typography
>
<
Typography
variant
=
"soft"
>
{
currentModel
}
</
Typography
>
</
FormControl
>
</
FormControl
>
<
FormControl
sx
=
{
{
flex
:
1
}
}
>
<
FormControl
sx
=
{
{
flex
:
1
}
}
>
<
FormLabel
>
Architecture:
</
FormLabel
>
<
FormLabel
>
Architecture:
</
FormLabel
>
...
@@ -193,7 +195,7 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
...
@@ -193,7 +195,7 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
<
input
<
input
hidden
hidden
value
=
{
currentModel
Name
}
value
=
{
currentModel
}
name
=
"model_name"
name
=
"model_name"
readOnly
readOnly
/>
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment