Datasets:
Update verified Apptainer pool manifest and download instructions
Browse files- .gitattributes +1 -0
- README.md +13 -0
- apptainer/download_apptainer.py +26 -0
- apptainer/manifest.jsonl +3 -0
- apptainer/status.json +5 -0
.gitattributes
CHANGED
|
@@ -59,3 +59,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
task-manifest.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
task-manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
apptainer/manifest.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -93,3 +93,16 @@ python build_dataset_images.py --task-data-dir tasks --manifest task-manifest.js
|
|
| 93 |
Images built by this script target Linux AMD64. If using another Docker Hub namespace, update image references consistently in the manifest, training records, and task `image.txt` files. The image status file is a publication-time snapshot.
|
| 94 |
|
| 95 |
The source includes 67 references to three unavailable local image names. These tasks use the supplied build contexts and new image targets; the original names are retained in the manifest as `unavailable_upstream_image`. Source task-group IDs are also retained for grouping and splitting related tasks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
Images built by this script target Linux AMD64. If using another Docker Hub namespace, update image references consistently in the manifest, training records, and task `image.txt` files. The image status file is a publication-time snapshot.
|
| 94 |
|
| 95 |
The source includes 67 references to three unavailable local image names. These tasks use the supplied build contexts and new image targets; the original names are retained in the manifest as `unavailable_upstream_image`. Source task-group IDs are also retained for grouping and splitting related tasks.
|
| 96 |
+
|
| 97 |
+
## Apptainer images
|
| 98 |
+
|
| 99 |
+
Apptainer SIF builds are being published under `apptainer/images/`. The current manifest lists **0 / 29,501** verified images. Shared environments are stored once. Each published image passed `apptainer inspect`, a contained shell smoke check, and HF SHA256 verification; this is not a full evaluation of its tasks.
|
| 100 |
+
|
| 101 |
+
Download `apptainer/download_apptainer.py`, then run:
|
| 102 |
+
|
| 103 |
+
```sh
|
| 104 |
+
python download_apptainer.py --repo hamishivi/agent-task-recursive-task-synthesis --output ./sifs --allow-partial
|
| 105 |
+
export SWERL_APPTAINER_SIF_DIR="$PWD/sifs"
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
The helper requires `huggingface_hub`. Omit `--allow-partial` to require a complete pool. Exact filenames follow `tmax-private/geomean_mask` image resolution. Task archives and the training split remain necessary. `apptainer/manifest.jsonl` records each source image, SIF checksum, publication commit, and build provenance. Pending images cannot run from this pool yet.
|
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(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
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54e6191ae318bda2fceaad310206868a37d3453158f2765e6cb71f28eb1f6531
|
| 3 |
+
size 16579678
|
apptainer/status.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"published": 0,
|
| 3 |
+
"total": 29501,
|
| 4 |
+
"covered_tasks": 0
|
| 5 |
+
}
|