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
c2d4eb25
Commit
c2d4eb25
authored
10 months ago
by
ali asaria
Browse files
Options
Downloads
Patches
Plain Diff
remove default config from plugin
parent
fb4d2f23
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/renderer/components/Experiment/Train/TrainingModalLoRA.tsx
+2
-12
2 additions, 12 deletions
...enderer/components/Experiment/Train/TrainingModalLoRA.tsx
with
2 additions
and
12 deletions
src/renderer/components/Experiment/Train/TrainingModalLoRA.tsx
+
2
−
12
View file @
c2d4eb25
...
@@ -22,16 +22,6 @@ import {
...
@@ -22,16 +22,6 @@ import {
import
DynamicPluginForm
from
'
../DynamicPluginForm
'
;
import
DynamicPluginForm
from
'
../DynamicPluginForm
'
;
import
TrainingModalDataTab
from
'
./TraningModalDataTab
'
;
import
TrainingModalDataTab
from
'
./TraningModalDataTab
'
;
const
DefaultLoraConfig
=
{
model_max_length
:
2048
,
num_train_epochs
:
3
,
learning_rate
:
1
e
-
3
,
lora_r
:
8
,
lora_alpha
:
16
,
lora_dropout
:
0.05
,
adaptor_name
:
''
,
};
import
{
generateFriendlyName
}
from
'
renderer/lib/utils
'
;
import
{
generateFriendlyName
}
from
'
renderer/lib/utils
'
;
const
fetcher
=
(
url
)
=>
fetch
(
url
).
then
((
res
)
=>
res
.
json
());
const
fetcher
=
(
url
)
=>
fetch
(
url
).
then
((
res
)
=>
res
.
json
());
...
@@ -71,7 +61,7 @@ export default function TrainingModalLoRA({
...
@@ -71,7 +61,7 @@ export default function TrainingModalLoRA({
})
{
})
{
// Store the current selected Dataset in this modal
// Store the current selected Dataset in this modal
const
[
selectedDataset
,
setSelectedDataset
]
=
useState
(
null
);
const
[
selectedDataset
,
setSelectedDataset
]
=
useState
(
null
);
const
[
config
,
setConfig
]
=
useState
(
DefaultLoraConfig
);
const
[
config
,
setConfig
]
=
useState
(
{}
);
const
[
nameInput
,
setNameInput
]
=
useState
(
''
);
const
[
nameInput
,
setNameInput
]
=
useState
(
''
);
// Fetch available datasets from the API
// Fetch available datasets from the API
...
@@ -134,7 +124,7 @@ export default function TrainingModalLoRA({
...
@@ -134,7 +124,7 @@ export default function TrainingModalLoRA({
}
else
{
}
else
{
//This case is for when we are creating a new template
//This case is for when we are creating a new template
setSelectedDataset
(
null
);
setSelectedDataset
(
null
);
setConfig
(
DefaultLoraConfig
);
setConfig
(
{}
);
setNameInput
(
generateFriendlyName
());
setNameInput
(
generateFriendlyName
());
}
}
},
[
templateData
]);
},
[
templateData
]);
...
...
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