Skip to main content

Tensorflow Cluster on Ray

Project description

How to Use?

python -m pip install raytf

from raytf.tf_cluster_driver import TensorflowCluster
# When you using it in local single machine
# ray.init()
tf_cluster = TensorflowCluster.build(resources=
    {
        "ps": {"cores": "2", "memory": "2", "gpu": "2", "instances": "1"},
        "worker": {"cores": "2", "memory": "2", "gpu": "2", "instances": "1"},
        "chief": {"cores": "2", "memory": "2", "gpu": "2", "instances": "1"}
    },
    event_log="/tmp/opal/4"
)
tf_cluster.start(model_process=process, args=None)

This training code will be attached to the existed perm-Ray cluster. If you want to debug, you can use ray.init() to init Ray cluster in local.

When you specify the event_log in tf builder, sidecar tensorboard will be started on one worker.

How to build

[Requirement] python -m pip install twine

  1. python setup.py bdist_wheel –universal

  2. python -m pip install xxxxxx.whl

  3. twine upload dist/*

Tips

  1. To solve the problem of Python module importing on Ray perm-cluster, this project must use Ray 1.5+ version, refer to this RFC(https://github.com/ray-project/ray/issues/14019)

  2. This project is only be tested by Tensorflow estimator training

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

raytf-0.0.1rc3.dev1-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file raytf-0.0.1rc3.dev1-py2.py3-none-any.whl.

File metadata

  • Download URL: raytf-0.0.1rc3.dev1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.7

File hashes

Hashes for raytf-0.0.1rc3.dev1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 abe9594f85c7994b3aed75c562de0325bef6dbea87bf5ace9f8c72c353204ecd
MD5 dbdad1bc5cee27d75ef82100969ca724
BLAKE2b-256 c23364cabc8f5ae19af3f069c6bace75fe83cbc8c17cabc977b194a7f7ec50be

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