OctoFace CLI
A command-line tool for managing LLM models on IPFS and GitHub Pages.
Installation
pip install octoface
Usage
Set up credentials
# Set GitHub API token
export GITHUB_API_TOKEN="your-github-api-token"
# Set up web3.storage
npm i --global @web3-storage/w3cli
w3 login # Follow prompts to authenticate
w3 space create my-space-name # Create a storage space
w3 space use my-space-name # Select the space for uploads
Test GitHub API access
octoface test-github
Download models from HuggingFace
octoface download "hf-username/cool-model"
Upload models to IPFS and GitHub
# Upload local model
octoface upload . --name "gemma-3-4b-it"
# Upload with description
octoface upload "./path/to/model/gemma-3-4b-it" --description "State-of-the-art open models from Google"
# Upload with tags
octoface upload "./path/to/model" --name "My Model" --description "A cool model" --tags "cool,awesome"
# Download from HF and upload in one step
octoface upload "hf-username/cool-model"
Generate files for manual submission
If you don't have push access to the OctoFaceHub repository, you can generate the necessary files and submit them manually:
# Generate files using a local model directory
octoface generate-files --path "./path/to/model" --name "My Model" --description "A cool model" --tags "cool,awesome"
# Generate files using an existing IPFS CID
octoface generate-files --cid "bafybeih2qqh6rfmgrrggvkwsve7yuru72tm66vmp2cc5q7nmhytnovq7dm" --name "My Model" --description "A cool model" --tags "cool,awesome"
# Specify custom output directory
octoface generate-files --path "./path/to/model" --name "My Model" --description "A cool model" --tags "cool,awesome" --output "./my-files"
After generating the files, follow the instructions in the GUIDE.md file to submit your model to OctoFaceHub.
License
MIT
Metadata
Release files for octoface 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| octoface-0.3.0.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| octoface-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / octoface-0.3.0.tar.gz
| Download URL | octoface-0.3.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4d78b9000a411f5d38e4e4cc70ed7f1e1334dd01393f448c043de2cb35b230b
|
|
BLAKE2b-256 checksum How to use checksums |
c6827850f4eda857c4698439c13b637dadde7cfc7521ebdd6e76601e2ee8a0e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency logRelease files / octoface-0.3.0-py3-none-any.whl
| Download URL | octoface-0.3.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e6cb95e83b88f2c3cd99ed8c8339cbe259df74e91e0fa0c49da2339a4afdca1
|
|
BLAKE2b-256 checksum How to use checksums |
29ad6551f3b66dd95bb38ebe732519e71911fe9334fc97a0928c94bde87fada9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency log