Skip to main content

Uploader of Deep Model Weights to Hugging Face

Project description

Hugging Face Uploader

To use this Hugging Face uploader, you’ll need a user access token with write permissions. If you don’t have one, you can easily generate it by following the instructions at https://huggingface.co/docs/hub/en/security-tokens

Running on Linux without Python and a Virtual Environment

Replace the text with angle brackets by appropriate strings

   cd uploader
   ./uploader </path/to/my_model> <HF_username/HF_repo> --token <HF_token>

Running Python Script in a Virtual Environment

Create and activate a virtual environment.

For Linux/Mac:

python3 -m venv .venv
source .venv/bin/activate

For Windows:

python3 -m venv .venv
.venv\Scripts\activate

All subsequent commands are provided for Linux/Mac OS. For Windows, please replace source .venv/bin/activate with .venv\Scripts\activate.

Run the following command to install the project dependencies:

source .venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt

Upload your model to Hugging Face (replace the text with angle brackets by appropriate strings):

python -m ab.hf.uploader </path/to/my_model> <HF_username/HF_repo> --token <HF_token>

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

nn_hf-0.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

nn_hf-0.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file nn_hf-0.0.0.tar.gz.

File metadata

  • Download URL: nn_hf-0.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nn_hf-0.0.0.tar.gz
Algorithm Hash digest
SHA256 5cc7a95a4d97a5482018623566254e5f696ef7b8a1392b07639b434a88aaeb07
MD5 ffcbcbcccf3eaefd151d83e4a1150d1c
BLAKE2b-256 b984c82c74a892a86c4e93c6ba3a7f27cdd13e6de37e8a691aeca5aa47d63558

See more details on using hashes here.

File details

Details for the file nn_hf-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: nn_hf-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nn_hf-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 642ffc35a5550557a34e27749388c87c8673f94b7aa35b0125b2d5d2465561a2
MD5 aacabe581aaa359eb0ea537b418ab70d
BLAKE2b-256 7f5eb0ba3034bca6121772dd2e81fb170271d59748f976b34f28831bcfade4f2

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