Skip to main content

A simple suite of CLI tools for Hugging Face

Project description

🤗 hf-bot

PyPI version License: MIT

A simple CLI utility suite to inspect Hugging Face repositories, evaluate local disk space safety, and check model trends.


🛑 About

  1. diskspace (Preventing Storage Crashes): Stops you from downloading a model that will crash your hard drive halfway through. It checks the remote model size against your remaining local storage before you download.
  2. vibecheck (Evaluating Project Activity): Checks monthly downloads, community likes, and lifecycle metrics so you can immediately see if a model is vibrant and maintained or a dormant archive.
  3. peek (Inspecting Model Architecture): Avoids downloading heavy model weights just to check basic parameters. It instantly snatches and parses the remote config.json to show context windows, attention heads, and model classes.

Installation

pip install hf-bot

For local development mode and contributions:

git clone [https://github.com/kuyesu/hf-tool.git](https://github.com/kuyesu/hf-tool.git)
cd hf-bot
pip install -e .

Usage & Commands

1. diskspace

Pass a Huggingface repository path (<repo_id>) to check its total weight footprint against your available local storage space:

hf-bot diskspace EleutherAI/gpt-j-6b

Storage Assessment

2. vibecheck

Pass a Huggingface repository ID (repo_id) to evaluate monthly usage trends, community traction, and lifecycle milestones:

hf-bot vibecheck EleutherAI/gpt-j-6b

Vibe Check

3. peek

Pass a Huggingface model identifier (<model_id>) to fetch and parse its metadata parameters instantly:

hf-bot peek gpt2

Structural Architecture Peek

Private & Gated Repositories

If a repository requires authentication, hf-bot securely prompts for your Hugging Face token and saves it locally:

🔒 Authentication Needed
Enter your Hugging Face Access Token (input will be hidden): ············
✓ Success! Token validated and saved locally.

Uninstallation

pip uninstall hf-bot

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

hf_bot-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

hf_bot-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_bot-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for hf_bot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 14b1236beea909010ad10423de31efec9526e0317afb1087a2a55c1384caed26
MD5 4f895d622983fe4ff391f1713150ae37
BLAKE2b-256 4e3b2c30e05d55ded54a7a89cbff8c344a5cb3d4fa36684557368717ec9ff2c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hf_bot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for hf_bot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df2cb278b17c6be7d9c4abe8696293551eebe5842759f23724fd02216d92d51c
MD5 28432f45bcf5eee1efb8edf37fafad58
BLAKE2b-256 cf19b4d6ce1a788ecd7545b37043ce588182f72590a507f895f03aa953bb65e0

See more details on using hashes here.

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