Download ml-stable-diffusion/mlx/python/src/load.h from Fahad-S/FastVLM_SANA: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/Fahad-S/FastVLM_SANA/resolve/main/ml-stable-diffusion/mlx/python/src/load.h
- Command line
-
hf download hf://Fahad-S/FastVLM_SANA/ml-stable-diffusion/mlx/python/src/load.h
-
curl -L -o load.h https://huggingface.co/Fahad-S/FastVLM_SANA/resolve/main/ml-stable-diffusion/mlx/python/src/load.h
1.22 kB
| // Copyright © 2023-2024 Apple Inc. | |
| namespace mx = mlx::core; | |
| namespace nb = nanobind; | |
| using LoadOutputTypes = std::variant< | |
| mx::array, | |
| std::unordered_map<std::string, mx::array>, | |
| mx::SafetensorsLoad, | |
| mx::GGUFLoad>; | |
| mx::SafetensorsLoad mlx_load_safetensor_helper( | |
| nb::object file, | |
| mx::StreamOrDevice s); | |
| void mlx_save_safetensor_helper( | |
| nb::object file, | |
| nb::dict d, | |
| std::optional<nb::dict> m); | |
| mx::GGUFLoad mlx_load_gguf_helper(nb::object file, mx::StreamOrDevice s); | |
| void mlx_save_gguf_helper( | |
| nb::object file, | |
| nb::dict d, | |
| std::optional<nb::dict> m); | |
| LoadOutputTypes mlx_load_helper( | |
| nb::object file, | |
| std::optional<std::string> format, | |
| bool return_metadata, | |
| mx::StreamOrDevice s); | |
| void mlx_save_helper(nb::object file, mx::array a); | |
| void mlx_savez_helper( | |
| nb::object file, | |
| nb::args args, | |
| const nb::kwargs& kwargs, | |
| bool compressed = false); | |