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.0a3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcy_dist_ai-1.0.0a3.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.0a3.tar.gz
Algorithm Hash digest
SHA256 4380da0c2a1e183ef5ea5256d5d9142440c1dd3f78e07b857ad74a1688140e69
MD5 51d134dc9a1133cea026c3bef9090996
BLAKE2b-256 f9cf3c7c39ec69ea7f2d508c6cb4691a4ecba0357e002d25e6aa9bdf38145b1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcy_dist_ai-1.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 ffabb94be9869a1e4f9b543edba8726c9a9adb267703db1f7906d3b274826411
MD5 fbe3b6a65c76ae0605224cbbc8abd772
BLAKE2b-256 a954ebda9b31a4c20f1741818fe031169481107b83a80dfb8310e129a67ecea7

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