Spaces:
Runtime error
Runtime error
Download llama-cpp-python/vendor/llama.cpp/kompute/python/src/utils.hpp from aelitta/BioMistral_gradio: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/kompute/python/src/utils.hpp
- Command line
-
hf download hf://spaces/aelitta/BioMistral_gradio/llama-cpp-python/vendor/llama.cpp/kompute/python/src/utils.hpp
-
curl -L -o utils.hpp https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/kompute/python/src/utils.hpp
1.13 kB
| using namespace pybind11::literals; // for the `_a` literal | |
| namespace kp { | |
| namespace py { | |
| static pybind11::dict | |
| vkPropertiesToDict(const vk::PhysicalDeviceProperties& properties) | |
| { | |
| std::string deviceName = properties.deviceName; | |
| pybind11::dict pyDict( | |
| "device_name"_a = deviceName, | |
| "max_work_group_count"_a = | |
| pybind11::make_tuple(properties.limits.maxComputeWorkGroupCount[0], | |
| properties.limits.maxComputeWorkGroupCount[1], | |
| properties.limits.maxComputeWorkGroupCount[2]), | |
| "max_work_group_invocations"_a = | |
| properties.limits.maxComputeWorkGroupInvocations, | |
| "max_work_group_size"_a = | |
| pybind11::make_tuple(properties.limits.maxComputeWorkGroupSize[0], | |
| properties.limits.maxComputeWorkGroupSize[1], | |
| properties.limits.maxComputeWorkGroupSize[2]), | |
| "timestamps_supported"_a = | |
| (bool)properties.limits.timestampComputeAndGraphics); | |
| return pyDict; | |
| } | |
| } | |
| } | |