https://github.com/tony9402/huggingface-nas
https://github.com/tony9402/huggingface-nas
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tony9402/huggingface-nas
- Owner: tony9402
- License: apache-2.0
- Created: 2024-12-19T10:26:05.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-20T09:45:36.000Z (4 months ago)
- Last Synced: 2025-03-28T00:22:23.494Z (about 2 months ago)
- Language: Python
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
Awesome Lists containing this project
README
# Huggingface NAS
## Installation
```bash
pip3 install huggingface_nas
```## How to use
### Huggingface to Synology NAS (Model)
```python
from huggingface_nas import upload_modelupload_model(
name="",
base_folder="",
token="",
ip_address="",
port="",
username="",
password=""
)
```### Huggingface to Synology NAS (Dataset)
```python
from huggingface_nas import upload_datasetupload_dataset(
name="",
base_folder="",
token="",
ip_address="",
port="",
username="",
password=""
)
```### Load dataset from Synology NAS
```python
from huggingface_nas import load_dataset_nasdata = load_dataset_nas(
path="",
base_path="",
ip_address="",
port="",
username="",
password=""
)
```### Load Model from Synology NAS
```python
from transformers import AutoModel
from huggingface_nas import prepare_model_from_nasmodel_download_path = prepare_model_from_nas(
path="",
base_path="",
ip_address="",
port="",
username="",
password=""
)
AutoModel.from_pretrained(model_download_path)
```