This module provide a toolbox for ai dev.
Project description
AI-Toolbox
Command
ait-download
Download hf model,dataset and will retry after a failure, default 10 times.
ait-download \
--repo_info_path=/your_repo_info.json \
--retry_count=2 \
--thread_nums=5
Args description
| name | description | required | default |
|---|---|---|---|
--repo_info_path |
repo info file for download multi repos at once, demo below! | True |
None |
--retry_count |
retry count after a failure | False |
10 |
--thread_nums |
the number of threads concurrently executing the target | False |
5 |
Demo repo_info.json
{
"model":[
"OpenAssistant/falcon-40b-megacode2-oasst",
"stabilityai/stable-diffusion-xl-base-1.0"
],
"dataset":[
"OpenAssistant/oasst1",
"PygmalionAI/PIPPA"
]
}
ait-fork
fork hf model, dataset and will retry after a failure, default 10 times.
# fork with fork_repo_info.json
ait-fork \
--repo_info_path=/your_repo_info.json \
--retry_count=2 \
--hf_username=your_hf_username \
--hf_token=your_hf_token \
--separator=__ \
--thread_nums=5
# fork without fork_repo_info.json
ait-fork \
--retry_count=2 \
--hf_username=your_hf_username \
--hf_token=your_hf_token \
--separator=__ \
--source_repo=source_repo \
--target_repo=your_target_repo \
--repo_type=dataset|model \
--disable-multi-task
Args description
you must pass
--repo_info_pathor--source_repoat least one!
| name | description | required | default |
|---|---|---|---|
--hf_username |
your hugging face username | True |
None |
--hf_token |
your hugging face token | True |
None |
--repo_info_path |
repo info file for fork multi repos at once, demo below! | False |
None |
--retry_count |
retry count after a failure | False |
10 |
--separator |
a string used to replace / when you did not pass target_repo without --repo_info_path |
False |
__ |
--source_repo |
the source repo you want to fork! eg: PygmalionAI/PIPPA, |
False |
10 |
--target_repo |
the target repo you want to fork to! eg: your_hf_username/your_repo_name, if not pass, use your_hf_username/source_repo.replace_/_with_separator |
False |
None |
--repo_type |
model or dataset |
False |
dataset |
--disable-multi-task |
disable multi task for forking multi repos when you pass, only work with --repo_info_path |
False |
False |
--thread_nums |
the number of threads concurrently executing the target | False |
5 |
Demo fork_repo_info.json
{
"model":[
{
"source":"OpenAssistant/falcon-40b-megacode2-oasst",
"target":"your_name/your_repo"
}
],
"dataset":[
{
"source":"PygmalionAI/PIPPA",
"target":"your_name/your_repo"
}
]
}
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
py_ait-0.0.43.tar.gz
(4.9 kB
view details)
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 py_ait-0.0.43.tar.gz.
File metadata
- Download URL: py_ait-0.0.43.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e4bb87813fc9de9dd6a379f46f53272e365c0ffa37447815c8c1ffc9de049fc
|
|
| MD5 |
3d2a9d0f3bc0fd71c041a4d001b79514
|
|
| BLAKE2b-256 |
8670c1c49dbe3eaef03626d8541b1bbe5a0082539740261dbd199bff882af14e
|
File details
Details for the file py_ait-0.0.43-py2.py3-none-any.whl.
File metadata
- Download URL: py_ait-0.0.43-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a937053dfbdfaef0f8ee909dc49933396f8e53e86f5d48cb611772ab4f431048
|
|
| MD5 |
dad91c0ed415d1d1b3738f7a6926791b
|
|
| BLAKE2b-256 |
29798280ce4eca497ac047b4a429b4fe2aa7c269e1371e986a047b94db273509
|