Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcy_dist_ai-1.0.0a1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

mcy_dist_ai-1.0.0a1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file mcy_dist_ai-1.0.0a1.tar.gz.

File metadata

  • Download URL: mcy_dist_ai-1.0.0a1.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

Hashes for mcy_dist_ai-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 c8e8fa2dc5df222278185befe22789b14a6df0d8f8a20c847d221a33f95974a6
MD5 c764f0fada4215071824acbf945aad66
BLAKE2b-256 d8d012e3b2c3772e8a22d0d43b2a8c1dfa2fd81d37d79044ca237d22aefeca99

See more details on using hashes here.

File details

Details for the file mcy_dist_ai-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcy_dist_ai-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae4b7cd82bd7be1bce6e3451280ef8c7e75834c37559b4012df410e3bf0816c7
MD5 ce96e1f3fed3665a5da868e01365402b
BLAKE2b-256 5d6299dff879a5082dcbfa59c54a8f689ba2340cf8120c2da10afe21611cabe9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page