Support image columns and media collection in multi-shard Slurm runs

Open
#1,114 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@nabinchha is already working on this.

Since Oct 29, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement

Problem

Slurm planning explicitly rejects image columns when array_tasks.count > 1 in packages/data-designer-slurm/src/data_designer/slurm/planning/resolution.py.

Image generation can persist media separately from dataset rows. The current collection implementation merges verified Parquet outputs; it does not consolidate shard-local media files and preserve or rewrite their references. Removing the planning guard alone would therefore leave disk-backed image outputs unsupported.

Proposed solution

Define and implement image-output handling across shard generation, retries, winner publication, and collection. Include media artifacts in the output contract as needed, give them collision-safe identities, and ensure collected rows resolve to the correct images. Specify which persistence modes are supported.

Acceptance criteria

  • A dataset with an image column can run across multiple array tasks and be collected successfully.
  • Collected media references remain valid after collection, without depending on temporary allocation storage.
  • Media names cannot collide across shards or attempts.
  • Collection uses artifacts from winning attempts only and validates required files and their integrity.
  • Missing or corrupt media produces an actionable failure; retries and repeated collection do not publish partial output.
  • Tests cover supported persistence modes, shard retries, artifact references, and collection; documentation states any remaining restrictions.

Alternatives

Use a single array task for image generation, or assemble media and dataset references manually after separate runs.

Context

Related to #850. Plugin/custom-column sharding is tracked separately.

Dominant language
Python
Stars
2.4k
Forks
258
Avg merge
4d 20m
Merged PRs (30d)
32

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA-NeMo/DataDesigner

All issues in NVIDIA-NeMo/DataDesigner

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.