Command line tool to create model bundles or download GGUF models for Liquid Edge AI Platform (LEAP)
Project description
leap-bundle
Command line tool to create model bundles for Liquid Edge AI Platform (LEAP).
This tool enables everyone to create, manage, and download AI model bundles for deployment on edge devices. Upload your model directories, track bundle creation progress, and download optimized bundles ready for mobile integration.
It also supports downloading GGUF models directly from JSON manifest files.
See the documentation for more details.
Installation
pip install leap-bundle
Quick Start for GGUF Model Download
leap-bundle download <model-name> [--quantization <quantization>]
Example:
leap-bundle download LFM2-1.2B --quantization Q5_K_M
The command will:
- Resolve the appropriate manifest URL for the model/quantization.
- Create an output directory based on the URL or according to
--output-pathif specified. - Download the JSON manifest file.
- Download all model files referenced in the manifest.
- Update the manifest to use relative paths to the downloaded files.
Quick Start for Model Bundling
Authenticate
- Sign in on the LEAP website
- Click the account icon on the top right, and go to your
profile - Select the
API keystab and create a new API key - Authenticate the Model Bundling Service with your API token:
leap-bundle login <api-key>
Example output:
ℹ Validating API token...
✓ Successfully logged in to LEAP platform!
Create model bundle
- Prepare your model checkpoint.
- Create a bundle request:
leap-bundle create <path-to-your-model-checkpoint>
Example output:
ℹ Calculating directory hash...
ℹ Submitting bundle request...
✓ Bundle request created with ID: 1
ℹ Starting upload...
Uploading directory... ✓
✓ Upload completed successfully! Request ID: 1
- Check request status:
leap-bundle list
Example output:
Bundle Requests (50 most recent)
┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ID ┃ Input Path ┃ Status ┃ Creation ┃ Notes ┃
┡━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 1 │ /path/to/your/model/directory │ processing │ 2024-01-15T10:30:00Z │ Request is being processed. │
└──────┴─────────────────────────────────┴──────────────┴────────────────────────┴─────────────────────────────┘
✓ Found 1 bundle requests.
Get details for a specific request:
leap-bundle list <request-id>
Example output:
✓ Request Details:
ID: 1
Input Path: /path/to/your/model/directory
Status: completed
Creation: 2024-01-15T10:30:00Z
Update: 2024-01-15T10:45:00Z
Notes:
- When the request is
Completed, you can download the bundle:
leap-bundle download <request-id>
Example output:
ℹ Requesting download for bundle request 1...
✓ Download URL obtained for request 1
Downloading bundle output... ✓
✓ Download completed successfully! File saved to: input-8da4w_output_8da8w-seq_8196.bundle
The model bundle file will be saved in the current directory with a .bundle extension.
Complete Example
Here's a complete example showing the full workflow:
# 1. Install and authenticate
pip install leap-bundle
leap-bundle login <api-key>
leap-bundle whoami
# 2. Create a bundle request
leap-bundle create <model-directory>
# 3. Monitor the request (repeat until completed)
leap-bundle list
# 4. Download when ready
leap-bundle download <request-id>
# 5. Your bundle file is now ready to use!
ls -la <downloaded-bundle-file>
Next Steps
- Visit the LEAP Model Library to explore available models.
- Check the CLI Spec for detailed command reference.
Commands
| Command | Description |
|---|---|
leap-bundle login |
Authenticate with LEAP using API token |
leap-bundle whoami |
Show current authenticated user |
leap-bundle logout |
Logout from LEAP |
leap-bundle config |
Show current configuration |
leap-bundle validate |
Validate directory for bundle creation |
leap-bundle create |
Submit new bundle request |
leap-bundle resume |
Resume an interrupted bundle request creation |
leap-bundle list |
List all bundle requests or a specific request |
leap-bundle cancel |
Cancel a bundle request |
leap-bundle download |
Download bundle file for a request, or download GGUF models from a JSON manifest URL |
CHANGELOG
https://docs.liquid.ai/leap/leap-bundle/changelog
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file leap_bundle-0.8.0.tar.gz.
File metadata
- Download URL: leap_bundle-0.8.0.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77a4eb37c796355b6eaac94f80b984d32e9af95ab2df3b54a26f2a40b7106f6f
|
|
| MD5 |
36f0f5d1c3fcee0bebeb18ddf72bcbef
|
|
| BLAKE2b-256 |
0b3ec8af51b8d95fa3d678f3470d05118dd0e80b60a4adc561859bedf72c9d1d
|
File details
Details for the file leap_bundle-0.8.0-py3-none-any.whl.
File metadata
- Download URL: leap_bundle-0.8.0-py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ded10da4d2eaf69cfda776aef5a6be15e71210fdceade85afaf66624cb14b28
|
|
| MD5 |
f357cb6c2877556b9684b90a8d9a6873
|
|
| BLAKE2b-256 |
3645f0e7eba51f1ae94b5183c80c9e211092104b81a6f64eed75985ed95ac946
|