Spaces:
Runtime error
Runtime error
Download llama-cpp-python/vendor/llama.cpp/kompute/python/test/utils.py from aelitta/BioMistral_gradio: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/kompute/python/test/utils.py
- Command line
-
hf download hf://spaces/aelitta/BioMistral_gradio/llama-cpp-python/vendor/llama.cpp/kompute/python/test/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/kompute/python/test/utils.py
227 Bytes
| import os | |
| def compile_source(source): | |
| open("tmp_kp_shader.comp", "w").write(source) | |
| os.system("glslangValidator -V tmp_kp_shader.comp -o tmp_kp_shader.comp.spv") | |
| return open("tmp_kp_shader.comp.spv", "rb").read() | |