-
Notifications
You must be signed in to change notification settings - Fork 601
[SOT] Add env variable FLAGS_parameters_persistent_mode_in_dy2st
for dy2st
#2779
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
Conversation
Thanks for your contribution! |
@@ -961,6 +961,9 @@ def _setting_environ_variables(self): | |||
"FLAGS_pir_interpreter_record_stream_for_gc_cache": | |||
os.getenv("FLAGS_pir_interpreter_record_stream_for_gc_cache", | |||
default="1"), | |||
"FLAGS_parameters_persistent_mode_in_dy2st": | |||
os.getenv("FLAGS_parameters_persistent_mode_in_dy2st", | |||
default="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.
这个参数在哪会用到
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.
在框架的转静和run_program
里用到,在非推理场景下默认是关闭的
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.
只在动转静场景会有影响,用于将参数持久化在执行器 scope 中,避免每次 share 到 scope 产生的开销
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.
FLAGS_parameters_persistent_mode_in_dy2st
for dy2st
麻烦在环境变量的文档里也说明一下,方便后续维护 |
Add one new variable for dy2st:
FLAGS_parameters_persistent_mode_in_dy2st
cc @SigureMo