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.
10 lines
566 B
Python
10 lines
566 B
Python
"""MeZO's Dataset API backed by the shared local assets, without global monkeypatching."""
|
|
from datasets import load_from_disk
|
|
from experiments_codebase.paths import paths
|
|
|
|
def load_dataset(name,config=None,**kwargs):
|
|
alias='sst2' if name in ('glue','nyu-mll/glue') and config=='sst2' else ('drop' if name in ('drop','ucinlp/drop') else None)
|
|
if alias is None:raise ValueError('This audited integration supports SST2 and DROP only')
|
|
dataset=load_from_disk(str(paths()['data']/alias))
|
|
return dataset[kwargs['split']] if 'split' in kwargs else dataset
|