Skip to content

Commit 57ef06e

Browse files
committed
Apply isort and black reformatting
Signed-off-by: rhmukundan <[email protected]>
1 parent e0a4833 commit 57ef06e

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

scripts/performance/argument_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ def list_of_strings(arg):
425425
default=[],
426426
)
427427

428-
429428
parser.add_argument(
430429
"-ev",
431430
"--custom_env_vars",

scripts/performance/llm/finetune_llama4_e128.py

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

15+
import os
1516
from os.path import basename, splitext
1617

1718
import nemo_run as run
@@ -20,7 +21,7 @@
2021
from nemo.collections.llm.recipes.llama4_e128 import finetune_recipe, model
2122
from nemo.collections.llm.recipes.precision.mixed_precision import bf16_with_fp8_mixed
2223
from nemo.lightning.run.plugins import NsysPlugin, PerfEnvPlugin
23-
import os
24+
2425
from ..argument_parser import parse_cli_args
2526
from ..utils import (
2627
args_sanity_check,
@@ -225,7 +226,7 @@ def override_recipe_configs(
225226
args.partition,
226227
args.log_dir,
227228
1, # Single node for setup tasks
228-
1, # Single GPU for setup tasks
229+
1, # Single GPU for setup tasks
229230
args.time_limit,
230231
args.container_image,
231232
custom_mounts=args.custom_mounts,
@@ -256,7 +257,7 @@ def override_recipe_configs(
256257
name=exp_name,
257258
plugins=plugins,
258259
)
259-
260+
260261
if not args.dryrun:
261262
exp.run(sequential=True, detach=True)
262263
else:

scripts/performance/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,7 @@ def get_nemo_home(nemo_home=None):
549549
raise ValueError("Neither nemo_home argument nor NEMO_HOME environment variable is set")
550550

551551

552-
def prepare_squad_dataset(
553-
model_name: str, seq_length: int = 2048, nemo_home=None
554-
):
552+
def prepare_squad_dataset(model_name: str, seq_length: int = 2048, nemo_home=None):
555553
"""Prepare the SQuAD dataset for fine-tuning.
556554
557555
Args:
@@ -623,6 +621,7 @@ def prepare_squad_dataset_experiment(
623621
"prepare_squad_dataset_exp",
624622
)
625623

624+
626625
def isfile_train_pack_metadata(hf_model_uri: str, data_config: run.Config[SquadDataModule]) -> bool:
627626
"""
628627
This method is used for fine-tuning. It checks if packed train data for a partiular

0 commit comments

Comments
 (0)