Repository navigation
v0.12.0
Breaking: lmlite-models fails on models without ONNX weights
lmlite-models used to exit 0 and list a model in manifest.json even when none of its .onnx files were copied. The browser then loaded that model from the site only, its weights returned 404, and LLM.create failed at run time. Now, in both --format files and --format zip, a model with no ONNX weights stops the build with exit code 2:
lmlite-models: error: no ONNX weights under models/org/m; found: config.json; skipped symlinks: onnx/model_quantized.onnx
- Symlinks: a symlink to a file inside the same model directory is now copied as a regular file. Any other symlink is skipped and named on stderr. Before, every symlink was skipped without a word.
- Hugging Face cache trees:
snapshots/<rev>/...links point intoblobs/, outside the model directory, so they are skipped. Copy the tree with its links resolved before building, for examplecp -rL ~/.cache/huggingface/hub/models--org--m/snapshots/<rev> models/org/m. - Action: if a build that used to pass now fails, look at the
found:andskipped symlinks:lists to see which weight is missing. Folders with only a config or tokenizer can no longer be hosted.