Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Don-t-NLP-Me
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chen, Yitang
Don-t-NLP-Me
Commits
c769cf3d
Commit
c769cf3d
authored
1 year ago
by
mmzk1526
Browse files
Options
Downloads
Patches
Plain Diff
change lr tuning range
parent
7739e714
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
env.py
+1
-1
1 addition, 1 deletion
env.py
hypertune.py
+1
-0
1 addition, 0 deletions
hypertune.py
with
2 additions
and
1 deletion
env.py
+
1
−
1
View file @
c769cf3d
...
...
@@ -106,7 +106,7 @@ class Env:
def
optuna_hp_space
(
self
,
trial
:
any
)
->
dict
[
str
,
any
]:
return
{
"
learning_rate
"
:
trial
.
suggest_float
(
"
learning_rate
"
,
1
e-
5
,
1
e-
4
),
"
learning_rate
"
:
trial
.
suggest_float
(
"
learning_rate
"
,
5
e-
6
,
5
e-
5
),
"
per_device_train_batch_size
"
:
trial
.
suggest_categorical
(
"
per_device_train_batch_size
"
,
[
16
,
32
]),
"
weight_decay
"
:
trial
.
suggest_float
(
"
weight_decay
"
,
0.005
,
0.05
)
}
This diff is collapsed.
Click to expand it.
hypertune.py
+
1
−
0
View file @
c769cf3d
...
...
@@ -8,6 +8,7 @@ from os import path
from
time
import
time
from
transformers
import
Trainer
# Hyperparameter training
def
get_optimal_hyperparameters
(
env
:
Env
,
upsample_factors
=
None
)
->
dict
[
str
:
any
]:
if
upsample_factors
is
None
:
...
...
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