Add more stages to processors, and allow for custom processors via callbacks

Offen
#159 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@andreatnvidia arbeitet bereits daran.

Seit 22.12.2025.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

enhancement

Is your feature request related to a problem? Please describe.

Right now processors only run after each batch is generated. It should also be possible for the execution to happen pre/post-generation.
Also, users should be able to implement custom processors easily via callbacks (same as e.g., the LocalCallableValidator).

Describe the solution you'd like

There are a couple of ways of going about this. Following the original plan, we would allow the user to pick different stages for any given processor.

However, it might be more interesting to have processors implementing all different stages via different methods - instead of process, preprocess/postprocess/process_after_batch/etc.
That because a processor could actually require different procedures to happen at different times (e.g., save artifacts after batch is generated, and collect all of them at the end).

Describe alternatives you've considered

n/a

Additional context

n/a

Vorherrschende Sprache
Python
Sterne
2.4k
Forks
258
Ø Merge
4 T. 20 Min.
Gemergte PRs (30 T.)
32

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NVIDIA-NeMo/DataDesigner

Alle Issues in NVIDIA-NeMo/DataDesigner

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.