nshtrainer 0.10.9__tar.gz → 0.10.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/PKG-INFO +1 -1
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/pyproject.toml +1 -1
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/early_stopping.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/finite_checks.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/model_checkpoint.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/norm_logging.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/throughput_monitor.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/wandb_watch.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/data/balanced_batch_sampler.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/base.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/config.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/modules/callback.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/modules/debug.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/modules/rlp_sanity_checks.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/modules/shared_parameters.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/util/environment.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/util/seed.py +2 -2
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/README.md +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/_checkpoint/loader.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/_checkpoint/metadata.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/_experimental/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/_experimental/flops/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/_experimental/flops/flop_counter.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/_experimental/flops/module_tracker.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/_throughput_monitor_callback.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/actsave.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/base.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/ema.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/gradient_skipping.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/interval.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/latest_epoch_checkpoint.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/log_epoch.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/on_exception_checkpoint.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/print_table.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/timer.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/data/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/data/transform.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/_experimental.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/actsave.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/callbacks.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/config.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/data.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/log.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/lr_scheduler.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/model.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/nn.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/optimizer.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/runner.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/snapshot.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/snoop.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/trainer.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/typecheck.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/ll/util.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/lr_scheduler/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/lr_scheduler/_base.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/lr_scheduler/linear_warmup_cosine.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/lr_scheduler/reduce_lr_on_plateau.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/metrics/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/metrics/_config.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/_environment.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/modules/distributed.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/modules/logger.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/model/modules/profiler.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/nn/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/nn/mlp.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/nn/module_dict.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/nn/module_list.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/nn/nonlinearity.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/optimizer.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/runner.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/scripts/find_packages.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/trainer/__init__.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/trainer/_runtime_callback.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/trainer/checkpoint_connector.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/trainer/signal_connector.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/trainer/trainer.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/util/slurm.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/util/typed.py +0 -0
- {nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/util/typing_utils.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
import math
|
|
2
|
-
from logging import getLogger
|
|
3
3
|
|
|
4
4
|
from lightning.fabric.utilities.rank_zero import _get_rank
|
|
5
5
|
from lightning.pytorch import Trainer
|
|
@@ -7,7 +7,7 @@ from lightning.pytorch.callbacks import EarlyStopping as _EarlyStopping
|
|
|
7
7
|
from lightning.pytorch.utilities.rank_zero import rank_prefixed_message
|
|
8
8
|
from typing_extensions import override
|
|
9
9
|
|
|
10
|
-
log = getLogger(__name__)
|
|
10
|
+
log = logging.getLogger(__name__)
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class EarlyStopping(_EarlyStopping):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import logging
|
|
2
2
|
from typing import Literal
|
|
3
3
|
|
|
4
4
|
import torch
|
|
@@ -7,7 +7,7 @@ from typing_extensions import override
|
|
|
7
7
|
|
|
8
8
|
from .base import CallbackConfigBase
|
|
9
9
|
|
|
10
|
-
log = getLogger(__name__)
|
|
10
|
+
log = logging.getLogger(__name__)
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def finite_checks(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
import re
|
|
2
3
|
from datetime import timedelta
|
|
3
|
-
from logging import getLogger
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from typing import TYPE_CHECKING, Literal
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ from .base import CallbackConfigBase
|
|
|
15
15
|
if TYPE_CHECKING:
|
|
16
16
|
from ..model.config import BaseConfig
|
|
17
17
|
|
|
18
|
-
log = getLogger(__name__)
|
|
18
|
+
log = logging.getLogger(__name__)
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def _convert_string(input_string: str):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import logging
|
|
2
2
|
from typing import Literal, cast
|
|
3
3
|
|
|
4
4
|
import torch
|
|
@@ -9,7 +9,7 @@ from typing_extensions import override
|
|
|
9
9
|
|
|
10
10
|
from .base import CallbackConfigBase
|
|
11
11
|
|
|
12
|
-
log = getLogger(__name__)
|
|
12
|
+
log = logging.getLogger(__name__)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def grad_norm(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import logging
|
|
2
2
|
from typing import Any, Literal, Protocol, TypedDict, cast, runtime_checkable
|
|
3
3
|
|
|
4
4
|
from typing_extensions import NotRequired, override
|
|
@@ -6,7 +6,7 @@ from typing_extensions import NotRequired, override
|
|
|
6
6
|
from ._throughput_monitor_callback import ThroughputMonitor as _ThroughputMonitor
|
|
7
7
|
from .base import CallbackConfigBase
|
|
8
8
|
|
|
9
|
-
log = getLogger(__name__)
|
|
9
|
+
log = logging.getLogger(__name__)
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ThroughputMonitorBatchStats(TypedDict):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import logging
|
|
2
2
|
from typing import Literal, Protocol, cast, runtime_checkable
|
|
3
3
|
|
|
4
4
|
import torch.nn as nn
|
|
@@ -9,7 +9,7 @@ from typing_extensions import override
|
|
|
9
9
|
|
|
10
10
|
from .base import CallbackConfigBase
|
|
11
11
|
|
|
12
|
-
log = getLogger(__name__)
|
|
12
|
+
log = logging.getLogger(__name__)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
@runtime_checkable
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import heapq
|
|
2
|
+
import logging
|
|
2
3
|
from functools import cached_property
|
|
3
|
-
from logging import getLogger
|
|
4
4
|
from typing import Any, Protocol, runtime_checkable
|
|
5
5
|
|
|
6
6
|
import numpy as np
|
|
@@ -10,7 +10,7 @@ from lightning_fabric.utilities.distributed import _DatasetSamplerWrapper
|
|
|
10
10
|
from torch.utils.data import BatchSampler, Dataset, DistributedSampler
|
|
11
11
|
from typing_extensions import override
|
|
12
12
|
|
|
13
|
-
log = getLogger(__name__)
|
|
13
|
+
log = logging.getLogger(__name__)
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
def _all_gather(tensor: torch.Tensor, device: torch.device | None = None):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import inspect
|
|
2
|
+
import logging
|
|
2
3
|
from abc import ABC, abstractmethod
|
|
3
4
|
from collections.abc import MutableMapping
|
|
4
|
-
from logging import getLogger
|
|
5
5
|
from typing import IO, TYPE_CHECKING, Any, Generic, cast
|
|
6
6
|
|
|
7
7
|
import torch
|
|
@@ -21,7 +21,7 @@ from .modules.profiler import ProfilerMixin
|
|
|
21
21
|
from .modules.rlp_sanity_checks import RLPSanityCheckModuleMixin
|
|
22
22
|
from .modules.shared_parameters import SharedParametersModuleMixin
|
|
23
23
|
|
|
24
|
-
log = getLogger(__name__)
|
|
24
|
+
log = logging.getLogger(__name__)
|
|
25
25
|
|
|
26
26
|
THparams = TypeVar("THparams", bound=BaseConfig, infer_variance=True)
|
|
27
27
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import copy
|
|
2
|
+
import logging
|
|
2
3
|
import os
|
|
3
4
|
import string
|
|
4
5
|
import time
|
|
@@ -6,7 +7,6 @@ import warnings
|
|
|
6
7
|
from abc import ABC, abstractmethod
|
|
7
8
|
from collections.abc import Iterable, Sequence
|
|
8
9
|
from datetime import timedelta
|
|
9
|
-
from logging import getLogger
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
from typing import (
|
|
12
12
|
Annotated,
|
|
@@ -46,7 +46,7 @@ from ..callbacks.base import CallbackConfigBase
|
|
|
46
46
|
from ..metrics import MetricConfig
|
|
47
47
|
from ._environment import EnvironmentConfig
|
|
48
48
|
|
|
49
|
-
log = getLogger(__name__)
|
|
49
|
+
log = logging.getLogger(__name__)
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
class IdSeedWarning(Warning):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
from collections import abc
|
|
2
3
|
from collections.abc import Callable, Iterable
|
|
3
|
-
from logging import getLogger
|
|
4
4
|
from typing import Any, TypeAlias, cast, final
|
|
5
5
|
|
|
6
6
|
from lightning.pytorch import Callback, LightningModule
|
|
@@ -9,7 +9,7 @@ from typing_extensions import override
|
|
|
9
9
|
|
|
10
10
|
from ...util.typing_utils import mixin_base_type
|
|
11
11
|
|
|
12
|
-
log = getLogger(__name__)
|
|
12
|
+
log = logging.getLogger(__name__)
|
|
13
13
|
|
|
14
14
|
CallbackFn: TypeAlias = Callable[[], Callback | Iterable[Callback] | None]
|
|
15
15
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
from collections.abc import Mapping
|
|
2
|
-
from logging import getLogger
|
|
3
3
|
from typing import cast
|
|
4
4
|
|
|
5
5
|
import torch
|
|
@@ -14,7 +14,7 @@ from ...util.typing_utils import mixin_base_type
|
|
|
14
14
|
from ..config import BaseConfig
|
|
15
15
|
from .callback import CallbackModuleMixin
|
|
16
16
|
|
|
17
|
-
log = getLogger(__name__)
|
|
17
|
+
log = logging.getLogger(__name__)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
def _on_train_start_callback(trainer: Trainer, pl_module: LightningModule):
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
from collections.abc import Sequence
|
|
2
|
-
from logging import getLogger
|
|
3
3
|
from typing import cast
|
|
4
4
|
|
|
5
5
|
import torch.nn as nn
|
|
@@ -10,7 +10,7 @@ from ...util.typing_utils import mixin_base_type
|
|
|
10
10
|
from ..config import BaseConfig
|
|
11
11
|
from .callback import CallbackRegistrarModuleMixin
|
|
12
12
|
|
|
13
|
-
log = getLogger(__name__)
|
|
13
|
+
log = logging.getLogger(__name__)
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
def _parameters_to_names(parameters: Sequence[nn.Parameter], model: nn.Module):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/_experimental/flops/module_tracker.py
RENAMED
|
File without changes
|
|
File without changes
|
{nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/_throughput_monitor_callback.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/latest_epoch_checkpoint.py
RENAMED
|
File without changes
|
|
File without changes
|
{nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/callbacks/on_exception_checkpoint.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/lr_scheduler/linear_warmup_cosine.py
RENAMED
|
File without changes
|
{nshtrainer-0.10.9 → nshtrainer-0.10.10}/src/nshtrainer/lr_scheduler/reduce_lr_on_plateau.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|