huggingface-nas


Namehuggingface-nas JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/tony9402/huggingface-NAS
SummaryUsing NAS such as huggingface hub
upload_time2025-09-01 04:32:04
maintainerNone
docs_urlNone
authortony9402
requires_python>=3.8.0
licenseApache 2.0 License
keywords huggingface nas synology
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!---
Copyright 2024 tony9402. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

# Huggingface NAS

## Installation

```bash
pip3 install huggingface_nas
```

## How to use

### Huggingface to Synology NAS (Model)

```python
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)

```python
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

```python
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

```python
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)
```




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tony9402/huggingface-NAS",
    "name": "huggingface-nas",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8.0",
    "maintainer_email": null,
    "keywords": "huggingface nas synology",
    "author": "tony9402",
    "author_email": "tony9402@naver.com",
    "download_url": "https://files.pythonhosted.org/packages/b8/50/5178f61a5a23730917b1091c66c237d051e442ffe6aa1e79df1f2110c724/huggingface_nas-0.1.1.tar.gz",
    "platform": null,
    "description": "<!---\nCopyright 2024 tony9402. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n\n# Huggingface NAS\n\n## Installation\n\n```bash\npip3 install huggingface_nas\n```\n\n## How to use\n\n### Huggingface to Synology NAS (Model)\n\n```python\nfrom huggingface_nas import upload_model\n\nupload_model(\n    name=\"<huggingface model ex. meta-llama/Llama-3.3-70B-Instruct>\",\n    base_folder=\"<synology folder>\",\n    token=\"<huggingface token>\",\n    ip_address=\"<synology ip>\",\n    port=\"<synology port>\",\n    username=\"<synology username>\",\n    password=\"<synology password>\"\n)\n```\n\n### Huggingface to Synology NAS (Dataset)\n\n```python\nfrom huggingface_nas import upload_dataset\n\nupload_dataset(\n    name=\"<huggingface dataset ex. meta-llama/Llama-3.3-70B-Instruct-evals>\",\n    base_folder=\"<synology folder>\",\n    token=\"<huggingface token>\",\n    ip_address=\"<synology ip>\",\n    port=\"<synology port>\",\n    username=\"<synology username>\",\n    password=\"<synology password>\"\n)\n```\n\n### Load dataset from Synology NAS\n\n```python\nfrom huggingface_nas import load_dataset_nas\n\ndata = load_dataset_nas(\n    path=\"<model path such as meta-llama/Llama-3.3-70B-Instruct-evals>\",\n    base_path=\"<share folder in synology NAS>\",\n    ip_address=\"<synology ip>\",\n    port=\"<synology port>\",\n    username=\"<synology username>\",\n    password=\"<synology password>\"\n)\n```\n\n### Load Model from Synology NAS\n\n```python\nfrom transformers import AutoModel\nfrom huggingface_nas import prepare_model_from_nas\n\nmodel_download_path = prepare_model_from_nas(\n    path=\"<model path such as meta-llama/Llama-3.3-70B-Instruct>\",\n    base_path=\"<share folder in synology NAS>\",\n    ip_address=\"<synology ip>\",\n    port=\"<synology port>\",\n    username=\"<synology username>\",\n    password=\"<synology password>\"\n)\nAutoModel.from_pretrained(model_download_path)\n```\n\n\n\n",
    "bugtrack_url": null,
    "license": "Apache 2.0 License",
    "summary": "Using NAS such as huggingface hub",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/tony9402/huggingface-NAS"
    },
    "split_keywords": [
        "huggingface",
        "nas",
        "synology"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e5b346e33f74d9cb6af691be8c788db17ca5fa29ee61f712101fc5c43845d30a",
                "md5": "53a556a129beda17817c74a83fa826c0",
                "sha256": "e82c40a00c92b09e5f581d40112689a9efff38389f3e42f4d6d0413712a4bc6f"
            },
            "downloads": -1,
            "filename": "huggingface_nas-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "53a556a129beda17817c74a83fa826c0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.0",
            "size": 11297,
            "upload_time": "2025-09-01T04:32:02",
            "upload_time_iso_8601": "2025-09-01T04:32:02.895571Z",
            "url": "https://files.pythonhosted.org/packages/e5/b3/46e33f74d9cb6af691be8c788db17ca5fa29ee61f712101fc5c43845d30a/huggingface_nas-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b8505178f61a5a23730917b1091c66c237d051e442ffe6aa1e79df1f2110c724",
                "md5": "7f8ec8b35de3da0f20f4ce42ad6612e9",
                "sha256": "a3007884674644b8ea14db7049522a9b2c6fd970994bbe2b57253ecb8e93577c"
            },
            "downloads": -1,
            "filename": "huggingface_nas-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7f8ec8b35de3da0f20f4ce42ad6612e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.0",
            "size": 10396,
            "upload_time": "2025-09-01T04:32:04",
            "upload_time_iso_8601": "2025-09-01T04:32:04.257519Z",
            "url": "https://files.pythonhosted.org/packages/b8/50/5178f61a5a23730917b1091c66c237d051e442ffe6aa1e79df1f2110c724/huggingface_nas-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-01 04:32:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tony9402",
    "github_project": "huggingface-NAS",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "huggingface-nas"
}
        
Elapsed time: 2.87447s