crashing dump for hparams containing fsspec
🐛 Bug
If you pass a model as PL model argument and dum this model, it crashes...
Please reproduce using [the BoringModel and post here]
Failing several models in Bolts
https://github.com/PyTorchLightning/pytorch-lightning-bolts/runs/1254957648
sample of failing test:
https://github.com/PyTorchLightning/pytorch-lightning-bolts/blob/ccdc9f9952153abf9b12f00e05294fa332d5f424/tests/models/test_vision.py#L8-L31
Additional context
        cls = type(data)
        if cls in copyreg.dispatch_table:
            reduce = copyreg.dispatch_table[cls](data)
        elif hasattr(data, '__reduce_ex__'):
>           reduce = data.__reduce_ex__(2)
E           TypeError: __reduce_ex__() takes exactly one argument (0 given)