Add devcontainer

This commit is contained in:
Rayed Bin Wahed 2024-02-26 20:24:15 +08:00
parent 78ed2e35bc
commit fa7e659eb3
2 changed files with 31 additions and 0 deletions

12
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM pytorch/pytorch:2.2.0-cuda12.1-cudnn8-devel
RUN <<EOF
apt-get update
apt-get install -y --no-install-recommends \
git
rm -rf /var/lib/apt/lists/*
EOF
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

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-python.black-formatter",
"ms-azuretools.vscode-docker",
"ms-toolsai.jupyter",
"esbenp.prettier-vscode"
]
}
}
}