How nv-morpheus/morpheus-experimental works
Main Components
a. Source Repository (GitHub)
– Contains: .github (issue/pr templates, workflows), CI scripts, Docker scripts, setup.cfg.
– Central hub for code, configuration, and templates.
b. CI/CD Subsystem
– ci/conda_env (environments), ci/scripts (linting, tests, release).
– Automates environment creation, code checks, version bumps, packaging.
c. Containerization Layer
– docker/Dockerfile, docker/build_container.sh, docker/run_container.sh, entrypoint.
– Builds and launches a GPU‐enabled container image with Morpheus Experimental.
d. Prototype Modules (one per subdirectory)
– ai-credit-fraud-workflow, anomalous-auth-detection, appshield-dga-detection, …, string-resemblance-grouping.
– Each module includes:
• datasets/ (sample or links)
• models/ (trained artifacts, ONNX/PyTorch/TensorFlow)
• training-tuning (scripts + tutorial notebooks + requirements)
• inference (standalone scripts + requirements)
• optionally morpheus-pipeline (preprocessing, run.py, Triton repo, config.pbtxt)
• documentation (README.md, docs/).
e. Runtime Environment
– Developer workstation or GPU cluster with Docker Engine + NVIDIA GPU drivers + Git LFS.
– Jupyter notebooks for ad-hoc exploration.
f. Morpheus Pipeline Orchestrator
– Within each prototype’s morpheus-pipeline, a sequence of stages (e.g., create_feature.py, preprocessing.py, run.py, Triton inference stage).
– Interacts with the Triton Inference Server (for ONNX models) if present.
Relationships and Data Flows
– Developers push code → GitHub → triggers CI workflows → builds/testing.
– On successful CI, Docker build_pipeline.sh produces a runtime image.
– Developer pulls or runs container → enters an isolated environment.
– Within container:
• Choose a prototype directory → pip install -r requirements.txt → data ingestion from datasets/
• Execute training notebook or script → outputs model artifacts → written to models/
• Execute inference script or Morpheus pipeline → loads model + datasets → runs preprocessing → model inference → postprocessing → outputs results.
– Optional: Push trained models to a model registry or external storage.
– Each morpheus-pipeline uses NVIDIA Triton Server for ONNX models, passing data from preprocessing through Triton → returns predictions to downstream stages.
Architectural Patterns and Design Principles
– Monorepo pattern: all prototypes in a single repository sharing CI and container build.
– Modular design: each prototype is self-contained, enabling adding/removing without affecting others.
– Containerization: isolates environment, ensures reproducibility, enforces GPU requirements.
– CI/CD pipelines: enforce code quality, environment consistency, version control.
– Pipeline orchestration (Morpheus): stage‐based processing, pluggable components, integration with Triton.