Skip to main content

CLI tool for managing LLM models on IPFS and GitHub Pages

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

octoface-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

octoface-0.1.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file octoface-0.1.0.tar.gz.

File metadata

  • Download URL: octoface-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for octoface-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da893ac4c6b529678ab86d2af5427152005aa72e5837652b533144bccde855c2
MD5 da0fb06c67a00a1cebe925803d55ce94
BLAKE2b-256 db3e68b69c4daab913d07e5112bd204080b254debdd0956bb38c0ca92a40bda9

See more details on using hashes here.

Provenance

The following attestation bundles were made for octoface-0.1.0.tar.gz:

Publisher: publish.yml on octofacehub/octoface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file octoface-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: octoface-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for octoface-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bcc466b8e6a4a330d7c7e96f7dc1c63152dc7216ab9d9abcac71f0533c48b6e
MD5 92d1239a9ebd8ffce058b62fbb767fec
BLAKE2b-256 f207e9ba6466f7bc640c8d32c80b2fae40e7d25d18d1caa7b4373af4ef6db4d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for octoface-0.1.0-py3-none-any.whl:

Publisher: publish.yml on octofacehub/octoface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page