tchan2 / packet-gpu Goto Github PK
View Code? Open in Web Editor NEWA first step example of creating an environment that allows for the implementation of deep learning in a GPU supported Packet server using Terraform, Docker, and Jupyter.
A first step example of creating an environment that allows for the implementation of deep learning in a GPU supported Packet server using Terraform, Docker, and Jupyter.
Line 9 in 1cb1743
The first run of the terraform will always create a "Project 1" in the user account, even when a variable is defined. Maybe need to figure out a single source of truth and define defaults there?
I like that you're handling this:
Line 33 in 3bb40a1
and while the script will exit if docker
isn't in the $PATH (as you intended), I'd recommend just adding some additional handling so when checking the cloudinit output, there can be some more robust messaging, like:
if ! type docker; then echo "Docker not installed..."; exit 1; fi
this also allows you add some retry behavior down the road if you wanted for the other dependencies as well.
I'd recommend making the facility
variable, itself, a list, rather than providing it as a string into a list (now capped at that single value for length):
Line 20 in 3bb40a1
so something like this:
Lines 23 to 26 in 3bb40a1
could be expressed like:
variable "facility" {
default = ["dfw2"]
}
and then referenced like:
facilities = "${var.facility}"
so even if you only plan to use a single facility, this project can scale if there are more GPU-equipped facilities one would like to use.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.