Skip to content
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

add activation cktp #31

Merged
merged 2 commits into from
Oct 2, 2024
Merged

add activation cktp #31

merged 2 commits into from
Oct 2, 2024

Conversation

samsja
Copy link
Collaborator

@samsja samsja commented Oct 2, 2024

No description provided.

@samsja samsja marked this pull request as ready for review October 2, 2024 02:30
@@ -51,7 +52,7 @@ class TrainConfig(BaseConfig):
micro_bs: int
torch_compile: bool = True
sharding_strategy: str = "SHARD_GRAD_OP"

ac_ckpt: bool | int = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this just be int? 0 or -1 if false otherwise the int.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm if it just int it means from the cli you always have to do --ac_ckpt 1 whereas if it an bool we can do --ac_ckpt

tho I agree that it would make the code nice

Copy link
Member

@Jackmin801 Jackmin801 Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

up to u then haha. fine either way. I think u actually can get away with not doing the isinstance bool check and just directly pass along True since True is treated as 1 :p

but dont do it. its confusing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I thought about doing it but does not sounds nice haha

@samsja samsja merged commit 2356b1c into main Oct 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants