Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/basics/code-packaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ running commands from it.
```
In all cases, uncommitted code will not be used.

!!! note

You can override the default packaging behavior with the following environment variables:

- `NEMO_SKILLS_FORCE_PATTERN_PACKAGER=1` — Skip git-based packaging entirely and always use the installed
`nemo_skills` package tree (PatternPackager). Useful when you have an editable install and don't want
packaging tied to the git state of your current directory.
- `NEMO_SKILLS_FORCE_INSTALLED_PACKAGE=1` — When running from a git repo, use the installed `nemo_skills`
package instead of the repo's `nemo_skills/` directory. The git repo is still packaged, but `nemo_skills`
is picked up from the installed location. Useful when your repo checkout has extra files you don't want
uploaded.

Note that `NEMO_SKILLS_FORCE_INSTALLED_PACKAGE` has no effect when `NEMO_SKILLS_FORCE_PATTERN_PACKAGER`
is also set, since the latter bypasses the git repo branch entirely.


Finally, it's important to keep in mind that whenever you submit a new experiment, NeMo-Run will create a copy of your
code package both locally (inside `~/.nemo_run`) and on cluster (inside `ssh_tunnel/job_dir` path in your cluster config).
Expand Down
1 change: 1 addition & 0 deletions nemo_skills/pipeline/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from nemo_skills.pipeline.generate import generate
from nemo_skills.pipeline.megatron_lm.train import train_megatron_lm
from nemo_skills.pipeline.nemo_evaluator import nemo_evaluator
from nemo_skills.pipeline.nemo_gym_rollouts import nemo_gym_rollouts
from nemo_skills.pipeline.nemo_rl.grpo import grpo_nemo_rl
from nemo_skills.pipeline.nemo_rl.sft import sft_nemo_rl
from nemo_skills.pipeline.prepare_data import prepare_data
Expand Down
Loading