Vendor pinned MeZO, AGZO, LOZO and LoREN sources with independent environments. Add direct in-place fix/adjust/node training, derived history-free basis gradients, development-best checkpoints and experiment tooling. Keep models, datasets, caches and credentials outside Git. Validation: 93 project tests passed; 521 vendored author files verified.
18 lines
939 B
Python
18 lines
939 B
Python
"""Inspect the active uv environment and shared assets without loading model weights."""
|
|
import importlib.metadata as meta
|
|
import json
|
|
import os
|
|
from pathlib import Path
|
|
import sys
|
|
ROOT=Path(__file__).resolve().parents[1]
|
|
sys.path.insert(0,str(ROOT/'src'))
|
|
from experiments_codebase.paths import paths
|
|
import torch
|
|
from datasets import load_from_disk
|
|
result={'python':sys.version,'executable':sys.executable,'paths':{k:str(v) for k,v in paths().items()},'versions':{p:meta.version(p) for p in ('torch','transformers','datasets','huggingface-hub')},'cuda_available':torch.cuda.is_available()}
|
|
if torch.cuda.is_available():
|
|
x=torch.ones(1,device='cuda');result.update(gpu=torch.cuda.get_device_name(),capability=torch.cuda.get_device_capability(),cuda_smoke=float((x+x).cpu()))
|
|
for task in ('sst2','drop'):
|
|
ds=load_from_disk(str(paths()['data']/task));result[task]={s:len(d) for s,d in ds.items()}
|
|
print(json.dumps(result,indent=2))
|