Describe the bug
If a file referenced by the code layer is mistyped, kit continues to package other layers (model, config) however the manifest is missing the layers completely. Kit should error if a referenced file is not present on the file system.
To Reproduce
manifestVersion: 1.0
package:
name: llama3
version: 3.0.0
description: >-
Llama 3 family of large language models (LLMs), a collection of pretrained and instruction tuned generative text models in 8 and 70B sizes.
authors: [Meta Platforms, Inc.]
code:
- path: LICENSE.txt
description: License file.
- path: README.md
description: Readme file.
- path: USE_POLICY.md
description: Use policy file.
model:
name: llama3-8B-instruct-f16
path: ./some-model.gguff
description: >-
Llama 3 8B instruct model
license: META LLAMA 3 COMMUNITY LICENSE AGREEMENT
Steps to reproduce the behavior:
Using the above Kitfile in the ./model folder issue kit pack ./model -t ghcr.io/jozu-ai/llama3:8B-instruct-f16
The ./model includes all the referenced files expect LICENSE.txt which is named LICENSE on the ./model folder
the command concludes with
kit pack ./model -t ghcr.io/jozu-ai/llama3:8B-instruct-f16
Saved configuration: sha256:38cd4ea6979847fda9a04da2831135fbc4514de322cd35bed264c863f67b70ee
Saved model layer: sha256:b77f22bf5654a21dd8ef89058caf6ec50f688ef23ed1e552154975d29c14d55b
Saved manifest to storage: sha256:044ccc51bd6ae545bf174b15abae6784ef34405653ac233e56bdb2d0993099af
Model saved: sha256:044ccc51bd6ae545bf174b15abae6784ef34405653ac233e56bdb2d0993099af
Describe the bug If a file referenced by the code layer is mistyped, kit continues to package other layers (model, config) however the manifest is missing the layers completely. Kit should error if a referenced file is not present on the file system.
To Reproduce
Steps to reproduce the behavior:
./model
folder issuekit pack ./model -t ghcr.io/jozu-ai/llama3:8B-instruct-f16
./model
includes all the referenced files expectLICENSE.txt
which is namedLICENSE
on the./model
folderVersion