Skip to content

Commit

Permalink
Apply isort and black reformatting
Browse files Browse the repository at this point in the history
Signed-off-by: BoxiangW <[email protected]>
  • Loading branch information
BoxiangW committed Jan 7, 2025
1 parent b78205a commit 1e069c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions tests/collections/llm/hf/sft_fsdp2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
import fiddle as fdl
import torch
from lightning.pytorch.loggers import WandbLogger
from packaging.version import Version as PkgVersion
from utils import get_torch_version_str

from nemo import lightning as nl
from nemo.collections import llm
from nemo.lightning.pytorch.accelerate.transformer_engine import is_te_accelerated
from utils import get_torch_version_str

from packaging.version import Version as PkgVersion

DATA_PATH = '/home/TestData/lite/hf_cache/squad/'

Expand Down
6 changes: 2 additions & 4 deletions tests/collections/llm/hf/sft_nemorun_fsdp2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
# limitations under the License.

import nemo_run as run
from packaging.version import Version as PkgVersion
from utils import get_torch_version_str

import nemo.lightning as nl
from nemo.collections import llm
from nemo.collections.common.tokenizers.huggingface.auto_tokenizer import AutoTokenizer
from nemo.collections.llm.gpt.data.hf_dataset import SquadHFDataModule

from utils import get_torch_version_str

from packaging.version import Version as PkgVersion

DATA_PATH = '/lustre/fsw/coreai_dlalgo_llm/boxiangw/squad'


Expand Down
2 changes: 1 addition & 1 deletion tests/collections/llm/hf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ def get_torch_version_str():
if hasattr(torch, '__version__'):
return str(torch.__version__)
else:
return version("torch")
return version("torch")

0 comments on commit 1e069c3

Please sign in to comment.