NokiMo
win32
win32

patreon


safetensors library and bcryptprimitives.dll for Vista/7

Recently, I upgraded HuggingFace's safetensors Python library to the latest version, 0.4.5. It failed to work due to a missing DLL, however Python messages do not make it easy to find the offending DLL.

I eventually determined that module \_SAFETENSORS\_RUST.CP310-WIN_AMD64.PYD was the issue, requiring new functions in bcryptprimitives.dll (or bcryptprimitives.dll needing to exist at all in Vista's case).

The solution is to copy this new version of the DLL into %LOCALAPPDATA%\Programs\Python\Python310 ("Python310" can be substituted for "Python39", "Python311", "Python312" or "Python313" depending on the Python version installed). This DLL can also be used in some other cases where the function ProcessPrng is requested. It is also part of the latest Supermium Plus Package.

However, some models may have very unsatisfactory performance due to outdated CUDA support on most drivers supporting Windows Vista/7. Newer drivers are important, but can be difficult to port.


Related Creators