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 hf-ms-transfer

Usage

  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"

Get token in modelscope

  1. Alternatively, you can provide these directly via command-line arguments.
hf-ms-transfer <huggingface_model_id> [--private] [--ms-token <token>] [--ms-name <username>]

All parameters:

  • <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.1.tar.gz (3.7 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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_ms_transfer-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 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.1.tar.gz
Algorithm Hash digest
SHA256 7ef4e1a630baa3f1e762f578eb15f95f315c5077c6a7762a9669fdf35b5a6438
MD5 9a2ff6cc84c4eac02887b012ba9a3fb4
BLAKE2b-256 d2386dbb3eab6409a3dfdba0b610584c7bcfeec1aa87c5677498c3039e153b5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hf_ms_transfer-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aed0f2afe2e99f14b656a43520f1cf500932bbd959b148d49d952622a55e756c
MD5 e9e577b94ceb0893abda5d08450eb439
BLAKE2b-256 bbaefa7003a909ca1a09f5634b81aae7546a6640aaa977dbf7542470dbec2bfe

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