Mercury leader, worker and watcher
Project description
mcy-dist-ai
This is a package used in Mercury Protocol's vulkan repository for training AI models distributed.
Usage:
Each instance has a role: WATCHER or LEADER. Watchers do the batch training and the leader does the gradient aggregation.
The user who wants to train an AI model has to write the script in a file called user_script.py
and also a user_requirements.txt
where the dependencies of the user_script.py
are specified.
This file is used by this component to perform the training.
To see how it should be written check docs/user_script_requirements.md
and docs/user_script_template.py
.
mcy-split-data:
mcy-split-data
is command which can be used by the user to split the data into a specified number of partitions and save them as tensors.
args:
split_into
: the data will be split into this many partitions
data_path
: the path of the directory which contains the data
output_dir_path
: the path of the directory where the split tensors will be saved
user_script_path
: the path of the user_script.py
file where the create_data_loader
function is specified by the user
example usage:
mcy-split-data 2 path/to/data/dir path/to/output/data/dir path/to/user_script.py
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
File details
Details for the file mcy_dist_ai-1.0.0a2.tar.gz
.
File metadata
- Download URL: mcy_dist_ai-1.0.0a2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc18e7264a70c7938040b4c552bfaa10ab2d738b36e99e29c728c536f20c9904 |
|
MD5 | f820e6ab74dfdf3d7385eaa7be68a9cc |
|
BLAKE2b-256 | 5c97d4f1379410203184ed753c5bbfe82510c32b484610bdea99bbeccbf53d30 |
File details
Details for the file mcy_dist_ai-1.0.0a2-py3-none-any.whl
.
File metadata
- Download URL: mcy_dist_ai-1.0.0a2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26bf6df68adf0d7c1045c6969d2235a8273cdfe69bb1a0822b301ff4b308149a |
|
MD5 | 8f7696f63cbcd8e7a1d6e7622b493796 |
|
BLAKE2b-256 | 360fde4e2f158946248beee19ddfb1d4a26d75f7cf5285f40824640c2ce81549 |