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

Uploaded Source

Built Distribution

mcy_dist_ai-1.0.0a0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcy_dist_ai-1.0.0a0.tar.gz
  • Upload date:
  • Size: 8.4 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.0a0.tar.gz
Algorithm Hash digest
SHA256 ca00ffd4ea85113063fffc78ed69d5f679dae53b7deb817997aa24ba8132974a
MD5 a646e7a549c5f61dc8c53a54a8eda498
BLAKE2b-256 c32e10f2823ea11d83dd78332e07a60f409c359b6978369e54c5b41a55310223

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcy_dist_ai-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 91490b5f084a244fd2ad5f9ac8da2ba534b113bc3c6e8a903c44ca80aedf461f
MD5 60afa6f96215d7734e7aa7e995f6081d
BLAKE2b-256 94485ced74ab99f674e0a8c2d38aec7b3f4b00a5f61be1b59d8f59e4fd254e09

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