You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i change the code in smoothquant/calibration.py get_act_scales() with
"
dataset = load_dataset(
'allenai/c4', 'allenai--c4', data_files={'validation': 'en/c4-validation.00000-of-00008.json.gz'},
split='validation'
)
"
then can get a scales
But i run smoothquant in a server which has no internet access to hub. So i need to modify smoothquant/calibration.py to load dataset from local directory, otherwise it will failed. I change the code in smoothquant/calibration.py get_act_scales() functio with
Then i can load a dataset locally rather than download from hugging face.
Certainly after modifying code, you should run python setup.py install again to install the code after modified.
i change the code in smoothquant/calibration.py get_act_scales() with " dataset = load_dataset( 'allenai/c4', 'allenai--c4', data_files={'validation': 'en/c4-validation.00000-of-00008.json.gz'}, split='validation' ) " then can get a scales
how to solve the error: pickle.UnpicklingError: invalid load key, 'v'.
The text was updated successfully, but these errors were encountered: