aws / aws/sagemaker-python-sdk

Add support for multiple requirements.txt files

Đang mở
#2,690 1 bình luận 0 reaction 1 người được giao Được @nargokul nhận Xem trên GitHub
component: pysdk-team type: feature request
Ngôn ngữ chính
Python
Star
2.3k
Fork
1.3k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
35

Mô tả

**Describe the feature you'd like**

Right now, its expected that `requirements.txt` will be found (**With that name**) in the script directory. In some cases, multiple requirements.txt files are needed to install the correct dependencies. Unfortunately, right now you'd have to edit your code in order to merge to one unified requirements.txt file if you have multiple.

**How would this feature be used? Please describe.**

Allow `dependencies` kwarg to pick up any `.txt` files as requirements files when they're added to the list.

```python
estimator = HuggingFace(
...
dependencies=['./requirements.txt', '../_test_requirements.txt']
)
```

**Describe alternatives you've considered**
Right now, I'm:
- merging all requirements files a user specifies in a CLI tool I made
- Writing the merged requirements to a new tmp directory
- Adding all python files to the tmp directory as well
- Launching training runs out of the temp directory

I've also seen folks installing requirements directly in their python files, but that just feels wrong to me.

**Additional context**
...

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.