Download ml-stable-diffusion/mlx/python/src/mlx.cpp from Fahad-S/FastVLM_SANA: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/Fahad-S/FastVLM_SANA/resolve/main/ml-stable-diffusion/mlx/python/src/mlx.cpp
- Command line
-
hf download hf://Fahad-S/FastVLM_SANA/ml-stable-diffusion/mlx/python/src/mlx.cpp
-
curl -L -o mlx.cpp https://huggingface.co/Fahad-S/FastVLM_SANA/resolve/main/ml-stable-diffusion/mlx/python/src/mlx.cpp
1.23 kB
| // Copyright © 2023-2024 Apple Inc. | |
| namespace mx = mlx::core; | |
| namespace nb = nanobind; | |
| void init_mlx_func(nb::module_&); | |
| void init_array(nb::module_&); | |
| void init_device(nb::module_&); | |
| void init_stream(nb::module_&); | |
| void init_metal(nb::module_&); | |
| void init_cuda(nb::module_&); | |
| void init_memory(nb::module_&); | |
| void init_ops(nb::module_&); | |
| void init_transforms(nb::module_&); | |
| void init_random(nb::module_&); | |
| void init_fft(nb::module_&); | |
| void init_linalg(nb::module_&); | |
| void init_constants(nb::module_&); | |
| void init_fast(nb::module_&); | |
| void init_distributed(nb::module_&); | |
| void init_export(nb::module_&); | |
| NB_MODULE(core, m) { | |
| m.doc() = "mlx: A framework for machine learning on Apple silicon."; | |
| auto reprlib_fix = nb::module_::import_("mlx._reprlib_fix"); | |
| nb::module_::import_("mlx._os_warning"); | |
| nb::set_leak_warnings(false); | |
| init_mlx_func(m); | |
| init_device(m); | |
| init_stream(m); | |
| init_array(m); | |
| init_metal(m); | |
| init_cuda(m); | |
| init_memory(m); | |
| init_ops(m); | |
| init_transforms(m); | |
| init_random(m); | |
| init_fft(m); | |
| init_linalg(m); | |
| init_constants(m); | |
| init_fast(m); | |
| init_distributed(m); | |
| init_export(m); | |
| m.attr("__version__") = mx::version(); | |
| } | |