Skip to content
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

[lint] buildifier format train build files #41833

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
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
16 changes: 10 additions & 6 deletions doc/source/train/examples/lightgbm/BUILD
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
load("//bazel:python.bzl", "py_test_run_all_notebooks")

filegroup(
name="lightgbm_examples",
srcs=glob(["*.ipynb"]),
visibility=["//doc:__subpackages__"],
name = "lightgbm_examples",
srcs = glob(["*.ipynb"]),
visibility = ["//doc:__subpackages__"],
)

py_test_run_all_notebooks(
size = "medium",
include = ["*.ipynb"],
data = ["//doc/source/train/examples/lightgbm:lightgbm_examples"],
exclude = [],
data=["//doc/source/train/examples/lightgbm:lightgbm_examples"],
tags=["exclusive", "team:ml", "ray_air"],
)
tags = [
"exclusive",
"ray_air",
"team:ml",
],
)
25 changes: 15 additions & 10 deletions doc/source/train/examples/lightning/BUILD
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
load("//bazel:python.bzl", "py_test_run_all_notebooks")

filegroup(
name="lightning_examples",
srcs=glob(["*.ipynb"]),
visibility=["//doc:__subpackages__"],
name = "lightning_examples",
srcs = glob(["*.ipynb"]),
visibility = ["//doc:__subpackages__"],
)

# GPU tests
py_test_run_all_notebooks(
size="large",
include=["*.ipynb"],
exclude=[
"dolly_lightning_fsdp_finetuning.ipynb", # Release Test
"vicuna_13b_lightning_deepspeed_finetune.ipynb", # Release Test
size = "large",
include = ["*.ipynb"],
data = ["//doc/source/train/examples/lightning:lightning_examples"],
exclude = [
"dolly_lightning_fsdp_finetuning.ipynb", # Release Test
"vicuna_13b_lightning_deepspeed_finetune.ipynb", # Release Test
],
tags = [
"exclusive",
"gpu",
"ray_air",
"team:ml",
],
data=["//doc/source/train/examples/lightning:lightning_examples"],
tags=["exclusive", "team:ml", "gpu", "ray_air"],
)
21 changes: 15 additions & 6 deletions doc/source/train/examples/pytorch/BUILD
Original file line number Diff line number Diff line change
@@ -3,23 +3,32 @@ load("//bazel:python.bzl", "py_test_run_all_notebooks")
filegroup(
name = "train_pytorch_examples",
srcs = glob(["*.ipynb"]),
visibility = ["//doc:__subpackages__"]
visibility = ["//doc:__subpackages__"],
)

# GPU Tests
py_test_run_all_notebooks(
size = "large",
include = ["*.ipynb"],
exclude = ["convert_existing_pytorch_code_to_ray_train.ipynb"], # CPU test
data=["//doc/source/train/examples/pytorch:train_pytorch_examples"],
tags=["exclusive", "team:ml", "gpu", "ray_air"],
data = ["//doc/source/train/examples/pytorch:train_pytorch_examples"],
exclude = ["convert_existing_pytorch_code_to_ray_train.ipynb"], # CPU test
tags = [
"exclusive",
"gpu",
"ray_air",
"team:ml",
],
)

# CPU Tests
py_test_run_all_notebooks(
size = "large",
include = ["convert_existing_pytorch_code_to_ray_train.ipynb"],
data = ["//doc/source/train/examples/pytorch:train_pytorch_examples"],
exclude = [],
data=["//doc/source/train/examples/pytorch:train_pytorch_examples"],
tags=["exclusive", "team:ml", "ray_air"],
tags = [
"exclusive",
"ray_air",
"team:ml",
],
)
17 changes: 11 additions & 6 deletions doc/source/train/examples/transformers/BUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
load("//bazel:python.bzl", "py_test_run_all_notebooks")

filegroup(
name="huggingface_transformers_examples",
srcs=glob(["*.ipynb"]),
visibility=["//doc:__subpackages__"],
name = "huggingface_transformers_examples",
srcs = glob(["*.ipynb"]),
visibility = ["//doc:__subpackages__"],
)

# GPU Tests
py_test_run_all_notebooks(
size = "large",
include = ["*.ipynb"],
data = ["//doc/source/train/examples/transformers:huggingface_transformers_examples"],
exclude = [],
data=["//doc/source/train/examples/transformers:huggingface_transformers_examples"],
tags=["exclusive", "team:ml", "gpu", "ray_air"],
)
tags = [
"exclusive",
"gpu",
"ray_air",
"team:ml",
],
)
16 changes: 10 additions & 6 deletions doc/source/train/examples/xgboost/BUILD
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
load("//bazel:python.bzl", "py_test_run_all_notebooks")

filegroup(
name="xgboost_examples",
srcs=glob(["*.ipynb"]),
visibility=["//doc:__subpackages__"],
name = "xgboost_examples",
srcs = glob(["*.ipynb"]),
visibility = ["//doc:__subpackages__"],
)

py_test_run_all_notebooks(
size = "medium",
include = ["*.ipynb"],
data = ["//doc/source/train/examples/xgboost:xgboost_examples"],
exclude = [],
data=["//doc/source/train/examples/xgboost:xgboost_examples"],
tags=["exclusive", "team:ml", "ray_air"],
)
tags = [
"exclusive",
"ray_air",
"team:ml",
],
)