Skip to content

ramalama-labs/hf_research

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HF Research

This repository contains all of the code needed to query the HuggingFace API using the hf_research cli.

Installation

We recommend using uv for installation.

uv venv
uv pip install .

However, everything will work the same with a standard pip installation.

pip install .

NOTE: If you're installing with pip and want to use the CLI, you'll need to make sure the python environment you install into has been appended to your path.

CLI

Once installed, the CLI will be accessible as hfss. Generating a complete scan of HuggingFace involves running two commands in sequence.

hfss scan full
hfss integrity drift

You'll likely need a HuggingFace API token to complete these scans without being severely rate limited. You can provide a token by setting the HF_TOKEN environment variable or by adding it to a .env file wherever you run the scan.

Continuing Scans

By default the cli can be stopped / started as needed. Final and temporary scan results will be stored in a configurable cache directory defaulting to cache in the invoked directory. This can also be configured via the CACHE_DIR environment variable.

Other Configuration Env Vars

  • WORKERS: Controls threading for parallelized queries
  • VERBOSE: Controls verbosity of output logging.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages