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
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=__
# 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 |
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.40.tar.gz
(4.5 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.40.tar.gz.
File metadata
- Download URL: py_ait-0.0.40.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52aa91cd6612ca9f0ed5ecbdaf261907e9bccadbdc63a424dd371d154f31edb5
|
|
| MD5 |
9e365465cc20fd0c95704ac43dfe8e34
|
|
| BLAKE2b-256 |
ac869f3387e8f432d75096646724c69508ba623fa924f22fc22886ed90b4afb9
|
File details
Details for the file py_ait-0.0.40-py2.py3-none-any.whl.
File metadata
- Download URL: py_ait-0.0.40-py2.py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
253f64c4651abae15723508cd30fc28543f913ebad8fba3cbe0e2427dc494b93
|
|
| MD5 |
fe6d7591d91d612e80ad89a70a78f2f4
|
|
| BLAKE2b-256 |
bf2e47e4247c25faea1144113dec11e5b0d89fb02fcbc56a107ac192dae61051
|