move devcontainer (#113)

This commit is contained in:
Sebastian Raschka
2024-04-08 20:49:37 -04:00
committed by GitHub
parent 61b6e35ddf
commit 028a346498
6 changed files with 26 additions and 14 deletions

View File

@@ -0,0 +1,11 @@
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y rsync && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

View File

@@ -0,0 +1,3 @@
# Optional Docker Environment
This is an optional Docker environment for those users who prefer Docker. For more instructions, see the *Docker Environment Setup Guide* in [appendix-A/04_optional-docker-environment](../).

View File

@@ -0,0 +1,19 @@
{
"name": "LLMs From Scratch",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"runArgs": ["--runtime=nvidia", "--gpus=all"],
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-azuretools.vscode-docker",
"ms-toolsai.jupyter",
"yahyabatulu.vscode-markdown-alert",
"tomoki1207.pdf"
]
}
}
}