Skip to content

Commit

Permalink
Apply isort and black reformatting
Browse files Browse the repository at this point in the history
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
  • Loading branch information
akoumpa committed Oct 10, 2024
1 parent 21e135e commit 8a0f62c
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion nemo/collections/llm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

from nemo.lightning import AutoResume, NeMoLogger, OptimizerModule, Trainer, io
from nemo.lightning.pytorch.callbacks import PEFT, ModelTransform
from nemo.utils import logging
from nemo.lightning.run import cli_entrypoint
from nemo.utils import logging

TokenizerType = Any

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.collections.llm.recipes.precision.mixed_precision import bf16_mixed
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "mistral"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/mixtral_8x22b.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.lightning.pytorch.callbacks.megatron_comm_overlap import MegatronCommOverlapCallback
from nemo.lightning.pytorch.callbacks.moe_token_drop import MegatronTokenDropCallback
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "mixtral_8x22b"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/mixtral_8x7b.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.lightning.pytorch.callbacks.megatron_comm_overlap import MegatronCommOverlapCallback
from nemo.lightning.pytorch.callbacks.moe_token_drop import MegatronTokenDropCallback
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "mixtral_8x7b"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/mixtral_8x7b_16k.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.gpt.data.mock import MockDataModule
from nemo.collections.llm.gpt.data.squad import SquadDataModule
from nemo.collections.llm.recipes import mixtral_8x7b
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "mixtral_8x7b_16k"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/mixtral_8x7b_64k.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.gpt.data.mock import MockDataModule
from nemo.collections.llm.gpt.data.squad import SquadDataModule
from nemo.collections.llm.recipes import mixtral_8x7b
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "mixtral_8x7b_64k"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron3_4b.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron3_4b"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron3_8b.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron3_8b"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron4_15b.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron4_15b"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron4_15b_16k.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron4_15b_16k"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron4_15b_64k.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron4_15b_64k"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron4_22b.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron4_22b"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron4_22b_16k.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron4_22b_16k"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron4_22b_64k.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron4_22b_64k"

Expand Down
2 changes: 1 addition & 1 deletion nemo/collections/llm/recipes/nemotron4_340b.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
from nemo.collections.llm.recipes.log.default import default_log, default_resume, tensorboard_logger
from nemo.collections.llm.recipes.nemotron import nemotron_model, nemotron_trainer
from nemo.collections.llm.recipes.optim.adam import distributed_fused_adam_with_cosine_annealing
from nemo.utils.exp_manager import TimingCallback
from nemo.lightning.run import cli_factory
from nemo.utils.exp_manager import TimingCallback

NAME = "nemotron4_340b"

Expand Down
3 changes: 2 additions & 1 deletion nemo/collections/llm/recipes/optim/adam.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

import nemo_run as run
from megatron.core.optimizer import OptimizerConfig
from nemo.lightning.run import cli_factory

from nemo.lightning.pytorch.optim import CosineAnnealingScheduler, MegatronOptimizerModule, OptimizerModule
from nemo.lightning.run import cli_factory


@cli_factory
Expand Down
1 change: 0 additions & 1 deletion nemo/lightning/run/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ def wrapper(*args, **kwargs):
return wrapper

return decorator

0 comments on commit 8a0f62c

Please sign in to comment.