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

Run on FloydHub integration #961

Merged
merged 3 commits into from Aug 8, 2018
Merged

Conversation

ReDeiPirati
Copy link
Contributor

@ReDeiPirati ReDeiPirati commented Jul 27, 2018

Hi @lukaszkaiser , here's the Run on FloydHub integration.

  • Added the button (and the badge) in the README.md
  • Added the floyd.yml config file to specify the environment
  • Added the floyd_requirements.txt file to automatically install tensor2tensor in the environment

I've changed the data and checkpoint paths of the examples in the README.md from ~/ (HOME mapping) to ./ (current working directory) to improve usability. Sounds good for you?

Looking forward to your feedback :)

@googlebot googlebot added the cla: yes PR author has signed CLA label Jul 27, 2018
Copy link
Contributor

@lukaszkaiser lukaszkaiser left a comment

Thanks! This looks good, just 2 small nits, could you correct them?

README.md Outdated
@@ -34,15 +35,21 @@ installs T2T, downloads MNIST, trains a model and evaluates it:
```
pip install tensor2tensor && t2t-trainer \
--generate_data \
--data_dir=~/t2t_data \
--output_dir=~/t2t_train/mnist \
--data_dir=./t2t_data \
Copy link
Contributor

@lukaszkaiser lukaszkaiser Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not change the home directory here, it's really better to make this in ~.

README.md Outdated
--problem=image_mnist \
--model=shake_shake \
--hparams_set=shake_shake_quick \
--train_steps=1000 \
--eval_steps=100
```

### Run on FloydHub
Copy link
Contributor

@lukaszkaiser lukaszkaiser Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this section to the end, before papers? Thanks!

Copy link
Contributor

@rsepassi rsepassi Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And also add a line to the TOC.

And could you flesh out how to actually use FloydHub with T2T? I clicked the button and have a workspace but it's not clear how I would run t2t-trainer or otherwise use T2T.

Copy link
Contributor Author

@ReDeiPirati ReDeiPirati Aug 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

README.md Outdated
@@ -9,6 +9,7 @@ welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](CO
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/tensor2tensor/Lobby)
[![License](https://img.shields.io/badge/License-Apache%202.0-brightgreen.svg)](https://opensource.org/licenses/Apache-2.0)
[![Travis](https://img.shields.io/travis/tensorflow/tensor2tensor.svg)](https://travis-ci.org/tensorflow/tensor2tensor)
[![Run on FH](https://static.floydhub.com/button/button-small.svg)](https://floydhub.com/run?template=https://github.com/tensorflow/tensor2tensor)
Copy link
Contributor

@rsepassi rsepassi Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's follow the Basic Setup and rm the template parameter.
https://docs.floydhub.com/guides/run_on_floydhub_button/#basic-setup

Copy link
Contributor Author

@ReDeiPirati ReDeiPirati Aug 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

README.md Outdated
--problem=image_mnist \
--model=shake_shake \
--hparams_set=shake_shake_quick \
--train_steps=1000 \
--eval_steps=100
```

### Run on FloydHub
Copy link
Contributor

@rsepassi rsepassi Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And also add a line to the TOC.

And could you flesh out how to actually use FloydHub with T2T? I clicked the button and have a workspace but it's not clear how I would run t2t-trainer or otherwise use T2T.

@@ -0,0 +1 @@
env: tensorflow-1.9
Copy link
Contributor

@rsepassi rsepassi Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add:
machine: gpu

Copy link
Contributor Author

@ReDeiPirati ReDeiPirati Aug 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@ReDeiPirati
Copy link
Contributor Author

ReDeiPirati commented Aug 8, 2018

@lukaszkaiser @rsepassi thanks for the feedback! I have just updated the PR.

Copy link
Contributor

@lukaszkaiser lukaszkaiser left a comment

Looks good, thanks!

@afrozenator afrozenator merged commit b3a29be into tensorflow:master Aug 8, 2018
1 of 2 checks passed
tensorflow-copybara pushed a commit that referenced this issue Aug 8, 2018
PiperOrigin-RevId: 207941265
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes PR author has signed CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants