Skip to content

Commit d4e3d35

Browse files
committed
Adding more tests
Signed-off-by: Marc Romeyn <mromeijn@nvidia.com>
1 parent 2d944e3 commit d4e3d35

File tree

10 files changed

+857
-441
lines changed

10 files changed

+857
-441
lines changed

nemo_run/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from nemo_run.core.tunnel.client import LocalTunnel, SSHTunnel
2727
from nemo_run.devspace.base import DevSpace
2828
from nemo_run.help import help
29-
from nemo_run.lazy import LazyEntrypoint, lazy_imports
29+
from nemo_run.cli.lazy import LazyEntrypoint, lazy_imports
3030
from nemo_run.package_info import __package_name__, __version__
3131
from nemo_run.run.api import run
3232
from nemo_run.run.experiment import Experiment

nemo_run/cli/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
from nemo_run.core.execution import LocalExecutor, SkypilotExecutor, SlurmExecutor
6868
from nemo_run.core.execution.base import Executor
6969
from nemo_run.core.frontend.console.styles import BOX_STYLE, TABLE_STYLES
70-
from nemo_run.core.serialization.yaml import ConfigSerializer
71-
from nemo_run.lazy import LazyEntrypoint
70+
from nemo_run.cli.config import ConfigSerializer
71+
from nemo_run.cli.lazy import LazyEntrypoint
7272
from nemo_run.run.experiment import Experiment
7373
from nemo_run.run.plugin import ExperimentPlugin as Plugin
7474

nemo_run/cli/cli_parser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,11 @@ def dummy_model_config():
10461046
key, (op, value) = next(iter(parsed.items()))
10471047
logger.debug(f"Parsed key: {key}, op: {op}, value: {value}")
10481048

1049+
# Skip the internal _target_ argument used for serialization
1050+
if key == "_target_":
1051+
logger.debug(f"Skipping internal '_target_' argument: {arg}")
1052+
continue
1053+
10491054
if "." not in key:
10501055
if isinstance(fn, (Config, Partial)):
10511056
signature = inspect.signature(fn.__fn_or_cls__)

0 commit comments

Comments
 (0)