aj2614@nyu.edu commited on
Commit
a00e24a
1 Parent(s): b494114

squash feature branch milestone 1

Browse files
language-models-project/Dockerfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ FROM ubuntu:20.04
2
+ #RUN apt install python
3
+ CMD "bash"
language-models-project/README.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Installation instructions
2
+
3
+ ```docker compose run dev-environment```
4
+
5
+ Procedure used:
6
+
7
+ Reasoned that it would make the most amount of sense to be able to modify the
8
+ source code while the container is still running to allow for iterative
9
+ debugging in the environment in which it is being deployed. To avoid writing
10
+ back to the system, a readonly option was provided to the filesystem.
11
+
12
+ Docker compose was used to provide a separation of concerns, and to move testing
13
+ logic outside of the container that is to be deployed. This decouples the logic
14
+ of the tests from the application logic. I have familiarity with docker compose
15
+ and am happy to work with it again.
16
+
17
+ A bare-metal python Dockerfile base image was used to provide a stable python
18
+ deployment version. This version will be targeted in the poetry files, and
19
+ packages necessary will be installed into the system python with the appropriate
20
+ poetry arguments.
language-models-project/Screenshot 2023-03-26 235302.png ADDED
language-models-project/docker-compose.yml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ version: "3.9"
2
+ services:
3
+ dev-environment:
4
+ build: .
5
+ image: dev-env
6
+ volumes:
7
+ - ./language_models_project/:/app/src/
language-models-project/language_models_project/__init__.py ADDED
File without changes
language-models-project/poetry.lock ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # This file is automatically @generated by Poetry 1.4.1 and should not be changed by hand.
2
+ package = []
3
+
4
+ [metadata]
5
+ lock-version = "2.0"
6
+ python-versions = "^3.10"
7
+ content-hash = "53f2eabc9c26446fbcc00d348c47878e118afc2054778c3c803a0a8028af27d9"
language-models-project/pyproject.toml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.poetry]
2
+ name = "assignment-1"
3
+ version = "0.1.0"
4
+ description = ""
5
+ authors = ["Your Name <you@example.com>"]
6
+ readme = "README.md"
7
+ packages = [{include = "assignment_1"}]
8
+
9
+ [tool.poetry.dependencies]
10
+ python = "3.9.15"
11
+ black = "*"
12
+ jupyterlab = "*"
13
+ ipython = "*"
14
+ numpy = "*"
15
+ pandas = "*"
16
+ jax = "*"
17
+ matplotlib = "*"
18
+ seaborn = "*"
19
+
20
+
21
+ [build-system]
22
+ requires = ["poetry-core"]
23
+ build-backend = "poetry.core.masonry.api"
language-models-project/tests/__init__.py ADDED
File without changes