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

what is pipeline_threshold used for? #8

Closed
Jack47 opened this issue Jul 14, 2021 · 2 comments
Closed

what is pipeline_threshold used for? #8

Jack47 opened this issue Jul 14, 2021 · 2 comments

Comments

@Jack47
Copy link

Jack47 commented Jul 14, 2021

I want to figure out what does pipeline and pipeline_threshold means in actnn. Din't find examples in test or readme, so may you guys give some examples or explain it a bit? Thanks
image

PS: I'm currently reading actnn source code and learned a lot from it , my chinese notes here.

@merrymercy
Copy link
Member

merrymercy commented Jul 14, 2021

For large tensors, we compute the forward and quantize activations one micro-batch by one micro-batch, so we call this "pipeline". This is used to reduce the temporary workspace memory and reduce memory fragmentation.

If the tensor size is larger than pipeline_threshold, we will apply this optimization.

@Jack47
Copy link
Author

Jack47 commented Jul 15, 2021

Sounds interesting, thanks for clear explain, it helps a lot.

@Jack47 Jack47 closed this as completed Jul 15, 2021
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

No branches or pull requests

2 participants