How to better tune peak memory usage
@iindyk 已经在做这个了。
开始于 2022年1月24日。
评估
这个 Issue 还没有评估数据。
描述
I have some datasets and transformations that I want to run that unfortunately won't fit on n1-highmem-16 instances (which is what FlexRS requires). The features are fairly standard scalar features with tft.quantiles analyzer and string features with tft.vocabulary analyzer (but there are a lot of each type of feature). Generally the analyze step will run fine up until the final combine which will typically run on a very small number of machines and cause them to repeatedly OOM.
Of course I can do something like use a larger machine type or even a custom machine type, but these don't work with FlexRS and would be more expensive. I'm generally curious about whether either of the following two options would be viable solutions:
- Shard the analyze step by features. So split up the set of features into separate groups and run multiple different analyze steps sequentially, which should hopefully reduce peak memory usage. The challenge would be how to merge the outputs of the analyze steps together at the end.
- Add beam resource hints specifically to the problematic combine tasks so that they do not get scheduled to run on the same machine.
Are either of these two options viable or is there a solution that I have not considered yet?
- 主要语言
- Python
- 星标
- 989
- 派生
- 225
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tensorflow/transform 的其他 Issue
-
stat:contributions welcome type:bug
难度 2/5 1-3 小时 新手友好度 45/100
tensorflow/transform#347 ·
-
bug stat:awaiting response
难度 3/5 1-2 天 新手友好度 35/100
tensorflow/transform#339 · 2 条评论 ·
-
stat:contributions welcome type:bug
tensorflow/transform#273 · 已指派 1 人 ·
-
stat:contributions welcome type:support
tensorflow/transform#272 · 4 条评论 · 已指派 1 人 ·
-
stat:contributions welcome type:bug
tensorflow/transform#265 · 3 条评论 · 已指派 2 人 ·
查看 tensorflow/transform 的全部 Issue
相似的 Issue
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 90/100
simonw/sqlite-utils#872 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100