{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2780","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2780/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2780/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2780/events","html_url":"https://github.com/tensorflow/tensorflow/issues/2780","id":159610812,"number":2780,"title":"Potential Contribution: Ansible roles & playbooks","user":{"login":"kuza55","id":387986,"avatar_url":"https://avatars.githubusercontent.com/u/387986?v=3","gravatar_id":"","url":"https://api.github.com/users/kuza55","html_url":"https://github.com/kuza55","followers_url":"https://api.github.com/users/kuza55/followers","following_url":"https://api.github.com/users/kuza55/following{/other_user}","gists_url":"https://api.github.com/users/kuza55/gists{/gist_id}","starred_url":"https://api.github.com/users/kuza55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuza55/subscriptions","organizations_url":"https://api.github.com/users/kuza55/orgs","repos_url":"https://api.github.com/users/kuza55/repos","events_url":"https://api.github.com/users/kuza55/events{/privacy}","received_events_url":"https://api.github.com/users/kuza55/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20response","name":"awaiting response","color":"5319e7"},{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/triaged","name":"triaged","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-10T11:00:36Z","updated_at":"2016-07-12T17:27:38Z","closed_at":"2016-07-09T03:33:10Z","body":"I've been running tensorflow on ec2 spot instances rather than buying a GPU, and I've written a few ansible playbooks to make this easier given spot instances go down, etc.\r\n\r\nI split the base software out into two separate Ansible roles, one for CUDA/cuDNN: (For those unfamiliar with Ansible, the meat is in blob/master/tasks/main.yml)\r\nhttps://github.com/kuza55/ansible-cudnn\r\nAnd one for Bazel/TensorFlow:\r\nhttps://github.com/kuza55/ansible-tensorflow\r\n\r\nI've also got a playbook for baking an ec2 AMI from these, and for setting up more AWS-specific things, which I'll open source after I figure out how they should be structured that isn't super specific to all of my ec2 settings.\r\n\r\nOne thing I haven't done, but may be of interest, is to put together a playbook for setting up a tensorflow cluster and then doing some distributed training.\r\n\r\nLet me know if there is any interest in accepting these and linking to them from somewhere (it takes people a while to realize there's a lot of good stuff in the contrib directory).\r\n\r\nI'll probably try and submit these to Ansible Galaxy in the hopes people can find it more easily in either case."},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/232117986","html_url":"https://github.com/tensorflow/tensorflow/issues/2780#issuecomment-232117986","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/2780","id":232117986,"user":{"login":"kuza55","id":387986,"avatar_url":"https://avatars.githubusercontent.com/u/387986?v=3","gravatar_id":"","url":"https://api.github.com/users/kuza55","html_url":"https://github.com/kuza55","followers_url":"https://api.github.com/users/kuza55/followers","following_url":"https://api.github.com/users/kuza55/following{/other_user}","gists_url":"https://api.github.com/users/kuza55/gists{/gist_id}","starred_url":"https://api.github.com/users/kuza55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuza55/subscriptions","organizations_url":"https://api.github.com/users/kuza55/orgs","repos_url":"https://api.github.com/users/kuza55/repos","events_url":"https://api.github.com/users/kuza55/events{/privacy}","received_events_url":"https://api.github.com/users/kuza55/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T17:27:38Z","updated_at":"2016-07-12T17:27:38Z","body":"So, I made some example playbooks that use these roles: https://github.com/kuza55/ansible-examples/tree/master/tensorflow\r\n\r\nI also ended up writing up detailed instructions on how to use the playbooks I open sourced: https://medium.com/@kuza55/deep-learning-in-the-cloud-tensorflow-on-ec2-spot-instances-with-ansible-554ef7f59423#.ii8f4st5t\r\n\r\nWould it be appropriate to link the Medium post in the community section?"}}
{"actor":{"display_login":"kuza55"}}