-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support dlrm eager train #382
base: main
Are you sure you want to change the base?
Conversation
save_model("initial_checkpoint") | ||
|
||
opt = flow.optim.SGD(dlrm_module.parameters(), lr=args.learning_rate) | ||
lr_scheduler = make_lr_scheduler(args, opt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lr_scheduler = make_lr_scheduler(args, opt) | |
lr_scheduler = make_lr_scheduler(args, opt) | |
opt = flow.one_embedding.Optimizer( | |
opt, embeddings=[dlrm_module.embedding.one_embedding] | |
) |
test_case=g${num_gpus}_lr${lr}_t${train_batches}_b${train_batch_size}_d${decay_batches} | ||
echo $test_case | ||
|
||
export ONEFLOW_ONE_EMBEDDING_EAGER=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export ONEFLOW_ONE_EMBEDDING_EAGER=1 |
|
||
opt = flow.optim.SGD(dlrm_module.parameters(), lr=args.learning_rate) | ||
lr_scheduler = make_lr_scheduler(args, opt) | ||
loss_fn = flow.nn.BCEWithLogitsLoss(reduction="none").to("cuda") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该reduction直接设置为mean,才有可能用那个bce fuse kernel
No description provided.