alvarobartt / safejax

Serialize JAX, Flax, Haiku, or Objax model params with πŸ€—`safetensors`
https://alvarobartt.github.io/safejax/
MIT License
42 stars 5 forks source link

🍱 Add support for `fsspec` file-systems #23

Closed alvarobartt closed 1 year ago

alvarobartt commented 1 year ago

✨ Features

πŸ”— Linked Issue/s

19

πŸ§ͺ Tests

If the above checkbox is checked, could you describe how you unit-tested it?

Still using local filesystem, as still considering whether to run the unit tests in a Docker Container that mocks the cloud storage provider e.g. azurite or moto or just create another process to deploy those servers locally e.g. something similar to what s3fs does.

But there seems to be an issue with that, as mocking does not work with the mock_s3 decorator, nor with the mock_s3 context manager, which would be ideal. Instead, the only thing that seems to work with s3fs is deploying moto locally, and providing that URL to the s3fs instance. In any other case, it fails, even though for other libraries such as boto3 or botocore it works fine...