ADR 0005/0006: Add unified Charliecloud suite container flavor, offline SafeTensors model pack, and pdf_ingest_array.sbatch

未关闭
#47 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
22/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, docker-compose, huggingface, python, pytorch

调研方向

Start by reading ADR 0005 and ADR 0006, then inspect Dockerfile.lean, LITKIT_CLUSTER_GUIDE.md, and the existing SLURM scripts, especially vector_build_multi.sbatch. Map the requested container, model pack, PDF array workflow, and cleanup requirements to the repository's current build and ingestion entry points. Done means all listed acceptance criteria are implemented and the guide describes the air-gapped transfer and workflow.

由索引模型根据 Issue 内容生成。

描述

Reference

Goal

Provide a reproducible, air-gap-ready Charliecloud SquashFS container for the full chatty-suite (litkit + text-fetch[docling,ocr] + chatty + Debian tesseract-ocr), a separately transferable .safetensors model pack, and a SLURM GPU array recipe for large-scale PDF→JATS ingestion.

Scope & Acceptance Criteria

  • Add a unified suite container build target (extending Dockerfile.lean with NVIDIA CDI host CUDA bindings, plus optional -fat variant) installing:
    • litkit, text-fetch[docling,ocr], chatty, and Debian tesseract-ocr + tesseract-ocr-eng,
    • strictly preserving the CUDA torch==2.5.1+cu125, numpy<2, faiss-cpu>=1.8.0,<1.9, and transformers==4.57.1 lock (zero rapidocr/PaddleOCR).
    • Keep the minimal litkit-only Dockerfile.lean build intact for PMC OA-only deployments.
  • Add a reproducible Offline .safetensors Model Pack build script (SPECTER2, all-mpnet-base-v2, Granite-Docling pinned by HF commit SHA + SHA256SUMS, zero .bin pickle files) that can be transferred across an air gap independently of code container updates (while keeping optional baked-in model support).
  • Add pdf_ingest_array.sbatch demonstrating multi-node SLURM GPU array PDF→JATS conversion (writing uncompressed .tar shards to LOCAL_SSD and moving to shared storage) feeding directly into vector_build_multi.sbatch.
  • Enforce umask 077 and guaranteed LOCAL_SSD cleanup trap handlers in SLURM scripts for sensitive-topic workloads on shared compute nodes.
  • Update LITKIT_CLUSTER_GUIDE.md with the air-gapped transfer, suite container, and PDF-array workflow.
主要语言
Python
星标
0
派生
2
平均合并
8 小时 57 分钟
30 天内合并 PR
36

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lanl/litkit 的其他 Issue

查看 lanl/litkit 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。