* Removing old doc.
* Update pyo3 to get clippy happy.
* Optional MLX install.
* Mlx only on python 3.10.
pip install .[jax]
shell: bash
+ - name: Install (mlx)
+ if: matrix.os == 'macos-latest' && matrix.version.python == "3.10"
+ run: |
+ pip install .[mlx]
+ shell: bash
+
- name: Check style
run: |
pip install .[quality]
crate-type = ["cdylib"]
[dependencies]
-pyo3 = { version = "0.19.2", features = ["extension-module"] }
+pyo3 = { version = "0.20.2", features = ["extension-module"] }
memmap2 = "0.5"
serde_json = "1.0"
Args:
filename (`str`, or `os.PathLike`)):
The name of the file which contains the tensors
- device (`Dict[str, any]`, *optional*, defaults to `cpu`):
- The device where the tensors need to be located after load.
- available options are all regular flax device locations
Returns:
`Dict[str, Array]`: dictionary that contains name as key, value as `Array`
Args:
filename (`str`, or `os.PathLike`)):
The name of the file which contains the tensors
- device (`Dict[str, any]`, *optional*, defaults to `cpu`):
- The device where the tensors need to be located after load.
- available options are all regular numpy device locations
Returns:
`Dict[str, np.ndarray]`: dictionary that contains name as key, value as `np.ndarray`
Args:
filename (`str`, or `os.PathLike`)):
The name of the file which contains the tensors
- device (`Dict[str, any]`, *optional*, defaults to `cpu`):
- The device where the tensors need to be located after load.
- available options are all regular tensorflow device locations
Returns:
`Dict[str, tf.Tensor]`: dictionary that contains name as key, value as `tf.Tensor`
"jax>=0.3.25",
"jaxlib>=0.3.25",
]
+mlx = [
+ "mlx>=0.0.9",
+]
paddlepaddle = [
"safetensors[numpy]",
"paddlepaddle>=2.4.1",