Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
Basedformer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Basedformer
Commits
d9df990b
Commit
d9df990b
authored
Mar 18, 2022
by
novelailab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ree.
parent
02e24910
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
.gitignore
.gitignore
+1
-1
train.py
train.py
+3
-3
No files found.
.gitignore
View file @
d9df990b
...
...
@@ -132,4 +132,4 @@ models
gptjconvert
j6b_vanilla
wandb
sigurd_v5_2049.map
\ No newline at end of file
*.map
\ No newline at end of file
train.py
View file @
d9df990b
...
...
@@ -26,16 +26,16 @@ model_config = {
train_config
=
{
"lr"
:
6e-4
,
"end_lr"
:
6e-4
,
"warmup_steps"
:
10
0
,
"warmup_steps"
:
2
0
,
"bs"
:
16
,
"gas"
:
2
,
"gas"
:
16
,
"seed"
:
69
,
}
bs
=
train_config
[
"bs"
]
gas
=
train_config
[
"gas"
]
model
=
GPTModel
.
neox_init
(
model_config
)
.
cuda
()
.
bfloat16
()
opt
=
optimizer
.
BasedOptimizer
(
model
.
parameters
(),
train_config
,
"adamw"
)
train_dataset
=
utils
.
FbDataset
(
2049
,
"sigurd_v5_2049.map"
)
train_dataset
=
utils
.
FbDataset
(
2049
,
"
/home/xuser/diffusionstorage/datasets/sigurd/map/
sigurd_v5_2049.map"
)
train_loader
=
data
.
DataLoader
(
train_dataset
,
batch_size
=
bs
*
gas
,
shuffle
=
False
,
num_workers
=
0
)
wandb
.
init
(
project
=
"basedformer-tests"
,
name
=
"sigurd_v5_2049"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment