Last active
September 9, 2022 17:38
-
-
Save clarng/6444ee43015a14cdb4fc83310d3e20a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ray.experimental.packaging.load_package import load_package | |
import ray | |
mypkg = load_package('https://raw.githubusercontent.com/ray-project/ray/master/python/ray/experimental/packaging/example_pkg/ray_pkg.yaml') | |
print(mypkg._runtime_env) | |
print(ray.get(mypkg.my_func.remote())) | |
(base) ray@8da901f24c64:~/github/rayclarng/ray$ python python/pkg.py | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | |
100 48.5M 0 48.5M 0 0 9268k 0 --:--:-- 0:00:05 --:--:-- 10.3M | |
{'docker': 'anyscale-ml/ray-ml:nightly-py38-cpu', 'working_dir': 'gcs://_ray_pkg_5a9191afda1da781.zip'} | |
2022-09-09 10:36:55,596 INFO worker.py:1517 -- Started a local Ray instance. | |
2022-09-09 10:36:57,104 INFO packaging.py:522 -- Creating a file package for local directory '/tmp/ray/packaging/github_snapshot_ced70e22c99fb5efde3a0ebce30b56353436bc7d/python/ray/experimental/packaging/example_pkg'. | |
2022-09-09 10:36:57,107 INFO packaging.py:349 -- Pushing file package 'gcs://_ray_pkg_5a9191afda1da781.zip' (0.00MiB) to Ray cluster... | |
2022-09-09 10:36:57,108 INFO packaging.py:362 -- Successfully pushed file package 'gcs://_ray_pkg_5a9191afda1da781.zip'. | |
hello world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment