Skip to content

Commit

Permalink
Update formatting and remove changes that broke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaevIlya committed Aug 13, 2024
1 parent d035b88 commit 0868119
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/python-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ jobs:
- name: s3torchconnector lightning unit tests
run: pytest s3torchconnector/tst/unit/lightning --hypothesis-profile ci --hypothesis-show-statistics -c ./

- name: Install Lightning dependency
run: |
python -m pip install -e "s3torchconnector[lightning]"
- name: s3torchconnector lightning unit tests
run: pytest s3torchconnector/tst/unit/lightning --hypothesis-profile ci --hypothesis-show-statistics

lint:
name: Python lints
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion s3torchbenchmarking/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "s3torchbenchmarking"
version = "0.0.1"
description = "Tools to run and compare benchmarks against various PyTorch connectors like the s3torchconnector."
requires-python = ">=3.8,<3.12"
requires-python = ">=3.8,<3.13"
readme = "README.md"
dependencies = [
#TODO: Remove torch != 2.3.0 restriction when https://github.com/pytorch/data/issues/1244 is fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ def _collate_results(self) -> List:
job_result_path = os.path.join(job_output_dir, "result.json")
with open(job_result_path) as infile:
item = {
"job_id": job_return.hydra_cfg["hydra"]["job"]["id"]
if job_return.hydra_cfg
else "",
"job_id": (
job_return.hydra_cfg["hydra"]["job"]["id"]
if job_return.hydra_cfg
else ""
),
"cfg": OmegaConf.to_container(job_return.cfg),
"result": json.load(infile),
}
Expand Down
8 changes: 5 additions & 3 deletions s3torchbenchmarking/utils/download_and_transform_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ def extract_fields_dataloading(json_data: JsonData) -> ExtractedData:

extracted_data.append(
{
"sharding": cfg["dataset"].get("sharding")
if cfg["dataset"].get("sharding")
else "None",
"sharding": (
cfg["dataset"].get("sharding")
if cfg["dataset"].get("sharding")
else "None"
),
"model": cfg["training"]["model"],
"max_epochs": cfg["training"]["max_epochs"],
"prefix_uri_suffix": prefix_uri_suffix,
Expand Down

0 comments on commit 0868119

Please sign in to comment.