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

Uploaded Python 3

File details

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

File metadata

  • Download URL: octoface-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 27e0eeded0d6a3bc9f8ec242b4d406e59b658293db06de89166c63c8c2bd26b2
MD5 4b93f2f4517aa2b3175b98ebe7e67744
BLAKE2b-256 eed60f8938c8ac64ee94cc4d7e1bae20a8e818ad76ce763b12415dc47d2eeab2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: octoface-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e51ee4660922875f74bfbf6e09cec7214e9fa74a8113609299352b05e48f64a2
MD5 6ad8e432861801a4c36cb0611541b4f5
BLAKE2b-256 649da74554e04889da4557a58e0a0692156776ea3a1f2b7f2a57042381ab9dc4

See more details on using hashes here.

Provenance

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