Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Sep 15, 2023
1 parent cf773f1 commit 8cc732c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 43 deletions.
3 changes: 3 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ ignore_missing_imports = True
[mypy-peft]
ignore_missing_imports = True

[mypy-wandb]
ignore_missing_imports = True

[mypy-bitsandbytes]
ignore_missing_imports = True

Expand Down
8 changes: 6 additions & 2 deletions src/axolotl/models/phi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .configuration_mixformer_sequential import MixFormerSequentialConfig
from .modeling_mixformer_sequential import MixFormerSequentialForCausalLM
"""
MixFormers model architecture used for phi models
"""

from .configuration_mixformer_sequential import MixFormerSequentialConfig # noqa
from .modeling_mixformer_sequential import MixFormerSequentialForCausalLM # noqa
40 changes: 0 additions & 40 deletions src/axolotl/monkeypatch/phi_attn_hijack_flash.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/axolotl/utils/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import pandas as pd
import torch
import torch.distributed as dist
import wandb
from datasets import load_dataset
from optimum.bettertransformer import BetterTransformer
from tqdm import tqdm
Expand All @@ -25,6 +24,7 @@
)
from transformers.trainer_utils import PREFIX_CHECKPOINT_DIR, IntervalStrategy

import wandb
from axolotl.utils.bench import log_gpu_memory_usage
from axolotl.utils.distributed import (
barrier,
Expand Down

0 comments on commit 8cc732c

Please sign in to comment.