Skip to content

Commit 9d7c53c

Browse files
Fix ruff linting errors - remove unused imports
- Remove unused 'import os' and 'import warnings' from trl/experimental/orpo/orpo_trainer.py - Remove unused 'from typing import Any' from trl/trainer/orpo_trainer.py
1 parent 18040a4 commit 9d7c53c

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

trl/experimental/orpo/orpo_trainer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
# limitations under the License.
1414

1515
import inspect
16-
import os
1716
import random
1817
import textwrap
19-
import warnings
2018
from collections import defaultdict
2119
from collections.abc import Callable
2220
from contextlib import nullcontext

trl/trainer/orpo_trainer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import warnings
1616
from collections.abc import Callable
17-
from typing import Any
1817

1918
import torch
2019
import torch.nn as nn

0 commit comments

Comments
 (0)