Skip to main content

A tool to transfer models/datasets from Hugging Face to ModelScope

Project description

Hugging Face to ModelScope Transfer

简体中文

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

Installation

pip install hf-ms-transfer

Usage

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.

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.2.0.tar.gz (3.9 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.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_ms_transfer-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 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.2.0.tar.gz
Algorithm Hash digest
SHA256 d8f66696f49efdeb1dee69916a2ffd3b9418126028b0b686d44077e45ce6e1a8
MD5 4b6bd68352b6f6393e8d6fb1965e2c92
BLAKE2b-256 bfb66c806d0b347de1960da586593d07f86495526b1baa1c13f2cf800bdca832

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hf_ms_transfer-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccb4c20913ab6f19b6aabc233cba61da8d9787f2dca75091e043ba7318240273
MD5 da002ff33131ca6eb359ee520018e735
BLAKE2b-256 fdd98742436511aebc1e31226887520aa79355395842e970087b6d022a032534

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