Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit job #18

Closed
wangkuiyi opened this issue Nov 12, 2018 · 2 comments
Closed

Submit job #18

wangkuiyi opened this issue Nov 12, 2018 · 2 comments

Comments

@wangkuiyi
Copy link
Collaborator

wangkuiyi commented Nov 12, 2018

elasticflow --runner=k8s \
   --num_trainer=8 \
   --num_ps=2 \
   --input=/oss/yi/mnist* \
   --output_dir=/oss/yi/experiment \
   MyModel.py \
   --embedding_size=1000

where

  • elasticflow is a command-line tool,
  • MyModel.py includes a class derived from torch.nn.Module, tf.keras.Model, tf.Estimator, etc.

Similarly, to start a local job

elasticflow --runner=local \
    ....
@wangkuiyi
Copy link
Collaborator Author

class MyModel(torch.nn.Module):
  ...

elasticflow.Run(
   MyModel,
   elasticflow.runner.K8S(api_server`...))

@wangkuiyi
Copy link
Collaborator Author

wangkuiyi commented Nov 12, 2018

Nest runner example

elasticflow.runner.AWS(
   elasticflow.runner.K8S(api_server=...),
   aws_credential=...)
elasticflow.runner.AWS(
   ip_list=[.....],
   ...)

@wangkuiyi wangkuiyi self-assigned this Nov 12, 2018
@zou000 zou000 closed this as completed May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants