Add Custom Environment
Learn how to package dependencies for NeMo Curator using a container image.
The NeMo Curator container provides a primary curator conda environment with pre-installed dependencies. If your pipeline needs additional system or Python packages, create a custom image. Refer to the container environments reference for defaults and build arguments.
Before You Start
Before you begin, make sure that you have:
- Reviewed the pipeline concepts and diagrams.
- A base container image suitable for NeMo Curator.
- Optionally created custom code that defines your new requirements.
How to Add Dependencies with a Dockerfile
Define Build Steps
-
Create an
environmentsdirectory anywhere on your system to organize your custom pipeline stage environments. -
Create a new folder for your environment, for example:
my-env/. -
Create a
Dockerfilethat installs your environment’s dependencies on top of the base image. -
Save the file.
Build the Container
Build and tag your image using Docker or your preferred tool:
Next Steps
Now that you have created a custom environment, you can create custom code for that environment.