Skip to content

Latest commit

 

History

History
154 lines (107 loc) · 3.99 KB

File metadata and controls

154 lines (107 loc) · 3.99 KB

Overview

<2-3 sentences expanding on the one-liner. Mention the key stages and what makes this pipeline useful.>

Pipeline flow

┌──────────────┐    ┌──────────────┐    ┌──────────────┐    ┌──────────────┐
│   Stage 1    │───▶│   Stage 2    │───▶│   Stage 3    │───▶│   Stage N    │
│  (describe)  │    │  (describe)  │    │  (describe)  │    │  (describe)  │
└──────────────┘    └──────────────┘    └──────────────┘    └──────────────┘
     input              ...                  ...               output

Prerequisites

  • Python 3.11+
  • NeMo Curator installed (see installation guide)
  • GPU: <required / recommended / not needed> —
  • System packages: <list any, e.g. sox, or "None">
# GPU (recommended)
uv sync --extra audio_cuda12

# CPU only
uv sync --extra audio_cpu

Dataset

<Describe the dataset: source, format, size, license.>

Property Value
Source
Format <e.g. WAV mono 16kHz, JSONL manifest>
Size <download size and/or number of files>
License <license name + link>
Auto-download <Yes — via --flag / No — requires manual acquisition>

Quick start

Run with bundled or auto-downloaded sample data in under 2 minutes:

python tutorials/audio/<tutorial>/run.py <minimal args>

Expected output:

<paste a representative snippet of terminal output>

Usage

All CLI options

Argument Default Description
--arg1 (required)
--arg2 value
--backend xenna Execution backend: xenna or ray_data
--clean off Remove output directory before running

Using custom data

python tutorials/audio/<tutorial>/run.py \
  --input /path/to/your/data \
  --output-dir ./my_output

Choosing a backend

Backend Description When to use
xenna Default. Cosmos-Xenna streaming engine with automatic worker allocation. Most workloads, CI/nightly benchmarks.
ray_data Built on Ray Data map_batches. Development, machines without Xenna GPU support, or Ray Data integration preferred.

Pipeline stages

<Describe each stage in order: what it does, key parameters, what it adds to the task data.>

Stage 1: <StageName>

<What it does. 2-3 sentences.>

Stage N: <StageName>

Parameters and tuning

Parameter Range Effect
<param> <low><high>

Output format

Results are written to <path>. Each line contains:

{
  "field1": "<type — description>",
  "field2": "<type — description>"
}
Field Type Description
field1 string
field2 float

Performance

Metric Value Hardware
Throughput <X files/sec or samples/sec> <GPU model, CPU count>
Total time (sample data)

Composability

This tutorial's stages can be combined with other NeMo Curator audio stages:

from nemo_curator.pipeline import Pipeline

pipeline = Pipeline(
    name="custom",
    stages=[
        # ... upstream stages ...
        ThisTutorialStage(...),
        # ... downstream stages ...
    ],
)

<Mention which upstream/downstream stages are natural pairings.>

Troubleshooting

Problem Cause Fix

Citation / License

<Dataset citation, model card link, license terms.>