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

Formatted imports #127

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
14 changes: 11 additions & 3 deletions core/custom_training_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@
- go/dataset-service 0-copy integration

"""
import datetime
import os
from typing import Callable, Dict, Iterable, List, Mapping, Optional
import datetime
from typing import (
Callable,
Dict,
Iterable,
List,
Mapping,
Optional
)



from tml.common import log_weights
import tml.common.checkpointing.snapshot as snapshot_lib
from tml.core.losses import get_global_loss_detached
import tml.common.checkpointing.snapshot as snapshot_lib
from tml.ml_logging.torch_logging import logging # type: ignore[attr-defined]
from tml.core.train_pipeline import TrainPipelineSparseDist

Expand Down
6 changes: 5 additions & 1 deletion core/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"""
from typing import Any, Dict

from tml.core.metric_mixin import MetricMixin, StratifyMixin, TaskMixin
from tml.core.metric_mixin import (
MetricMixin,
StratifyMixin,
TaskMixin
)

import torch
import torchmetrics as tm
Expand Down