Skip to content

ADR 0005/0006: Add declarative hpc.toml profile, slurm executor, and air-gapped offline enforcement #64

Backlog

Description

@wshlavacek

Reference

Goal

Enable humans and coding agents to run lightweight reads on HPC login nodes while routing heavy vector builds and large PDF conversions safely to SLURM GPU nodes via a declarative hpc.toml profile—and enforce strict air-gapped / sensitive-topic security controls.

Scope & Acceptance Criteria

  • Support a declarative cluster profile (~/.config/chatty/hpc.toml or /etc/chatty/hpc.toml) specifying executor = "local" | "slurm", container_image, cdi_spec_dir, cuda_lib_a/cuda_lib_b, hf_cache, local_ssd, partition, account, and gpus_per_node.
  • Implement executor = "slurm" for chatty index / corpus build operations:
    • generates the sbatch script from hpc.toml (wrapping ch-run + Charliecloud .sqfs + NVIDIA CDI + node-local SSD staging),
    • supports --dry-run --json to preview the exact sbatch script and resource request before submission,
    • submits via sbatch and returns structured JSON with job_id,
    • exposes chatty job status <job-id> --json combining squeue/sacct state with litkit checkpoint progress.
  • Air-gapped enforcement: When offline = true, HF_HUB_OFFLINE=1, or TRANSFORMERS_OFFLINE=1 is set, fail fast with a structured offline_mode JSON error on any online fetch/download command without attempting outbound network calls; ensure local ingest, SLURM build, and retrieval work completely offline with TRANSFORMERS_USE_SAFE_TENSORS=1.
  • Sensitive-topic hygiene: Enforce umask 077 for corpus workspaces, temp files, and LOCAL_SSD staging, and ensure generated SLURM scripts include cleanup trap handlers that purge node-local scratch on exit or abort.

December implementation and verification

#107, #118 and the combined #125 implement site profiles, preview/submission/status, collection resumption and private compute scratch. Local scheduler and Charliecloud stand-ins exercised the real document converters and indexer. Independent review exercised the generated Bash script, cleanup on failure, real CPU safetensors loaders with network access blocked, legacy-format rejection and shard repair. The strict loader is part of lanl/litkit#64 and is pinned by #125.

A native run still needs a site with SLURM, Charliecloud, NVIDIA CDI and the shared model cache. The unified suite image, distributable model pack and multi-node ingestion workflow are tracked in lanl/litkit#47.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions