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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hf_ms_transfer-0.1.2.tar.gz.
File metadata
- Download URL: hf_ms_transfer-0.1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c689750095d69f483315cdabc31b3590e5fd82310cdb096b568485bc40ea9a74
|
|
| MD5 |
ed5bee1f0df517454cf1533b44fcb6e4
|
|
| BLAKE2b-256 |
117e652cafe44556a9181f3998200484ac3a3cdc094bcc2d9982153694bf992a
|
File details
Details for the file hf_ms_transfer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hf_ms_transfer-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e359e3151c6cc349bdc53d612792f1b496b6a2f51a8856ada41deb01972bdac3
|
|
| MD5 |
1785fed9e19e03cc23b272c3cc823dff
|
|
| BLAKE2b-256 |
2cd267095f3be8dda81067a7470402c0358a6aa395043e6aefe29dd75d97a0ab
|