Skip to main content

A tool to transfer models from Hugging Face to ModelScope

Project description

Hugging Face to ModelScope Transfer

A tool to transfer models from the Hugging Face Hub to the ModelScope platform.

Installation

pip install .

Setup

  1. Create a .env file in the directory where you will run the command and add your ModelScope token and username:
    ms_token="your_modelscope_token"
    ms_name="your_modelscope_username"
    
    Alternatively, you can provide these directly via command-line arguments.

Usage

hf-ms-transfer <huggingface_model_id> [--private] [--ms-token <token>] [--ms-name <username>]
  • <huggingface_model_id>: The ID of the Hugging Face model to transfer (e.g., bert-base-uncased).
  • --private: (Optional) Make the ModelScope repository private (default is public).
  • --ms-token <token>: (Optional) Your ModelScope access token. Overrides the value in .env.
  • --ms-name <username>: (Optional) Your ModelScope username. Overrides the value in .env.

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_ms_transfer-0.1.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.

hf_ms_transfer-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_ms_transfer-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hf_ms_transfer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 980bc73f22a91a9fd169d7b6876bfb69fc155a109993b92cbd1f6aabfe0bbcc3
MD5 c0d8502fa1e2e71cd2dd7a1498609967
BLAKE2b-256 1d081a329ec5aaef1ca1413034ccc1d809de3a968cd7fcab1d27b2698fa32c48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hf_ms_transfer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hf_ms_transfer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe5d295c3da71e48d28dd05f5631d8b6da9b9c9ebefc59a3c2e17aee3ac9ddd8
MD5 ca46f088d23db180971738dd98355016
BLAKE2b-256 8a22d96e89ff995a3403d5132aff2289e2d0b3a95afa19696035e3bd9fad4487

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