Repository navigation
LibLayaX 1.0.15: models in one .tar file, weight codecs, and the GPU support under Wine
LatestWhat's new
A model in one .tar file. laya_create now takes the path of an uncompressed .tar
file where it takes a model folder, and reads every file of the model from it. Nothing is
unpacked to disk, and loading takes the same time and memory as from a folder.
Codecs for the weights. A new function, laya_set_codec, lets a program decode the
stored bytes of model.safetensors with a function of its own while a model loads. It works
the same for a model folder and for a .tar file.
A fourth Windows x64 package, vulkan-compat-sse42. CPU and GPU backends on the SSE4.2
baseline, for x64 programs under an emulator that offers no AVX, such as Wine on an Apple
Silicon Mac.
Fixes
- GPU under Wine 10.20 and later. The first question on the GPU stopped the program with
Assertion failed: !status && "vkQueueSubmit". Wine returned no queue for the way the
engine asked for it; the queue is now fetched in a way Wine accepts. - Apple GPUs from Windows and Linux builds. Large full-precision passes are now split for
an Apple GPU in every build, as the macOS build already did.
Compatibility
The API version is still 1. The ten existing functions are unchanged and laya_set_codec is
the eleventh, so programs and bindings written for 1.0.14 work with these libraries as they
are. On the CPU, 1.0.15 gives the same answers as 1.0.14.
A program that must also run with older libraries can look laya_set_codec up at run time;
see Model files.
Packages
| System | Package |
|---|---|
| Windows x64 | avx2, compat-sse42, vulkan, vulkan-compat-sse42 |
| Windows ARM64 | arm64 |
| Linux | x86_64 (folders avx2, compat-sse42, vulkan), arm64 |
| macOS | arm64, arm64-vulkan, x86_64-avx2, x86_64-compat-sse42 |
The vulkan packages run on the CPU or the GPU; the others run on the CPU.
Tested
- Windows x64 and Linux x86-64, on the CPU with a test model: the library's test suite passes
(54 checks) with all seven libraries, and the answers match 1.0.14. .tarmodels and codecs: 23 cases (three tar formats, long names, variant folders, stored
weights with and without a codec, damaged archives), all as expected on Linux and on
Windows under Wine.- GPU from a Windows x64 program under Wine on an Apple M3 Ultra: answers match the CPU, in
full and half precision, confirmed with a diagnostic build of this version.
Details are in History and Platforms and packages.