Skip to content

Commit

Permalink
fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
Малахов Алексей Павлович committed Sep 30, 2024
1 parent c4716c7 commit 21a453b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion turbo_alignment/cherry_picks/multimodal.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Iterable

import torch
import wandb
from PIL import Image
from transformers import PreTrainedTokenizerBase

import wandb
from turbo_alignment.cherry_picks.base import CherryPickCallbackBase
from turbo_alignment.dataset.multimodal import InferenceMultimodalDataset
from turbo_alignment.generators.multimodal import MultimodalGenerator
Expand Down
2 changes: 1 addition & 1 deletion turbo_alignment/common/logging/weights_and_biases.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any

import wandb
from wandb.sdk.lib.disabled import RunDisabled
from wandb.sdk.wandb_run import Run

import wandb
from turbo_alignment.settings.logging.weights_and_biases import WandbSettings


Expand Down
2 changes: 1 addition & 1 deletion turbo_alignment/common/tf/callbacks/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import numpy as np
import pandas as pd
import wandb
from clearml import Task
from transformers import (
TrainerCallback,
Expand All @@ -13,7 +14,6 @@
from wandb.sdk.lib.disabled import RunDisabled
from wandb.sdk.wandb_run import Run

import wandb
from turbo_alignment.common.logging import get_project_logger

logger = get_project_logger()
Expand Down
4 changes: 3 additions & 1 deletion turbo_alignment/modeling/liger_kernels/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from monkey_patch_liger import *
from turbo_alignment.modeling.liger_kernels.monkey_patch_liger import (
apply_liger_kernel_to_gemma2,
)
2 changes: 2 additions & 0 deletions turbo_alignment/modeling/liger_kernels/cross_entropy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# mypy: ignore-errors
# pylint: skip-file
import torch
import triton
import triton.language as tl
Expand Down
2 changes: 2 additions & 0 deletions turbo_alignment/modeling/liger_kernels/geglu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# mypy: ignore-errors
# pylint: skip-file
import operator

import torch
Expand Down
2 changes: 2 additions & 0 deletions turbo_alignment/modeling/liger_kernels/rope.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# mypy: ignore-errors
# pylint: skip-file
import torch
import triton
import triton.language as tl
Expand Down
13 changes: 2 additions & 11 deletions turbo_alignment/modeling/liger_kernels/utils.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
"""
This file incorporates code from Unsloth licensed under the Apache License, Version 2.0.
See the original Unsloth repository at https://github.com/unslothai/unsloth.
The following line
https://github.com/linkedin/Liger-Kernel/blob/7382a8761f9af679482b968f9348013d933947c7/src/liger_kernel/ops/utils.py#L23
is based on code from Unsloth, located at:
https://github.com/unslothai/unsloth/blob/fd753fed99ed5f10ef8a9b7139588d9de9ddecfb/unsloth/kernels/utils.py#L43
Modifications made by Yanning Chen, 2024.
"""
# mypy: ignore-errors
# pylint: skip-file

import functools
import importlib
Expand Down

0 comments on commit 21a453b

Please sign in to comment.