aws / aws/sagemaker-python-sdk
Something like a .sagemakerignore file option to allow for skipping of certain directories when creating source tar
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 1.3k
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 35
描述
**Describe the feature you'd like**
Similar to how in Docker there is a .dockerignore file which works like a .gitignore file, It would be great if there was a .sagemakerignore file so that any directories listed in that file would be skipped when making the tar file. I believe it would be a simple change here: https://github.com/aws/sagemaker-python-sdk/blob/744724b01bcdc3f451c9b73c34c947e12d6a8e2a/src/sagemaker/fw_utils.py#L486
Basically adding a few lines that check for the existence of a .sagemakerignore file in the directory of the `directory` variable, if it exists, and then skipping anything listed out in that file.
**How would this feature be used? Please describe.**
This would be useful to reduce the size of the source tar file which would allow a person to speed up sagemaker build creation without the need to restructure their code, if they have big files in the source directory that they don't commit to other things like git and docker, so they don't want it put into the sagemaker tarball
**Describe alternatives you've considered**
An alternative is not doing it
**Additional context**
I don't mind writing the code to do this but wanted to check in that this was something that would be accepted if I make a PR for it?
贡献指南
调研方向
从 src/sagemaker/fw_utils.py 第 486 行附近开始,查看创建源 tar 的位置,并检查目录内容是如何被选择的。根据 issue 确认 .sagemakerignore 的预期行为,然后验证列出的目录会从生成的 tar 中省略,而其他源文件仍然包含在内。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- build-system, machine-learning
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 62/100