Buckets:
| import json,datetime | |
| from pathlib import Path | |
| import numpy as np,pandas as pd | |
| report={'updated_at':datetime.datetime.now(datetime.timezone.utc).isoformat(),'gpu':'physical GPU1 only','features':{},'completed_runs':0,'interventions':{}} | |
| for name in ['32b','32b_interventions','14b','14b_interventions']: | |
| p=Path('outputs/features')/name | |
| if (p/'done.npy').exists(): | |
| d=np.load(p/'done.npy');report['features'][name]={'completed':int(d.sum()),'total':len(d),'complete':bool(d.all())} | |
| report['completed_runs']=len(list(Path('outputs').glob('**/metrics.json'))) | |
| for stage in ['generated','verified']: | |
| files=list((Path('outputs/interventions')/stage).glob('*.json'));report['interventions'][stage]=len(files) | |
| p=Path('outputs/api_budget_ledger.json') | |
| if p.exists(): | |
| rows=json.loads(p.read_text())['entries'];report['api']={'attempts':len(rows),'planning_cost_CNY':sum(x.get('accounted_cost',x['reserved_cost']) for x in rows),'price_status':'planning assumptions; supplier rates unverified'} | |
| Path('outputs/status.json').write_text(json.dumps(report,indent=2));print(json.dumps(report,indent=2),flush=True) | |
Xet Storage Details
- Size:
- 1.12 kB
- Xet hash:
- 880a0b921c7a4e5564d74296b18395c8e67ea30cf7bf4eb663e42561d0dac465
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.