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.3.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.3.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: octoface-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 b4d78b9000a411f5d38e4e4cc70ed7f1e1334dd01393f448c043de2cb35b230b
MD5 3d51ae43abb492b1b3ae39a8c9fca330
BLAKE2b-256 c6827850f4eda857c4698439c13b637dadde7cfc7521ebdd6e76601e2ee8a0e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for octoface-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: octoface-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6cb95e83b88f2c3cd99ed8c8339cbe259df74e91e0fa0c49da2339a4afdca1
MD5 1ed5bb87faeb3808766fdc718efc7713
BLAKE2b-256 29ad6551f3b66dd95bb38ebe732519e71911fe9334fc97a0928c94bde87fada9

See more details on using hashes here.

Provenance

The following attestation bundles were made for octoface-0.3.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