Skip to content

Commit

Permalink
suppress old torch warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eegli committed Feb 3, 2025
1 parent 974a741 commit 98d1cbb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/e2e/trainer/run_trainer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import math
import os
import warnings
from pathlib import Path

warnings.filterwarnings("ignore", module="mblm.model.mamba_shim", category=UserWarning)

# https://github.com/pytorch/pytorch/issues/103444
warnings.filterwarnings("ignore", module="torch.optim.lr_scheduler", category=UserWarning)

import torch
from torch.optim import Adam, Optimizer # type: ignore
from torch.optim.lr_scheduler import CosineAnnealingLR, LinearLR, LRScheduler, SequentialLR
Expand Down

0 comments on commit 98d1cbb

Please sign in to comment.