Pretrain, finetune ANY AI model of ANY size on 1 or 10,000+ GPUs with zero code changes.
3399 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/parity_fabric/conftest.py | 21 | def reset_deterministic_algorithm(): |
| LOW | tests/parity_fabric/test_parity_simple.py | 128 | def test_parity_single_device(precision, accelerator): |
| LOW | tests/tests_fabric/test_connector.py | 270 | def test_precision_and_precision_plugin_raises(): |
| LOW | tests/tests_fabric/test_connector.py | 277 | def test_interactive_compatible_dp_strategy_gpu(_, __, monkeypatch): |
| LOW | tests/tests_fabric/test_connector.py | 284 | def test_interactive_compatible_strategy_ddp_fork(monkeypatch): |
| LOW | tests/tests_fabric/test_connector.py | 319 | def test_strategy_choice_multi_node_gpu(_, strategy, strategy_class, devices): |
| LOW | tests/tests_fabric/test_connector.py | 324 | def test_num_nodes_input_validation(): |
| LOW | tests/tests_fabric/test_connector.py | 332 | def test_cuda_accelerator_can_not_run_on_system(_): |
| LOW | tests/tests_fabric/test_connector.py | 382 | def test_accelerator_gpu_with_devices(devices, strategy_class): |
| LOW | tests/tests_fabric/test_connector.py | 390 | def test_accelerator_auto_with_devices_gpu(): |
| LOW | tests/tests_fabric/test_connector.py | 396 | def test_set_devices_if_none_cpu(): |
| LOW | tests/tests_fabric/test_connector.py | 402 | def test_unsupported_strategy_types_on_cpu_and_fallback(): |
| LOW | tests/tests_fabric/test_connector.py | 448 | def test_strategy_choice_gpu_str(strategy, strategy_class): |
| LOW | tests/tests_fabric/test_connector.py | 453 | def test_device_type_when_strategy_instance_cpu_passed(): |
| LOW | tests/tests_fabric/test_connector.py | 460 | def test_device_type_when_strategy_instance_gpu_passed(): |
| LOW | tests/tests_fabric/test_connector.py | 467 | def test_validate_precision_type(precision): |
| LOW | tests/tests_fabric/test_connector.py | 776 | def test_gpu_accelerator_backend_choice(expected_accelerator_flag, expected_accelerator_class): |
| LOW | tests/tests_fabric/test_connector.py | 784 | def test_gpu_accelerator_backend_choice_cuda(*_): |
| LOW | tests/tests_fabric/test_connector.py | 793 | def test_gpu_accelerator_backend_choice_mps(*_: object) -> object: |
| LOW | tests/tests_fabric/test_connector.py | 801 | def test_gpu_accelerator_no_gpu_backend_found_error(*_): |
| LOW | tests/tests_fabric/test_connector.py | 884 | def test_precision_selection_model_parallel(_, precision, raises): |
| LOW | tests/tests_fabric/test_connector.py | 890 | def test_bitsandbytes_precision_cuda_required(monkeypatch): |
| LOW | tests/tests_fabric/test_connector.py | 899 | def test_strategy_str_passed_being_case_insensitive(_, strategy, strategy_cls): |
| LOW | tests/tests_fabric/test_connector.py | 81 | def test_accelerator_choice_tpu(accelerator, devices, tpu_available, monkeypatch): |
| LOW | tests/tests_fabric/test_connector.py | 95 | def test_strategy_choice_ddp_on_cpu(): |
| LOW | tests/tests_fabric/test_connector.py | 100 | def _test_strategy_choice_ddp_and_cpu(ddp_strategy_class): |
| LOW | tests/tests_fabric/test_connector.py | 124 | def test_custom_cluster_environment_in_slurm_environment(_): |
| LOW | tests/tests_fabric/test_connector.py | 133 | def creates_processes_externally(self) -> bool: |
| LOW | tests/tests_fabric/test_connector.py | 247 | def test_fallback_from_ddp_spawn_to_ddp_on_cluster(_, __, env_vars, expected_environment): |
| LOW | tests/tests_fabric/test_connector.py | 257 | def test_interactive_incompatible_backend_error(_, monkeypatch): |
| LOW | tests/tests_fabric/test_connector.py | 300 | def test_invalid_ddp_strategy_with_mps(accelerator, strategy, strategy_class): |
| LOW | tests/tests_fabric/test_connector.py | 346 | def test_tpu_accelerator_can_not_run_on_system(_): |
| LOW | tests/tests_fabric/test_connector.py | 353 | def test_accelerator_invalid_type_devices(_, device_count): |
| LOW | tests/tests_fabric/test_connector.py | 371 | def test_accelerator_cpu_with_devices(devices, strategy_class): |
| LOW | tests/tests_fabric/test_connector.py | 415 | def test_invalid_accelerator_choice(): |
| LOW | tests/tests_fabric/test_connector.py | 421 | def test_invalid_strategy_choice(invalid_strategy): |
| LOW | tests/tests_fabric/test_connector.py | 433 | def test_strategy_choice_cpu_str(strategy, strategy_class): |
| LOW | tests/tests_fabric/test_connector.py | 491 | def test_precision_conversion(patch1, patch2, precision, expected_precision, should_warn): |
| LOW | tests/tests_fabric/test_connector.py | 504 | def test_multi_device_default_strategy(): |
| LOW | tests/tests_fabric/test_connector.py | 513 | def test_strategy_choice_ddp_spawn_cpu(): |
| LOW | tests/tests_fabric/test_connector.py | 524 | def test_strategy_choice_ddp_fork_in_interactive(): |
| LOW | tests/tests_fabric/test_connector.py | 536 | def test_strategy_choice_ddp_fork_cpu(): |
| LOW | tests/tests_fabric/test_connector.py | 558 | def test_strategy_choice_ddp_spawn(*_): |
| LOW | tests/tests_fabric/test_connector.py | 570 | def test_strategy_choice_ddp_slurm(_, strategy, job_name, expected_env): |
| LOW | tests/tests_fabric/test_connector.py | 606 | def test_strategy_choice_ddp_torchelastic(*_): |
| LOW | tests/tests_fabric/test_connector.py | 627 | def test_torchelastic_priority_over_slurm(*_): |
| LOW | tests/tests_fabric/test_connector.py | 648 | def test_strategy_choice_ddp_kubeflow(*_): |
| LOW | tests/tests_fabric/test_connector.py | 667 | def test_strategy_choice_ddp_cpu_kubeflow(): |
| LOW | tests/tests_fabric/test_connector.py | 689 | def test_strategy_choice_ddp_cpu_slurm(strategy): |
| LOW | tests/tests_fabric/test_connector.py | 699 | def test_unsupported_tpu_choice(_, tpu_available): |
| LOW | tests/tests_fabric/test_connector.py | 715 | def test_connector_with_tpu_accelerator_instance(tpu_available, monkeypatch): |
| LOW | tests/tests_fabric/test_connector.py | 729 | def test_devices_auto_choice_mps(): |
| LOW | tests/tests_fabric/test_connector.py | 741 | def test_parallel_devices_in_strategy_conflict_with_accelerator(parallel_devices, accelerator): |
| LOW | tests/tests_fabric/test_connector.py | 757 | def test_plugin_only_one_instance_for_one_type(plugins, expected): |
| LOW | tests/tests_fabric/test_connector.py | 764 | def test_passing_zero_and_empty_list_to_devices_flag(accelerator, devices): |
| LOW | tests/tests_fabric/test_connector.py | 812 | def test_ddp_fork_on_unsupported_platform(_, __, strategy): |
| LOW | tests/tests_fabric/test_connector.py | 861 | def test_precision_selection_amp_ddp(strategy, devices, is_custom_plugin, plugin_cls): |
| LOW | tests/tests_fabric/test_connector.py | 915 | def test_precision_from_environment(_, precision, expected): |
| LOW | tests/tests_fabric/test_connector.py | 938 | def test_accelerator_strategy_from_environment(accelerator, strategy, expected_accelerator, expected_strategy): |
| LOW | tests/tests_fabric/test_connector.py | 953 | def test_devices_from_environment(*_): |
| 2073 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .codecov.yml | 1 | # Copyright The Lightning AI team. |
| LOW | .pre-commit-config.yaml | 1 | # Copyright The Lightning AI team. |
| LOW | pyproject.toml | 1 | # Copyright The Lightning AI team. |
| LOW | .readthedocs.yml | 1 | # Copyright The Lightning AI team. |
| LOW | setup.py | 1 | #!/usr/bin/env python |
| LOW | tests/parity_fabric/test_parity_ddp.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/parity_fabric/conftest.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/parity_fabric/models.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/parity_fabric/run_standalone_tasks.sh | 1 | #!/bin/bash |
| LOW | tests/parity_fabric/utils.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/parity_fabric/test_parity_simple.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/test_connector.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/conftest.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/test_fabric.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/test_wrappers.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/test_cli.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/loggers/test_tensorboard.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/loggers/test_csv.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/accelerators/test_mps.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/accelerators/test_registry.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/accelerators/test_cpu.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/accelerators/test_xla.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/accelerators/test_cuda.py | 1 | # Copyright The Lightning AI team. |
| LOW | …sts/tests_fabric/plugins/environments/test_kubeflow.py | 1 | # Copyright The Lightning AI team. |
| LOW | …ts/tests_fabric/plugins/environments/test_lightning.py | 1 | # Copyright The Lightning AI team. |
| LOW | …tests_fabric/plugins/environments/test_torchelastic.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/environments/test_lsf.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/environments/test_xla.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/environments/test_slurm.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/environments/test_mpi.py | 1 | # Copyright The Lightning AI team. |
| LOW | …ts_fabric/plugins/precision/test_double_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/precision/test_amp.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/precision/test_half.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/precision/test_fsdp.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/precision/test_double.py | 1 | # Copyright The Lightning AI team. |
| LOW | …ts_fabric/plugins/precision/test_transformer_engine.py | 1 | # Copyright The Lightning AI team. |
| LOW | …ts/tests_fabric/plugins/precision/test_bitsandbytes.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/precision/test_deepspeed.py | 1 | # Copyright The Lightning AI team. |
| LOW | …tests_fabric/plugins/precision/test_xla_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/plugins/precision/test_xla.py | 1 | # Copyright The Lightning AI team. |
| LOW | …fabric/plugins/precision/test_deepspeed_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | …tests_fabric/plugins/precision/test_amp_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_registry.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_xla_fsdp.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_strategy.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_fsdp.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_ddp.py | 1 | # Copyright The Lightning AI team. |
| LOW | …s/tests_fabric/strategies/test_xla_fsdp_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_dp.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_deepspeed.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_xla.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_model_parallel.py | 1 | # Copyright The Lightning AI team. |
| LOW | …/tests_fabric/strategies/test_deepspeed_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_single_device.py | 1 | # Copyright The Lightning AI team. |
| LOW | …s_fabric/strategies/test_model_parallel_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_ddp_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | tests/tests_fabric/strategies/test_fsdp_integration.py | 1 | # Copyright The Lightning AI team. |
| LOW | …_fabric/strategies/launchers/test_subprocess_script.py | 1 | # Copyright The Lightning AI team. |
| LOW | …ts_fabric/strategies/launchers/test_multiprocessing.py | 1 | # Copyright The Lightning AI team. |
| LOW | …rategies/launchers/test_multiprocessing_integration.py | 1 | # Copyright The Lightning AI team. |
| 449 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/parity_fabric/conftest.py | 0 | ensures that torch determinism settings are reset before the next test runs. |
| HIGH | tests/tests_fabric/conftest.py | 0 | ensures that torch determinism settings are reset before the next test runs. |
| HIGH | tests/tests_pytorch/conftest.py | 0 | ensures that torch determinism settings are reset before the next test runs. |
| HIGH | tests/tests_fabric/test_fabric.py | 0 | test that the strategy returns the context manager for initializing the module. |
| HIGH | tests/tests_pytorch/trainer/test_trainer.py | 0 | test that the strategy returns the context manager for initializing the module. |
| HIGH | tests/tests_pytorch/trainer/test_trainer.py | 0 | test that the strategy returns the context manager for initializing the module. |
| HIGH | tests/tests_fabric/loggers/test_tensorboard.py | 0 | verify that manual versioning works for string versions, e.g. '2020-02-05-162402'. |
| HIGH | tests/tests_fabric/loggers/test_csv.py | 0 | verify that manual versioning works for string versions, e.g. '2020-02-05-162402'. |
| HIGH | tests/tests_pytorch/loggers/test_tensorboard.py | 0 | verify that manual versioning works for string versions, e.g. '2020-02-05-162402'. |
| HIGH | tests/tests_pytorch/loggers/test_csv.py | 0 | verify that manual versioning works for string versions, e.g. '2020-02-05-162402'. |
| HIGH | …sts/tests_fabric/plugins/environments/test_kubeflow.py | 0 | test the default attributes when no environment variables are set. |
| HIGH | …ts/tests_fabric/plugins/environments/test_lightning.py | 0 | test the default attributes when no environment variables are set. |
| HIGH | …tests_fabric/plugins/environments/test_torchelastic.py | 0 | test the default attributes when no environment variables are set. |
| HIGH | tests/tests_fabric/plugins/environments/test_xla.py | 0 | test the default attributes when no environment variables are set. |
| HIGH | tests/tests_fabric/plugins/environments/test_slurm.py | 0 | test the default attributes when no environment variables are set. |
| HIGH | tests/tests_fabric/plugins/environments/test_mpi.py | 0 | test the default attributes when no environment variables are set. |
| HIGH | tests/tests_fabric/plugins/precision/test_fsdp.py | 0 | test to ensure that the context manager correctly is set to bfloat16. |
| HIGH | tests/tests_fabric/plugins/precision/test_fsdp.py | 0 | test to ensure that the context manager correctly is set to bfloat16. |
| HIGH | tests/tests_pytorch/plugins/precision/test_fsdp.py | 0 | test to ensure that the context manager correctly is set to bfloat16. |
| HIGH | tests/tests_fabric/strategies/test_xla_fsdp.py | 0 | test that the strategy returns the expected values depending on whether we're in the main process or not. |
| HIGH | tests/tests_fabric/strategies/test_xla.py | 0 | test that the strategy returns the expected values depending on whether we're in the main process or not. |
| HIGH | tests/tests_pytorch/strategies/test_xla.py | 0 | test that the strategy returns the expected values depending on whether we're in the main process or not. |
| HIGH | tests/tests_fabric/strategies/test_fsdp.py | 0 | test that the strategy validates the contents at the checkpoint path. |
| HIGH | tests/tests_fabric/strategies/test_model_parallel.py | 0 | test that the strategy validates the contents at the checkpoint path. |
| HIGH | tests/tests_pytorch/strategies/test_fsdp.py | 0 | test that the strategy validates the contents at the checkpoint path. |
| HIGH | tests/tests_pytorch/strategies/test_model_parallel.py | 0 | test that the strategy validates the contents at the checkpoint path. |
| HIGH | tests/tests_fabric/strategies/test_fsdp.py | 0 | test that the timeout gets passed to the ``torch.distributed.init_process_group`` function. |
| HIGH | tests/tests_fabric/strategies/test_ddp.py | 0 | test that the timeout gets passed to the ``torch.distributed.init_process_group`` function. |
| HIGH | tests/tests_fabric/strategies/test_model_parallel.py | 0 | test that the timeout gets passed to the ``torch.distributed.init_process_group`` function. |
| HIGH | tests/tests_pytorch/strategies/test_fsdp.py | 0 | test that the timeout gets passed to the ``torch.distributed.init_process_group`` function. |
| HIGH | tests/tests_pytorch/strategies/test_ddp.py | 0 | test that the timeout gets passed to the ``torch.distributed.init_process_group`` function. |
| HIGH | tests/tests_pytorch/strategies/test_model_parallel.py | 0 | test that the timeout gets passed to the ``torch.distributed.init_process_group`` function. |
| HIGH | tests/tests_fabric/strategies/test_ddp.py | 0 | test that the module under the init-context gets moved to the right device and dtype. |
| HIGH | …s_fabric/strategies/test_model_parallel_integration.py | 0 | test that the module under the init-context gets moved to the right device and dtype. |
| HIGH | tests/tests_fabric/strategies/test_fsdp_integration.py | 0 | test that the module under the init-context gets moved to the right device and dtype. |
| HIGH | tests/tests_pytorch/strategies/test_fsdp.py | 0 | test that the module under the init-context gets moved to the right device and dtype. |
| HIGH | tests/tests_pytorch/strategies/test_ddp.py | 0 | test that the module under the init-context gets moved to the right device and dtype. |
| HIGH | …_pytorch/strategies/test_model_parallel_integration.py | 0 | test that the module under the init-context gets moved to the right device and dtype. |
| HIGH | …/tests_fabric/strategies/test_deepspeed_integration.py | 0 | test to ensure zero stage 3 works with a parallel model. |
| HIGH | tests/tests_pytorch/strategies/test_deepspeed.py | 0 | test to ensure zero stage 3 works with a parallel model. |
| HIGH | tests/tests_pytorch/strategies/test_deepspeed.py | 0 | test to ensure zero stage 3 works with a parallel model. |
| HIGH | tests/tests_pytorch/loggers/test_mlflow.py | 0 | test that the logger creates the folders and files in the right place. |
| HIGH | tests/tests_pytorch/loggers/test_mlflow.py | 0 | test that the logger creates the folders and files in the right place. |
| HIGH | tests/tests_pytorch/loggers/test_wandb.py | 0 | test that the logger creates the folders and files in the right place. |
| HIGH | tests/tests_pytorch/loggers/test_wandb.py | 0 | test that the logger creates the folders and files in the right place. |
| HIGH | tests/tests_pytorch/loggers/test_wandb.py | 0 | test that the logger creates the folders and files in the right place. |
| HIGH | tests/tests_pytorch/models/test_restore.py | 0 | tests use case where trainer saves the model, and user loads it from tags independently. |
| HIGH | tests/tests_pytorch/models/test_restore.py | 0 | tests use case where trainer saves the model, and user loads it from tags independently. |
| HIGH | tests/tests_pytorch/models/test_restore.py | 0 | tests use case where trainer saves the model, and user loads it from tags independently. |
| HIGH | tests/tests_pytorch/trainer/test_trainer.py | 0 | tests use case where trainer saves the model, and user loads it from tags independently. |
| HIGH | tests/tests_pytorch/trainer/test_trainer.py | 0 | tests use case where trainer saves the model, and user loads it from tags independently. |
| HIGH | …s/tests_pytorch/checkpointing/test_model_checkpoint.py | 0 | test that no checkpoint is saved when an exception is raised during a sanity check or a fast dev run, or when a checkpoi |
| HIGH | …s/tests_pytorch/checkpointing/test_model_checkpoint.py | 0 | test that no checkpoint is saved when an exception is raised during a sanity check or a fast dev run, or when a checkpoi |
| HIGH | …s/tests_pytorch/checkpointing/test_model_checkpoint.py | 0 | test that no checkpoint is saved when an exception is raised during a sanity check or a fast dev run, or when a checkpoi |
| HIGH | tests/tests_pytorch/trainer/test_dataloaders.py | 0 | verify inf train, val & test dataloaders (e.g. iterabledataset) passed with batch limit as number. |
| HIGH | tests/tests_pytorch/trainer/test_dataloaders.py | 0 | verify inf train, val & test dataloaders (e.g. iterabledataset) passed with batch limit as number. |
| HIGH | tests/tests_pytorch/trainer/test_dataloaders.py | 0 | verify inf train, val & test dataloaders (e.g. iterabledataset) passed with batch limit as number. |
| HIGH | src/lightning/fabric/loggers/tensorboard.py | 0 | the directory for this run's tensorboard checkpoint. by default, it is named ``'version_${self.version}'`` but it can be |
| HIGH | src/lightning/pytorch/loggers/litlogger.py | 0 | the directory for this run's tensorboard checkpoint. by default, it is named ``'version_${self.version}'`` but it can be |
| HIGH | src/lightning/pytorch/loggers/tensorboard.py | 0 | the directory for this run's tensorboard checkpoint. by default, it is named ``'version_${self.version}'`` but it can be |
| 26 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/tests_pytorch/accelerators/test_cpu.py | 9 | |
| LOW | tests/tests_pytorch/strategies/test_ddp_integration.py | 24 | |
| LOW | tests/tests_pytorch/utilities/test_imports.py | 31 | |
| LOW | …ests_pytorch/utilities/test_deepspeed_model_summary.py | 19 | |
| LOW | tests/tests_pytorch/helpers/__init__.py | 1 | |
| LOW | tests/tests_pytorch/helpers/__init__.py | 1 | |
| LOW | tests/tests_pytorch/helpers/__init__.py | 1 | |
| LOW | tests/tests_pytorch/helpers/__init__.py | 1 | |
| LOW | tests/tests_pytorch/helpers/__init__.py | 7 | |
| LOW | …s_pytorch/trainer/logging_/test_distributed_logging.py | 18 | |
| LOW | requirements/pytorch/check-avail-extras.py | 2 | |
| LOW | requirements/pytorch/check-avail-extras.py | 3 | |
| LOW | requirements/pytorch/check-avail-extras.py | 4 | |
| LOW | requirements/pytorch/check-avail-extras.py | 5 | |
| LOW | requirements/pytorch/check-avail-extras.py | 6 | |
| LOW | docs/source-pytorch/conf.py | 17 | |
| LOW | docs/source-fabric/conf.py | 13 | |
| LOW | examples/fabric/reinforcement_learning/rl/utils.py | 11 | |
| LOW | examples/fabric/reinforcement_learning/rl/utils.py | 11 | |
| LOW | src/lightning/__init__.py | 16 | |
| LOW | src/lightning/__init__.py | 17 | |
| LOW | src/lightning/__init__.py | 18 | |
| LOW | src/lightning/__init__.py | 19 | |
| LOW | src/lightning/__init__.py | 20 | |
| LOW | src/lightning/__init__.py | 21 | |
| LOW | src/lightning/__init__.py | 21 | |
| LOW | src/lightning/__init__.py | 22 | |
| LOW | src/lightning/fabric/fabric.py | 79 | |
| LOW | src/lightning/fabric/__init__.py | 35 | |
| LOW | src/lightning/fabric/__init__.py | 36 | |
| LOW | src/lightning/fabric/__init__.py | 38 | |
| LOW | src/lightning/fabric/__init__.py | 41 | |
| LOW | src/lightning/fabric/__init__.py | 10 | |
| LOW | src/lightning/fabric/__init__.py | 12 | |
| LOW | src/lightning/fabric/__init__.py | 14 | |
| LOW | src/lightning/fabric/loggers/__init__.py | 13 | |
| LOW | src/lightning/fabric/loggers/__init__.py | 14 | |
| LOW | src/lightning/fabric/loggers/__init__.py | 15 | |
| LOW | src/lightning/fabric/accelerators/__init__.py | 16 | |
| LOW | src/lightning/fabric/accelerators/__init__.py | 17 | |
| LOW | src/lightning/fabric/accelerators/__init__.py | 17 | |
| LOW | src/lightning/fabric/accelerators/__init__.py | 18 | |
| LOW | src/lightning/fabric/accelerators/__init__.py | 20 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 14 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 15 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 16 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 17 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 18 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 19 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 20 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 21 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 22 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 23 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 24 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 25 | |
| LOW | src/lightning/fabric/plugins/__init__.py | 26 | |
| LOW | src/lightning/fabric/plugins/environments/__init__.py | 14 | |
| LOW | src/lightning/fabric/plugins/environments/__init__.py | 15 | |
| LOW | src/lightning/fabric/plugins/environments/__init__.py | 16 | |
| LOW | src/lightning/fabric/plugins/environments/__init__.py | 17 | |
| 322 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | README.md | 142 | # -------------------------------- |
| MEDIUM | README.md | 144 | # -------------------------------- |
| MEDIUM | README.md | 175 | # ------------------- |
| MEDIUM | README.md | 177 | # ------------------- |
| MEDIUM | README.md | 181 | # ------------------- |
| MEDIUM | README.md | 183 | # ------------------- |
| MEDIUM | tests/tests_pytorch/models/test_hparams.py | 96 | # ------------------------- |
| MEDIUM | tests/tests_pytorch/models/test_hparams.py | 98 | # ------------------------- |
| MEDIUM | tests/tests_pytorch/models/test_hparams.py | 263 | # ------------------------- |
| MEDIUM | tests/tests_pytorch/models/test_hparams.py | 265 | # ------------------------- |
| MEDIUM | tests/tests_pytorch/helpers/deterministic_model.py | 61 | # ----------------------------- |
| MEDIUM | tests/tests_pytorch/helpers/deterministic_model.py | 63 | # ----------------------------- |
| MEDIUM | tests/tests_pytorch/trainer/flags/test_fast_dev_run.py | 115 | # ----------------------- |
| MEDIUM | tests/tests_pytorch/trainer/flags/test_fast_dev_run.py | 117 | # ----------------------- |
| MEDIUM | …ts_pytorch/trainer/logging_/test_train_loop_logging.py | 49 | # ----------- |
| MEDIUM | …ts_pytorch/trainer/logging_/test_train_loop_logging.py | 51 | # ----------- |
| MEDIUM | …ts_pytorch/trainer/logging_/test_train_loop_logging.py | 54 | # ----------- |
| MEDIUM | …ts_pytorch/trainer/logging_/test_train_loop_logging.py | 56 | # ----------- |
| MEDIUM | …ts_pytorch/trainer/logging_/test_train_loop_logging.py | 66 | # ----------- |
| MEDIUM | …ts_pytorch/trainer/logging_/test_train_loop_logging.py | 68 | # ----------- |
| MEDIUM | docs/source-pytorch/conf.py | 27 | # ----------------------- |
| MEDIUM | docs/source-pytorch/conf.py | 29 | # ----------------------- |
| MEDIUM | docs/source-pytorch/conf.py | 36 | # ----------------------- |
| MEDIUM | docs/source-pytorch/conf.py | 38 | # ----------------------- |
| MEDIUM | …ples/pytorch/domain_templates/semantic_segmentation.py | 376 | # ------------------------ |
| MEDIUM | …ples/pytorch/domain_templates/semantic_segmentation.py | 378 | # ------------------------ |
| MEDIUM | …ples/pytorch/domain_templates/semantic_segmentation.py | 381 | # ------------------------ |
| MEDIUM | …ples/pytorch/domain_templates/semantic_segmentation.py | 383 | # ------------------------ |
| MEDIUM | …ples/pytorch/domain_templates/semantic_segmentation.py | 386 | # ------------------------ |
| MEDIUM | …ples/pytorch/domain_templates/semantic_segmentation.py | 388 | # ------------------------ |
| MEDIUM | …pytorch/domain_templates/generative_adversarial_net.py | 204 | # ------------------------ |
| MEDIUM | …pytorch/domain_templates/generative_adversarial_net.py | 206 | # ------------------------ |
| MEDIUM | …pytorch/domain_templates/generative_adversarial_net.py | 209 | # ------------------------ |
| MEDIUM | …pytorch/domain_templates/generative_adversarial_net.py | 211 | # ------------------------ |
| MEDIUM | …pytorch/domain_templates/generative_adversarial_net.py | 217 | # ------------------------ |
| MEDIUM | …pytorch/domain_templates/generative_adversarial_net.py | 219 | # ------------------------ |
| MEDIUM | src/lightning/fabric/plugins/environments/slurm.py | 76 | # ----------------------- |
| MEDIUM | src/lightning/fabric/plugins/environments/slurm.py | 78 | # ----------------------- |
| MEDIUM | src/lightning/fabric/plugins/environments/slurm.py | 89 | # ----------------------- |
| MEDIUM | src/lightning/fabric/plugins/environments/slurm.py | 91 | # ----------------------- |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 121 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 123 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 238 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 240 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 290 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 292 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 387 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 389 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 404 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loggers/litlogger.py | 406 | # ────────────────────────────────────────────────────────────────────────────── |
| MEDIUM | src/lightning/pytorch/loops/training_epoch_loop.py | 297 | # ===================================================================== |
| MEDIUM | src/lightning/pytorch/loops/training_epoch_loop.py | 302 | # ===================================================================== |
| MEDIUM | src/lightning/pytorch/loops/training_epoch_loop.py | 381 | # ----------------------------------------- |
| MEDIUM | src/lightning/pytorch/loops/training_epoch_loop.py | 383 | # ----------------------------------------- |
| MEDIUM | src/lightning/pytorch/loops/training_epoch_loop.py | 387 | # ----------------------------------------- |
| MEDIUM | src/lightning/pytorch/loops/training_epoch_loop.py | 389 | # ----------------------------------------- |
| MEDIUM | src/lightning/pytorch/loops/optimization/automatic.py | 180 | # ------------------- |
| MEDIUM | src/lightning/pytorch/loops/optimization/automatic.py | 182 | # ------------------- |
| MEDIUM | src/lightning/pytorch/loops/optimization/automatic.py | 187 | # ------------------------------ |
| MEDIUM | src/lightning/pytorch/loops/optimization/automatic.py | 189 | # ------------------------------ |
| 12 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …s_fabric/strategies/test_model_parallel_integration.py | 455 | # Create a FSDP sharded model |
| MEDIUM | …s_fabric/strategies/test_model_parallel_integration.py | 469 | # Create a raw state-dict checkpoint to test `Fabric.load_raw` too |
| MEDIUM | tests/tests_fabric/strategies/test_fsdp_integration.py | 306 | # Create a FSDP sharded model |
| MEDIUM | tests/tests_fabric/strategies/test_fsdp_integration.py | 325 | # Create a raw state-dict checkpoint to test `Fabric.load_raw` too |
| MEDIUM | tests/tests_fabric/utilities/test_cloud_io.py | 123 | # Create a fake adlfs module so isinstance check works |
| MEDIUM | tests/tests_pytorch/tuner/test_lr_finder.py | 811 | # Create a simple backbone-head architecture |
| MEDIUM | tests/tests_pytorch/loggers/test_wandb.py | 656 | # Create a config file with the log_model parameter set. This seems necessary to be able |
| MEDIUM | tests/tests_pytorch/callbacks/test_pruning.py | 430 | # Create a pruning callback that applies both pruning and LTH at epoch 1 |
| MEDIUM | …_pytorch/strategies/test_model_parallel_integration.py | 507 | # Create a regular model and load the checkpoint into it |
| MEDIUM | …_pytorch/strategies/test_model_parallel_integration.py | 537 | # Create a distributed model and load the checkpoint into it |
| MEDIUM | tests/tests_pytorch/models/test_hparams.py | 353 | instance = super().__call__(*args, **kwargs) # Create the instance |
| MEDIUM | …ts/tests_pytorch/trainer/flags/test_overfit_batches.py | 131 | # Create a reference train dataloader without shuffling. |
| MEDIUM | examples/fabric/kfold_cv/train_fabric.py | 105 | # Create the Lightning Fabric object. The parameters like accelerator, strategy, devices etc. will be provided |
| MEDIUM | examples/fabric/tensor_parallel/train.py | 18 | # Define the size of the 2D parallelism |
| MEDIUM | examples/fabric/tensor_parallel/train.py | 38 | # Define the optimizer |
| MEDIUM | examples/fabric/image_classifier/train_fabric.py | 74 | # Create the Lightning Fabric object. The parameters like accelerator, strategy, devices etc. will be proided |
| MEDIUM | examples/fabric/dcgan/train_torch.py | 67 | # Create the dataloader |
| MEDIUM | examples/fabric/dcgan/train_torch.py | 90 | # Create the generator |
| MEDIUM | examples/fabric/dcgan/train_torch.py | 100 | # Create the Discriminator |
| MEDIUM | examples/fabric/dcgan/train_fabric.py | 68 | # Create the dataloader |
| MEDIUM | examples/fabric/dcgan/train_fabric.py | 83 | # Create the generator |
| MEDIUM | examples/fabric/dcgan/train_fabric.py | 89 | # Create the Discriminator |
| MEDIUM | examples/fabric/reinforcement_learning/train_torch.py | 157 | # Define the agent and the optimizer and setup them with DistributedDataParallel |
| MEDIUM | examples/fabric/reinforcement_learning/train_fabric.py | 93 | # Define the agent and the optimizer and setup them with Fabric |
| MEDIUM | …abric/reinforcement_learning/train_fabric_decoupled.py | 50 | # Initialize Fabric object |
| MEDIUM | …abric/reinforcement_learning/train_fabric_decoupled.py | 68 | # Define the agent |
| MEDIUM | …abric/reinforcement_learning/train_fabric_decoupled.py | 234 | # Define the agent and the optimizer and setup them with Fabric |
| MEDIUM | …abric/reinforcement_learning/train_fabric_decoupled.py | 330 | # Create a global group, assigning it to the collective: used by the player to exchange |
| MEDIUM | …abric/reinforcement_learning/train_fabric_decoupled.py | 335 | # Create a group between rank-0 (player) and rank-1 (trainer), assigning it to the collective: |
| MEDIUM | …abric/reinforcement_learning/train_fabric_decoupled.py | 339 | # Create a new group, without assigning it to the collective: in this way the trainers can |
| MEDIUM | examples/fabric/meta_learning/train_fabric.py | 62 | # Create the Fabric object |
| MEDIUM | examples/pytorch/tensor_parallel/train.py | 51 | # Define the size of the 2D parallelism |
| MEDIUM | src/lightning/fabric/accelerators/registry.py | 23 | """This class is a Registry that stores information about the Accelerators. |
| MEDIUM | src/lightning/fabric/plugins/io/checkpoint_io.py | 79 | """This method is called to teardown the process.""" |
| MEDIUM | src/lightning/fabric/plugins/precision/precision.py | 158 | """This method is called to teardown the training process. |
| MEDIUM | src/lightning/fabric/strategies/registry.py | 20 | """This class is a Registry that stores information about the Training Strategies. |
| MEDIUM | src/lightning/fabric/strategies/strategy.py | 365 | """This method is called to teardown the training process. |
| MEDIUM | src/lightning/fabric/utilities/types.py | 53 | """This class is used to detect if an object is stateful using `isinstance(obj, _Stateful)`.""" |
| MEDIUM | src/lightning/fabric/utilities/distributed.py | 422 | # Create a barrier with an 'infinite' timeout (only reliably possible over the GLOO backend) |
| MEDIUM | src/lightning/fabric/utilities/data.py | 177 | """This function is used to handle the sampler, batch_sampler arguments associated within a DataLoader for its re- |
| MEDIUM | src/lightning/pytorch/overrides/distributed.py | 236 | """This class is used to wrap a :class:`torch.utils.data.BatchSampler` and capture its indices.""" |
| MEDIUM | src/lightning/pytorch/loggers/mlflow.py | 369 | # Create a temporary directory to log on mlflow |
| MEDIUM | src/lightning/pytorch/core/optimizer.py | 40 | """This class is used to wrap the user optimizers and handle properly the backward and optimizer_step logic across |
| MEDIUM | src/lightning/pytorch/core/optimizer.py | 64 | """This function is just a helper for advanced users. |
| MEDIUM | src/lightning/pytorch/callbacks/pruning.py | 447 | """This function is responsible of sanitizing ``parameters_to_prune`` and ``parameter_names``. If |
| MEDIUM | src/lightning/pytorch/callbacks/finetuning.py | 49 | r"""This class implements the base logic for writing your own Finetuning Callback. |
| MEDIUM | src/lightning/pytorch/callbacks/finetuning.py | 128 | """This function is used to flatten a module or an iterable of modules into a list of its leaf modules (modules |
| MEDIUM | src/lightning/pytorch/callbacks/finetuning.py | 227 | """This function is used to exclude any parameter which already exists in this optimizer. |
| MEDIUM | src/lightning/pytorch/callbacks/lr_monitor.py | 251 | """This function is used the remap the keys if param groups for a given optimizer increased.""" |
| MEDIUM | src/lightning/pytorch/plugins/io/async_plugin.py | 86 | """This method is called to close the threads.""" |
| MEDIUM | src/lightning/pytorch/strategies/strategy.py | 527 | """This method is called to teardown the training process. |
| MEDIUM | src/lightning/pytorch/profilers/pytorch.py | 105 | """This class is used to override the schedule logic from the profiler and perform recording for both |
| MEDIUM | src/lightning/pytorch/utilities/data.py | 238 | """This function is used to handle the sampler, batch_sampler arguments associated within a DataLoader for its re- |
| MEDIUM | src/lightning/pytorch/loops/fetchers.py | 87 | """This class is used to control batch fetching flow. |
| MEDIUM | src/lightning/pytorch/loops/fetchers.py | 147 | """This class is used to return directly the `dataloader_iter` to the ``LightningModule`` training_step for users |
| MEDIUM | …lightning/pytorch/trainer/connectors/data_connector.py | 237 | """This function is used to created the distributed sampler injected within the user DataLoader.""" |
| MEDIUM | …/pytorch/trainer/connectors/logger_connector/result.py | 456 | """This function is used to iterate over current valid metrics.""" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/lightning/fabric/fabric.py | 377 | Set up one or more optimizers for accelerated training. Some strategies do not allow setting up model and optim |
| HIGH | src/lightning/fabric/fabric.py | 536 | Clip the gradients of the model to a given max value or max norm. Args: module: The module whose pa |
| HIGH | src/lightning/fabric/fabric.py | 734 | Skip gradient synchronization during backward to avoid redundant communication overhead. Use this context manag |
| HIGH | src/lightning/fabric/fabric.py | 956 | Launch and initialize all the processes needed for distributed execution. Args: function: Optional |
| HIGH | src/lightning/fabric/accelerators/cpu.py | 81 | Parses the cpu_cores given in the format as accepted by the ``devices`` argument in the :class:`~lightning.pytorch.t |
| HIGH | src/lightning/fabric/plugins/io/torch_io.py | 67 | Loads checkpoint using :func:`torch.load`, with additional handling for ``fsspec`` remote loading of files. Arg |
| HIGH | src/lightning/fabric/strategies/deepspeed.py | 478 | Load the contents from a checkpoint and restore the state of the given objects. Args: path: A path |
| HIGH | src/lightning/fabric/utilities/logger.py | 78 | Flatten hierarchical dict, e.g. ``{'a': {'b': 'c'}} -> {'a/b': 'c'}``. Args: params: Dictionary containing |
| HIGH | src/lightning/fabric/utilities/device_parser.py | 24 | Args: gpus: Non-empty list of ints representing which GPUs to use Returns: Designated root GPU |
| HIGH | src/lightning/fabric/utilities/device_parser.py | 54 | Parses the GPU IDs given in the format as accepted by the :class:`~lightning.pytorch.trainer.trainer.Trainer`. Args |
| HIGH | src/lightning/fabric/utilities/device_parser.py | 117 | Checks that each of the GPUs in the list is actually available. Raises a MisconfigurationException if any of the GPU |
| HIGH | src/lightning/pytorch/loggers/comet.py | 46 | Track your parameters, metrics, source code and more using `Comet <https://www.comet.com/?utm_source=lightning.pytor |
| HIGH | src/lightning/pytorch/loggers/wandb.py | 52 | Log using `Weights and Biases <https://docs.wandb.ai/guides/integrations/lightning>`_. **Installation and set-up** |
| HIGH | src/lightning/pytorch/loggers/logger.py | 106 | Merge a sequence with dictionaries into one dictionary by aggregating the same keys with some given function. Args: |
| HIGH | src/lightning/pytorch/accelerators/cuda.py | 65 | Gets stats for the given GPU device. Args: device: GPU device for which to get stats Retur |
| HIGH | src/lightning/pytorch/accelerators/cuda.py | 123 | Get GPU stats including memory, fan speed, and temperature from nvidia-smi. Args: device: GPU device for wh |
| HIGH | src/lightning/pytorch/callbacks/pruning.py | 82 | Model pruning Callback, using PyTorch's prune utilities. This callback is responsible of pruning networks parame |
| HIGH | src/lightning/pytorch/callbacks/model_checkpoint.py | 51 | Save the model after every epoch by monitoring a quantity. Every logged metrics are passed to the :class:`~lightning |
| HIGH | src/lightning/pytorch/callbacks/early_stopping.py | 49 | Monitor a metric and stop training when it stops improving. Args: monitor: quantity to be monitored. |
| HIGH | src/lightning/pytorch/trainer/setup.py | 185 | Convert a time interval into seconds. This helper parses different representations of a time interval and norma |
| HIGH | src/lightning/pytorch/trainer/trainer.py | 651 | Perform one evaluation epoch over the validation set. Args: model: The model to validate. |
| HIGH | src/lightning/pytorch/trainer/trainer.py | 769 | Perform one evaluation epoch over the test set. It's separated from fit to make sure you never run on your test |
| HIGH | src/lightning/pytorch/trainer/trainer.py | 888 | Run inference on your data. This will call the model forward function to compute predictions. Useful to perform |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tests/tests_pytorch/test_cli.py | 545 | assert cli.config.fit.model.class_path.endswith(".BoringCkptPathSubclass") |
| CRITICAL | …s/tests_pytorch/core/test_metric_result_integration.py | 608 | pl.trainer.connectors.logger_connector.result.warning_cache.clear() |
| CRITICAL | …_pytorch/strategies/test_model_parallel_integration.py | 319 | assert self.model.w1.weight.device_mesh.size(0) == 2 |
| CRITICAL | …_pytorch/strategies/test_model_parallel_integration.py | 320 | assert self.model.w1.weight.device_mesh.size(1) == 2 |
| CRITICAL | tests/tests_pytorch/loops/test_loops.py | 255 | assert trainer.fit_loop.epoch_loop.val_loop.batch_progress.state_dict() == expected |
| CRITICAL | src/lightning/pytorch/tuner/batch_size_scaling.py | 409 | trainer.fit_loop.epoch_loop.automatic_optimization.optim_progress.reset() |
| CRITICAL | src/lightning/pytorch/tuner/batch_size_scaling.py | 411 | trainer.fit_loop.epoch_loop.manual_optimization.optim_step_progress.reset() |
| CRITICAL | src/lightning/pytorch/strategies/ddp.py | 253 | self._model_averager = torch.distributed.algorithms.model_averaging.averagers.PeriodicModelAverager( |
| CRITICAL | src/lightning/pytorch/trainer/trainer.py | 1363 | self.fit_loop.epoch_loop.val_loop._data_source.is_defined() |
| CRITICAL | …c/lightning/pytorch/trainer/configuration_validator.py | 65 | has_val_loader = trainer.fit_loop.epoch_loop.val_loop._data_source.is_defined() |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 88 | |
| LOW | tests/tests_fabric/conftest.py | 85 | |
| LOW | tests/tests_pytorch/conftest.py | 142 | |
| LOW | tests/tests_pytorch/tuner/test_scale_batch_size.py | 356 | |
| LOW | …sts/tests_pytorch/callbacks/test_throughput_monitor.py | 426 | |
| LOW | tests/tests_pytorch/utilities/test_combined_loader.py | 472 | |
| LOW | tests/tests_pytorch/loops/test_loops.py | 637 | |
| LOW | tests/tests_pytorch/loops/test_loops.py | 638 | |
| LOW | tests/tests_pytorch/trainer/test_trainer.py | 756 | |
| LOW | …ests_pytorch/trainer/logging_/test_logger_connector.py | 40 | |
| LOW | …ests_pytorch/trainer/logging_/test_logger_connector.py | 473 | |
| LOW | .actions/assistant.py | 58 | |
| LOW | examples/fabric/image_classifier/train_torch.py | 55 | |
| LOW | examples/fabric/image_classifier/train_fabric.py | 73 | |
| LOW | examples/fabric/build_your_own_trainer/trainer.py | 523 | |
| LOW | examples/fabric/dcgan/train_torch.py | 48 | |
| LOW | examples/fabric/dcgan/train_fabric.py | 49 | |
| LOW | examples/fabric/reinforcement_learning/train_torch.py | 110 | |
| LOW | examples/fabric/reinforcement_learning/train_fabric.py | 66 | |
| LOW | …abric/reinforcement_learning/train_fabric_decoupled.py | 42 | |
| LOW | …abric/reinforcement_learning/train_fabric_decoupled.py | 214 | |
| LOW | …amples/pytorch/domain_templates/reinforce_learn_ppo.py | 286 | |
| LOW | src/lightning/fabric/fabric.py | 1128 | |
| LOW | src/lightning/fabric/cli.py | 188 | |
| LOW | src/lightning/fabric/connector.py | 164 | |
| LOW | …ghtning/fabric/plugins/precision/transformer_engine.py | 151 | |
| LOW | src/lightning/fabric/strategies/fsdp.py | 415 | |
| LOW | src/lightning/fabric/strategies/fsdp.py | 515 | |
| LOW | src/lightning/fabric/strategies/strategy.py | 406 | |
| LOW | src/lightning/fabric/strategies/model_parallel.py | 544 | |
| LOW | src/lightning/fabric/utilities/throughput.py | 546 | |
| LOW | src/lightning/fabric/utilities/logger.py | 77 | |
| LOW | src/lightning/fabric/utilities/cloud_io.py | 85 | |
| LOW | src/lightning/fabric/utilities/data.py | 173 | |
| LOW | src/lightning/fabric/utilities/data.py | 359 | |
| LOW | src/lightning/pytorch/tuner/batch_size_scaling.py | 180 | |
| LOW | src/lightning/pytorch/tuner/batch_size_scaling.py | 235 | |
| LOW | src/lightning/pytorch/tuner/lr_finder.py | 199 | |
| LOW | src/lightning/pytorch/tuner/tuning.py | 31 | |
| LOW | src/lightning/pytorch/loggers/wandb.py | 378 | |
| LOW | src/lightning/pytorch/core/optimizer.py | 200 | |
| LOW | src/lightning/pytorch/core/optimizer.py | 250 | |
| LOW | src/lightning/pytorch/core/module.py | 1139 | |
| LOW | src/lightning/pytorch/core/module.py | 1168 | |
| LOW | src/lightning/pytorch/core/module.py | 1494 | |
| LOW | src/lightning/pytorch/callbacks/pruning.py | 66 | |
| LOW | src/lightning/pytorch/callbacks/pruning.py | 444 | |
| LOW | src/lightning/pytorch/callbacks/model_checkpoint.py | 340 | |
| LOW | src/lightning/pytorch/callbacks/finetuning.py | 113 | |
| LOW | src/lightning/pytorch/callbacks/lr_monitor.py | 250 | |
| LOW | src/lightning/pytorch/callbacks/early_stopping.py | 246 | |
| LOW | …/lightning/pytorch/callbacks/progress/tqdm_progress.py | 422 | |
| LOW | src/lightning/pytorch/strategies/fsdp.py | 524 | |
| LOW | src/lightning/pytorch/strategies/fsdp.py | 588 | |
| LOW | src/lightning/pytorch/profilers/pytorch.py | 167 | |
| LOW | src/lightning/pytorch/profilers/pytorch.py | 194 | |
| LOW | src/lightning/pytorch/utilities/model_helpers.py | 29 | |
| LOW | src/lightning/pytorch/utilities/data.py | 43 | |
| LOW | src/lightning/pytorch/utilities/data.py | 62 | |
| LOW | src/lightning/pytorch/utilities/data.py | 233 | |
| 17 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/tests_pytorch/profilers/test_profiler.py | 715 | # Check if setting max_name_column_width results in a wider table (more dashes) |
| LOW | …ts/tests_pytorch/trainer/flags/test_overfit_batches.py | 210 | # Check if the batches are identical |
| LOW | …ghtning/fabric/plugins/precision/transformer_engine.py | 174 | # Check if bias exists before attempting to clone its data |
| LOW | src/lightning/fabric/utilities/cloud_io.py | 170 | # Check if the path is not already taken by a file. If not, it is considered a valid directory-like path |
| LOW | src/lightning/pytorch/tuner/batch_size_scaling.py | 207 | # Check if this is the last trial before trying to double |
| LOW | src/lightning/pytorch/tuner/batch_size_scaling.py | 271 | # Check if we've reached max_trials before trying to adjust batch size |
| LOW | src/lightning/pytorch/tuner/lr_finder.py | 424 | # Check if we diverging |
| LOW | src/lightning/pytorch/core/module.py | 1384 | # Set gradients to `None` instead of zero to improve performance (not required on `torch>=2.0.0`). |
| LOW | src/lightning/pytorch/callbacks/pruning.py | 280 | # Check if the parameter has been pruned (has _orig suffix) |
| LOW | src/lightning/pytorch/callbacks/model_checkpoint.py | 355 | # Check if we should skip due to trainer/callback state |
| LOW | src/lightning/pytorch/callbacks/model_checkpoint.py | 376 | if not saved_models: # Check if dictionary is not empty |
| LOW | src/lightning/pytorch/strategies/model_parallel.py | 400 | # Check if key starts with "prefix." (the compiled module path) |
| LOW | src/lightning/pytorch/utilities/parsing.py | 249 | # Check if attribute in model |
| LOW | src/lightning/pytorch/utilities/parsing.py | 253 | # Check if attribute in model.hparams, either namespace or dict |
| LOW | src/lightning/pytorch/utilities/parsing.py | 258 | # Check if the attribute in datamodule (datamodule gets registered in Trainer) |
| LOW | …ng/pytorch/trainer/connectors/accelerator_connector.py | 576 | # Set benchmark to False to ensure determinism |
| LOW | …tning/pytorch/trainer/connectors/callback_connector.py | 182 | # Check if LitLogger is being used with log_model enabled |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …sts/tests_pytorch/callbacks/test_throughput_monitor.py | 464 | except Exception as e: |
| LOW | tests/tests_pytorch/helpers/datasets.py | 112 | except Exception as ex: |
| LOW | tests/tests_pytorch/helpers/threading.py | 27 | except Exception as e: |
| MEDIUM | tests/tests_pytorch/helpers/threading.py | 24 | def run(self): |
| LOW | …sts/tests_pytorch/trainer/test_ddp_sigterm_handling.py | 62 | except Exception as e: |
| LOW | tests/tests_pytorch/trainer/test_trainer.py | 157 | except Exception: |
| LOW | tests/tests_pytorch/trainer/test_trainer.py | 168 | except Exception: |
| LOW | …torch/trainer/optimization/test_manual_optimization.py | 195 | except Exception: |
| LOW | src/lightning/fabric/loggers/tensorboard.py | 215 | except Exception as ex: |
| LOW | src/lightning/fabric/utilities/logger.py | 70 | except Exception: |
| LOW | src/lightning/pytorch/tuner/batch_size_scaling.py | 100 | except Exception as ex: |
| LOW | src/lightning/pytorch/tuner/lr_finder.py | 284 | except Exception as ex: |
| LOW | src/lightning/pytorch/core/datamodule.py | 291 | except Exception: |
| LOW | src/lightning/pytorch/loops/training_epoch_loop.py | 266 | except Exception: |
| MEDIUM | src/lightning/pytorch/loops/training_epoch_loop.py | 259 | def _broadcast_sigterm_tensor(self) -> None: |
| LOW | src/lightning/pytorch/demos/mnist_datamodule.py | 112 | except Exception as ex: |
| MEDIUM | src/lightning/pytorch/demos/mnist_datamodule.py | 138 | print(f"Error {ex} downloading `torchvision.datasets.MNIST`") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/parity_fabric/utils.py | 27 | # The median is more robust to outliers than the mean |
| MEDIUM | tests/tests_fabric/utilities/test_data.py | 452 | """This test asserts, that custom `BatchSampler`, with all the arguments, that are required in order to properly |
| LOW | tests/tests_pytorch/callbacks/test_weight_averaging.py | 105 | # model and will just call the epoch-level hooks. For that reason, we check that we are not restarting before |
| LOW | tests/tests_pytorch/callbacks/test_weight_averaging.py | 154 | # model and will just call the epoch-level hooks. For that reason, we check that we are not restarting before |
| LOW | …/tests_pytorch/callbacks/test_stochastic_weight_avg.py | 107 | # not update the model and just call the epoch-level hooks, for that reason, we check that we are not |
| MEDIUM | tests/tests_pytorch/utilities/test_data.py | 144 | """This test asserts, that custom `BatchSampler`, with all the arguments, that are required in order to properly |
| MEDIUM | src/lightning/fabric/accelerators/cuda.py | 161 | return major >= 8 # Ampere and later leverage tensor cores, where this setting becomes useful |
| LOW | src/lightning/fabric/utilities/logger.py | 60 | # If it's a class, don't try to instantiate it, just return the name |
| MEDIUM | src/lightning/fabric/utilities/distributed.py | 350 | """Reset the sampler list in order to get new sampling.""" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/fabric/image_classifier/train_fabric.py | 93 | # don't forget to call `setup_dataloaders` to prepare for dataloaders for distributed training. |
| LOW | examples/fabric/image_classifier/train_fabric.py | 93 | # don't forget to call `setup_dataloaders` to prepare for dataloaders for distributed training. |
| LOW | examples/fabric/image_classifier/train_fabric.py | 99 | # don't forget to call `setup` to prepare for model / optimizer for distributed training. |
| LOW | examples/fabric/image_classifier/train_fabric.py | 99 | # don't forget to call `setup` to prepare for model / optimizer for distributed training. |
| LOW | …tning/fabric/strategies/launchers/subprocess_script.py | 132 | # if hydra is available and initialized, make sure to set the cwd correctly |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/legacy/generate_checkpoints.sh | 2 | # Usage: |
| LOW | docs/generate_docs_for_tags.sh | 2 | # Usage: |