Index 3056 verified Apptainer images
Browse files- README.md +16 -0
- apptainer/download_apptainer.py +26 -0
- apptainer/manifest.jsonl +0 -0
- apptainer/status.json +5 -0
README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Apptainer pool for hamishivi/agent-task-calibforge
|
| 2 |
+
|
| 3 |
+
This repository hosts tmax-compatible SIF images and a unified download manifest. Training data and task archives are in [hamishivi/agent-task-calibforge](https://huggingface.co/datasets/hamishivi/agent-task-calibforge). The manifest includes earlier images hosted under hamishivi and new images hosted under TMaxxx; the downloader selects the correct repository and immutable commit for each image.
|
| 4 |
+
|
| 5 |
+
## Apptainer images
|
| 6 |
+
|
| 7 |
+
The pool currently contains **3,056 / 5,341** verified Apptainer SIF images. Shared environments are stored once. Each published SIF passed `apptainer inspect`, a contained shell smoke check, and remote SHA256 verification. These checks do not constitute a full task evaluation.
|
| 8 |
+
|
| 9 |
+
Download `apptainer/download_apptainer.py` and run with Python 3.11+ and `huggingface_hub` installed:
|
| 10 |
+
|
| 11 |
+
```sh
|
| 12 |
+
python download_apptainer.py --repo TMaxxx/agent-task-calibforge --output ./sifs --allow-partial
|
| 13 |
+
export SWERL_APPTAINER_SIF_DIR="$PWD/sifs"
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
Omit `--allow-partial` to require a complete pool. Filenames follow `tmax-private/geomean_mask` image resolution. Task archives and the training split remain necessary. `apptainer/manifest.jsonl` records source references, SIF checksums, publication commits, and build provenance. Pending images cannot run from this pool yet. Indexes refresh periodically while builds are in progress.
|
apptainer/download_apptainer.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Download a dataset's published SIF pool using tmax-compatible filenames."""
|
| 2 |
+
import argparse,hashlib,json,os
|
| 3 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
from huggingface_hub import hf_hub_download
|
| 6 |
+
|
| 7 |
+
def main():
|
| 8 |
+
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--repo',required=True);p.add_argument('--output',type=Path,required=True);p.add_argument('--allow-partial',action='store_true');p.add_argument('--workers',type=int,default=4);args=p.parse_args()
|
| 9 |
+
manifest=Path(hf_hub_download(args.repo,'apptainer/manifest.jsonl',repo_type='dataset'))
|
| 10 |
+
rows=[json.loads(line) for line in manifest.read_text().splitlines()]
|
| 11 |
+
missing=[r for r in rows if r['status']!='published']
|
| 12 |
+
if missing and not args.allow_partial:raise SystemExit(f'{len(missing)} images are not yet published. Use --allow-partial to download the available subset.')
|
| 13 |
+
args.output.mkdir(parents=True,exist_ok=True)
|
| 14 |
+
def sha(p):
|
| 15 |
+
with p.open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
|
| 16 |
+
def download(row):
|
| 17 |
+
target=args.output/row['sif_name']
|
| 18 |
+
if target.is_file() and sha(target)==row['sif_sha256']:return
|
| 19 |
+
staged=Path(hf_hub_download(row.get('hf_repo',row.get('repo',args.repo)),row['hf_path'],repo_type='dataset',revision=row['commit'],local_dir=args.output/'.downloads'))
|
| 20 |
+
if sha(staged)!=row['sif_sha256']:raise RuntimeError('Checksum mismatch: '+row['hf_path'])
|
| 21 |
+
os.replace(staged,target)
|
| 22 |
+
print(target.name,flush=True)
|
| 23 |
+
with ThreadPoolExecutor(args.workers) as pool:list(pool.map(download,[r for r in rows if r['status']=='published']))
|
| 24 |
+
print(f'Pool: {args.output.resolve()} ({len(rows)-len(missing)} images available; {len(missing)} pending)')
|
| 25 |
+
print('Set SWERL_APPTAINER_SIF_DIR to this directory.')
|
| 26 |
+
if __name__=='__main__':main()
|
apptainer/manifest.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
apptainer/status.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"published": 3056,
|
| 3 |
+
"total": 5341,
|
| 4 |
+
"covered_tasks": 3137
|
| 5 |
+
}
|