Uploading custom assets to OctoAI's Asset Library
OctoAI empowers you to customize images by leveraging assets like checkpoints, LoRAs, and textual inversions. You can either use:
- Public assets in the OctoAI Asset Library
- Upload your custom asset to the OctoAI Asset Library (private by default, and optionally public)
- Or use OctoAI fine-tuning to create new assets - see Fine-tuning Stable Diffusion
This tutorial explains how to upload your own private assets to the Asset Library.
- First download the OctoAI CLI by following the instructions in CLI Installation. Check that it is properly installed by running the following in your terminal:
bash
- Run
octoai login
to cache your token and authenticate to your account. - We can now use the
octoai asset create
subcommand to upload assets (you can runoctoai asset create --help
to learn more on the options).--engine
denotes whether this is an asset for SDXL or SD1.5--upload-from-file
flag denotes the path of the file on your local machine that you’re trying to upload.--upload-from-url
flag is an alternative toupload-from-file
allowing you to upload an asset from a public URL; OctoAI will fetch and upload the file.—type
can be lora, checkpoint, or textual_inversion (VAEs coming soon)--format
denotes the format of your asset, which can be safetensors or pt.--datatype
can be fp16, fp32, int4, or int8. For image gen, it should almost always be fp16, but for LLMs and other modalities your asset may have other datatypes.--name
is a name for your asset. You can only use each asset name once.--transfer-api
defaults to sts which is the fastest way to upload a large asset.- If you are uploading a textual inversion, make sure to use the
-w
flag to denote the default trigger word for the asset. That trigger word can later be used at generation time to activate the inversion. For LoRAs, trigger words are optional.
As an example, you could use this command to upload a checkpoint from your local machine:
You can alternatively upload the file via public URL using upload-from-url
: