Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dlc_developer_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ deep_canary_mode = false
[build]
# Add in frameworks you would like to build. By default, builds are disabled unless you specify building an image.
# available frameworks - ["base", "vllm", "sglang", "autogluon", "huggingface_vllm", "huggingface_tensorflow", "huggingface_pytorch", "huggingface_tensorflow_trcomp", "huggingface_pytorch_trcomp", "pytorch_trcomp", "tensorflow", "pytorch", "stabilityai_pytorch"]
build_frameworks = []
build_frameworks = ["pytorch"]


# By default we build both training and inference containers. Set true/false values to determine which to build.
build_training = true
build_inference = true
build_inference = false

# Set do_build to "false" to skip builds and test the latest image built by this PR
# Note: at least one build is required to set do_build to "false"
Expand Down Expand Up @@ -124,7 +124,7 @@ nightly_pr_test_mode = false
dlc-pr-base = ""

# Standard Framework Training
dlc-pr-pytorch-training = ""
dlc-pr-pytorch-training = "pytorch/training/buildspec-2-8-ec2.yml"
dlc-pr-tensorflow-2-training = ""
dlc-pr-autogluon-training = ""

Expand Down Expand Up @@ -190,4 +190,4 @@ dlc-pr-vllm = ""
dlc-pr-huggingface-vllm = ""

# sglang
dlc-pr-sglang = ""
dlc-pr-sglang = ""
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def generate_safety_report_for_image(image_uri, image_info, storage_file_path=No
ctx = Context()
docker_run_cmd = f"docker run -id --entrypoint='/bin/bash' {image_uri} "
container_id = ctx.run(f"{docker_run_cmd}", hide=True, warn=True).stdout.strip()
install_safety_cmd = "pip install 'safety>=2.2.0,<3'"
install_safety_cmd = "pip install 'setuptools<82' 'safety>=2.2.0,<3'"
docker_exec_cmd = f"docker exec -i {container_id}"
ctx.run(f"{docker_exec_cmd} {install_safety_cmd}", hide=True, warn=True)
ignore_dict = get_safety_ignore_dict(
Expand Down