Using NAS such as huggingface hub
Project description
Huggingface NAS
Installation
pip3 install huggingface_nas
How to use
Huggingface to Synology NAS (Model)
from huggingface_nas import upload_model
upload_model(
name="<huggingface model ex. meta-llama/Llama-3.3-70B-Instruct>",
base_folder="<synology folder>",
token="<huggingface token>",
ip_address="<synology ip>",
port="<synology port>",
username="<synology username>",
password="<synology password>"
)
Huggingface to Synology NAS (Dataset)
from huggingface_nas import upload_dataset
upload_dataset(
name="<huggingface dataset ex. meta-llama/Llama-3.3-70B-Instruct-evals>",
base_folder="<synology folder>",
token="<huggingface token>",
ip_address="<synology ip>",
port="<synology port>",
username="<synology username>",
password="<synology password>"
)
Load dataset from Synology NAS
from huggingface_nas import load_dataset_nas
data = load_dataset_nas(
path="<model path such as meta-llama/Llama-3.3-70B-Instruct-evals>",
base_path="<share folder in synology NAS>",
ip_address="<synology ip>",
port="<synology port>",
username="<synology username>",
password="<synology password>"
)
Load Model from Synology NAS
from transformers import AutoModel
from huggingface_nas import prepare_model_from_nas
model_download_path = prepare_model_from_nas(
path="<model path such as meta-llama/Llama-3.3-70B-Instruct>",
base_path="<share folder in synology NAS>",
ip_address="<synology ip>",
port="<synology port>",
username="<synology username>",
password="<synology password>"
)
AutoModel.from_pretrained(model_download_path)
Project details
Release history Release notifications | RSS feed
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 huggingface_nas-0.1.1.tar.gz.
File metadata
- Download URL: huggingface_nas-0.1.1.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3007884674644b8ea14db7049522a9b2c6fd970994bbe2b57253ecb8e93577c
|
|
| MD5 |
7f8ec8b35de3da0f20f4ce42ad6612e9
|
|
| BLAKE2b-256 |
b8505178f61a5a23730917b1091c66c237d051e442ffe6aa1e79df1f2110c724
|
Provenance
The following attestation bundles were made for huggingface_nas-0.1.1.tar.gz:
Publisher:
publish.yaml on tony9402/huggingface-NAS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
huggingface_nas-0.1.1.tar.gz -
Subject digest:
a3007884674644b8ea14db7049522a9b2c6fd970994bbe2b57253ecb8e93577c - Sigstore transparency entry: 455382573
- Sigstore integration time:
-
Permalink:
tony9402/huggingface-NAS@cf53961e50ff6821b56d111758017069ded4dd36 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/tony9402
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@cf53961e50ff6821b56d111758017069ded4dd36 -
Trigger Event:
push
-
Statement type:
File details
Details for the file huggingface_nas-0.1.1-py3-none-any.whl.
File metadata
- Download URL: huggingface_nas-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e82c40a00c92b09e5f581d40112689a9efff38389f3e42f4d6d0413712a4bc6f
|
|
| MD5 |
53a556a129beda17817c74a83fa826c0
|
|
| BLAKE2b-256 |
e5b346e33f74d9cb6af691be8c788db17ca5fa29ee61f712101fc5c43845d30a
|
Provenance
The following attestation bundles were made for huggingface_nas-0.1.1-py3-none-any.whl:
Publisher:
publish.yaml on tony9402/huggingface-NAS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
huggingface_nas-0.1.1-py3-none-any.whl -
Subject digest:
e82c40a00c92b09e5f581d40112689a9efff38389f3e42f4d6d0413712a4bc6f - Sigstore transparency entry: 455382586
- Sigstore integration time:
-
Permalink:
tony9402/huggingface-NAS@cf53961e50ff6821b56d111758017069ded4dd36 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/tony9402
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@cf53961e50ff6821b56d111758017069ded4dd36 -
Trigger Event:
push
-
Statement type: