can you make it human readable like in joblib? max_nbytes='1GB' for example. See memstr_to_kbytes function in joblib.disk