llama.install package

Scripts for setting environmental and configuration settings and fetching data files that were too large to be included with the package distribution (or, alternatively, were access-controlled separately from the package distribution).

This method of file storage makes it possible to install a much smaller distribution of pure code and only download pipeline data files as necessary. It also makes it possible to lazy-download the correct file version as-needed.

The DESTINATIONS module-level variable maps semantic names of file download destinations (as used in the command-line interface) to tuples of local root directories for storing downloaded files and manifests specifying which files to download and where to situate them relative to those root directories.

llama.install.install_manifest(root: str, manifest: dict)

Download files as specified in the manifest dict (as returned by llama.dev.upload.upload_and_get_manifest) under the root directory. Existing files with the expected hash will not be redownloaded, but existing files will be overwritten, so exercise caution when calling this function. Files in root not mentioned in the manifest will be ignored; delete them manually if they are no longer needed. Also places the manifest in the root directory, making it possible to check whether post-install downloads are up-to-date.

Submodules