Skip to content

Commit

Permalink
remove icecream
Browse files Browse the repository at this point in the history
  • Loading branch information
ez2rok committed Sep 24, 2024
1 parent e07dc08 commit 82172b8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/algorithms/test_algorithms_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from composer import Algorithm, Trainer
from composer.algorithms import GyroDropout, LayerFreezing
from tests.algorithms.algorithm_settings import get_alg_dataloader, get_alg_kwargs, get_alg_model, get_algs_with_marks
from icecream import install
install()


@pytest.mark.gpu
@pytest.mark.parametrize('alg_cls', get_algs_with_marks())
Expand All @@ -16,7 +15,6 @@ def test_algorithm_trains(alg_cls: type[Algorithm]):
alg_kwargs = get_alg_kwargs(alg_cls)
model = get_alg_model(alg_cls)
dataloader = get_alg_dataloader(alg_cls)
ic(model, dataloader)
trainer = Trainer(
model=model,
train_dataloader=dataloader,
Expand Down
3 changes: 1 addition & 2 deletions tests/checkpoint/test_state_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
from tests.common.compare import deep_compare
from tests.common.markers import world_size
from tests.common.models import EvenSimplerMLP, SimpleComposerMLP, configure_tiny_gpt2_hf_model
from icecream import install
install()


@pytest.mark.gpu
@pytest.mark.parametrize('use_composer_model', [True, False])
Expand Down
1 change: 0 additions & 1 deletion tests/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ def loss(self, outputs: torch.Tensor, batch: tuple[Any, torch.Tensor], *args, **

def update_metric(self, batch: Any, outputs: Any, metric: Metric) -> None:
_, targets = batch
ic(metric, outputs, targets)
metric.update(outputs.squeeze(dim=0), targets.squeeze(dim=0))

def forward(self, batch: tuple[torch.Tensor, Any]) -> torch.Tensor:
Expand Down

0 comments on commit 82172b8

Please sign in to comment.