The Bundling Service helps users create and manage model bundles for Liquid Edge AI Platform (LEAP). Currently users interact with it through a command-line interface (CLI).
The CLI supports two main workflows:
GGUF Model Download: Download pre-built models from the LEAP Model Library (no authentication required)
Model Bundling: Create bundles from your own fine-tuned models (requires authentication)
Before using the Model Bundle Tool, ensure your system meets the following requirements:
Python 3.8 or higher: The CLI tool is built with Python and requires at least version 3.8.
pip installed: You need pip to install the CLI tool and its dependencies.
AWS services access: Model uploads use Amazon Web Services (AWS) for file storage. Ensure you can access amazonaws.com domains from your network. If youβre behind a corporate firewall or VPN, you may need to configure network settings to allow access to AWS services.
If model uploads fail with connectivity errors, verify that your network allows access to AWS services and that DNS resolution is working properly.
Resolve the appropriate manifest URL for the model/quantization.
Create an output directory based on the URL or according to --output-path if specified.
Download the JSON manifest file for the given combination of model and quantization, if it exists.
Download all model files referenced in the manifest.
Update the local manifest to use relative paths to the downloaded files.
Manifest downloads donβt require authentication with leap-bundle login. They work immediately after installation.
Create bundles from your own fine-tuned models. Requires authentication.
Compatibility Note: The Model Bundling Service will work with any fine-tuned model, as long as the model architecture comes from a base model that is part of the LEAP model library.
Hereβs a complete example showing the full workflow:
Copy
Ask AI
# 1. Install and authenticatepip install leap-bundleleap-bundle login <api-key>leap-bundle whoami# 2. Create a bundle request (GGUF by default)leap-bundle create <model-directory># 3. Monitor the request (repeat until completed)leap-bundle list# 4. Download when readyleap-bundle download <request-id># 5. Your model files are now ready to use!ls -la <downloaded-model-files>
ExecuTorch bundling is deprecated and may be removed in a future version. Use GGUF bundling (the default) for new projects.To create an ExecuTorch bundle instead of GGUF:
Copy
Ask AI
leap-bundle create <model-directory> --executorch
ExecuTorch bundling produces .bundle files instead of .gguf files.