Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
1dcaf249
Commit
1dcaf249
authored
Oct 11, 2023
by
ppt0011
Browse files
[doc] add reminder for issue encountered with hybrid adam
parent
fdec650b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
colossalai/nn/optimizer/cpu_adam.py
colossalai/nn/optimizer/cpu_adam.py
+1
-0
No files found.
colossalai/nn/optimizer/cpu_adam.py
View file @
1dcaf249
...
...
@@ -77,6 +77,7 @@ class CPUAdam(NVMeOptimizer):
super
(
CPUAdam
,
self
).
__init__
(
model_params
,
default_args
,
nvme_offload_fraction
,
nvme_offload_dir
)
self
.
adamw_mode
=
adamw_mode
cpu_adam
=
CPUAdamBuilder
().
load
()
# if you find yourself stuck here, make sure that you install colossalai with CUDA_EXT=1 specification
self
.
cpu_adam_op
=
cpu_adam
.
CPUAdamOptimizer
(
lr
,
betas
[
0
],
betas
[
1
],
eps
,
weight_decay
,
adamw_mode
)
def
torch_adam_update
(
...
...
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