Skip to content

Commit a5ca7d4

Browse files
committed
style
1 parent cfcec4a commit a5ca7d4

21 files changed

+2
-21
lines changed

tests/test_activation_offloading.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import torch
1716
from torch import nn
1817
from transformers import AutoModelForCausalLM

tests/test_best_of_n_sampler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import torch
1716
from transformers import AutoTokenizer, GenerationConfig
1817

tests/test_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import os
1716
from io import StringIO
1817
from unittest.mock import patch

tests/test_collators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import torch
1716

1817
from trl.trainer.dpo_trainer import DataCollatorForPreference

tests/test_core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import torch
1716

1817
from trl.core import masked_mean, masked_var, masked_whiten

tests/test_cpo_trainer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import torch
1716
from datasets import load_dataset
1817
from parameterized import parameterized

tests/test_kto_trainer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import pytest
1716
import torch
1817
from datasets import load_dataset

tests/test_modeling_geometric_mixture_wrapper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import torch
1716
from transformers import AutoModelForCausalLM, GenerationConfig
1817

tests/test_nash_md_trainer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
from datasets import load_dataset
1716
from parameterized import parameterized
1817
from transformers import AutoModelForCausalLM, AutoModelForSequenceClassification, AutoTokenizer

tests/test_orpo_trainer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
import torch
1716
from datasets import load_dataset
1817
from parameterized import parameterized

0 commit comments

Comments
 (0)