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"
}
]
}
Metadata
Release files for py_ait 0.0.43
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_ait-0.0.43.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_ait-0.0.43-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / py_ait-0.0.43.tar.gz
| Download URL | py_ait-0.0.43.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e4bb87813fc9de9dd6a379f46f53272e365c0ffa37447815c8c1ffc9de049fc
|
|
BLAKE2b-256 checksum How to use checksums |
8670c1c49dbe3eaef03626d8541b1bbe5a0082539740261dbd199bff882af14e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / py_ait-0.0.43-py2.py3-none-any.whl
| Download URL | py_ait-0.0.43-py2.py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a937053dfbdfaef0f8ee909dc49933396f8e53e86f5d48cb611772ab4f431048
|
|
BLAKE2b-256 checksum How to use checksums |
29798280ce4eca497ac047b4a429b4fe2aa7c269e1371e986a047b94db273509
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|