Metadata-Version: 2.4
Name: hf-ms-transfer
Version: 0.1.4
Summary: A tool to transfer models from Hugging Face to ModelScope
Author-email: wa008 <zphu1024@gmail.com>
Project-URL: Homepage, https://github.com/wa008/hf-ms-transfer
Project-URL: Bug Tracker, https://github.com/wa008/hf-ms-transfer/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: huggingface_hub
Requires-Dist: modelscope
Requires-Dist: python-dotenv
Dynamic: license-file

# Hugging Face to ModelScope Transfer

[简体中文](README_CN.md)

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

## Installation

```bash
pip install hf-ms-transfer
```

## Usage

Create a `.env` file in the directory where you will run the command and add your ModelScope [token](https://www.modelscope.cn/my/myaccesstoken) and username:
```
ms_token="your_modelscope_token"
ms_name="your_modelscope_username"
```

Alternatively, you can provide these directly via command-line arguments.
```bash
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`.
