.
This commit is contained in:
parent
86617e8ee7
commit
a3dfd3b36e
9
.gitignore
vendored
9
.gitignore
vendored
@ -1,3 +1,10 @@
|
||||
**/.ipynb_checkpoints
|
||||
.cache
|
||||
**/.cache
|
||||
fastbook
|
||||
*.jpg
|
||||
*.JPG
|
||||
*.png
|
||||
*.gif
|
||||
*.jpeg
|
||||
pytorch/**/jupyter-settings
|
||||
**/workspaces
|
||||
25
Dockerfile
25
Dockerfile
@ -1,25 +0,0 @@
|
||||
FROM pytorch/pytorch:latest
|
||||
|
||||
# Install JupyterLab
|
||||
RUN pip install jupyterlab
|
||||
|
||||
# Install additional packages
|
||||
RUN pip install plotly
|
||||
RUN pip install fastbook
|
||||
|
||||
# Install additional applications
|
||||
RUN apt update
|
||||
RUN apt-get install graphviz -y
|
||||
|
||||
# Set environment variables, etc.
|
||||
#ENV MY_ENV_VAR=myvalue
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /workspace
|
||||
|
||||
# Expose the port for JupyterLab
|
||||
EXPOSE 8888
|
||||
|
||||
# Command to run JupyterLab
|
||||
CMD ["jupyter-lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=''"]
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
jupyter:
|
||||
build: /opt/jupyter_gpu
|
||||
image: cvtt/jupyter_gpu:v1.0.5
|
||||
container_name: cvtt_gpu_jupyter
|
||||
runtime: nvidia
|
||||
environment:
|
||||
- JUPYTER_ENABLE_LAB=yes
|
||||
volumes:
|
||||
- /opt/jupyter_gpu/notebooks:/workspace
|
||||
- /opt/jupyter_gpu/jupyter_settings/user-settings:/root/.jupyter/lab/user-settings
|
||||
- /opt/jupyter_gpu/jupyter_settings/workspaces:/root/.jupyter/lab/workspaces
|
||||
- /opt/jupyter_gpu/.cache/torch:/root/.cache/torch
|
||||
ports:
|
||||
- "8888:8888"
|
||||
shm_size: "8gb"
|
||||
@ -1,10 +0,0 @@
|
||||
{
|
||||
// Notifications
|
||||
// @jupyterlab/apputils-extension:notification
|
||||
// Notifications settings.
|
||||
// *******************************************
|
||||
|
||||
// Fetch official Jupyter news
|
||||
// Whether to fetch news from Jupyter news feed. If `true`, it will make a request to a website.
|
||||
"fetchNews": "false"
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
{
|
||||
// Theme
|
||||
// @jupyterlab/apputils-extension:themes
|
||||
// Theme manager settings.
|
||||
// *************************************
|
||||
|
||||
// Selected Theme
|
||||
// Application-level visual styling theme. Ignored when Adaptive Theme is enabled.
|
||||
"theme": "JupyterLab Dark"
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{"data":{"layout-restorer:data":{"main":{"dock":{"type":"tab-area","currentIndex":1,"widgets":["notebook:oleg/Testing GPU.ipynb","notebook:oleg/Education/fastai/fastbook/01_intro.ipynb"]},"current":"notebook:oleg/Education/fastai/fastbook/01_intro.ipynb"},"down":{"size":0,"widgets":[]},"left":{"collapsed":false,"visible":true,"current":"filebrowser","widgets":["filebrowser","running-sessions","@jupyterlab/toc:plugin","extensionmanager.main-view"],"widgetStates":{"jp-running-sessions":{"sizes":[1,0,0,0,0,0],"expansionStates":[false,false,false,false,false,false]},"extensionmanager.main-view":{"sizes":[0.3333333333333333,0.3333333333333333,0.3333333333333333],"expansionStates":[false,false,false]}}},"right":{"collapsed":true,"visible":true,"widgets":["jp-property-inspector","debugger-sidebar"],"widgetStates":{"jp-debugger-sidebar":{"sizes":[0.2,0.2,0.2,0.2,0.2],"expansionStates":[false,false,false,false,false]}}},"relativeSizes":[0.1992063492063492,0.8007936507936508,0],"top":{"simpleVisibility":true}},"docmanager:recents":{"opened":[{"path":"oleg/Education/fastai/fastbook","contentType":"directory","root":"/workspace"},{"path":"oleg/Education/fastai/fastbook/01_intro.ipynb","contentType":"notebook","factory":"Notebook","root":"/workspace"},{"path":"oleg","contentType":"directory","root":"/workspace"},{"path":"oleg/Testing GPU.ipynb","contentType":"notebook","factory":"Notebook","root":"/workspace"},{"path":"oleg/Education/fastai","contentType":"directory","root":"/workspace"}],"closed":[{"path":"oleg/Education/fastai/fastbook/01_intro.ipynb","contentType":"notebook","factory":"Notebook","root":"/workspace"},{"path":"oleg/Testing GPU.ipynb","contentType":"notebook","factory":"Notebook","root":"/workspace"}]},"file-browser-filebrowser:cwd":{"path":"oleg/Education/fastai/fastbook"},"notebook:oleg/Testing GPU.ipynb":{"data":{"path":"oleg/Testing GPU.ipynb","factory":"Notebook"}},"notebook:oleg/Education/fastai/fastbook/01_intro.ipynb":{"data":{"path":"oleg/Education/fastai/fastbook/01_intro.ipynb","factory":"Notebook"}}},"metadata":{"id":"default"}}
|
||||
@ -1,126 +0,0 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "6b269e64-be58-43b5-ad60-0fbd1d37861a",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"CUDA is available. Number of GPUs: 1\n",
|
||||
"GPU Name: NVIDIA GeForce RTX 3060\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import torch\n",
|
||||
"\n",
|
||||
"# Check if CUDA is available\n",
|
||||
"if torch.cuda.is_available():\n",
|
||||
" print(f\"CUDA is available. Number of GPUs: {torch.cuda.device_count()}\")\n",
|
||||
" print(f\"GPU Name: {torch.cuda.get_device_name(0)}\")\n",
|
||||
"else:\n",
|
||||
" print(\"CUDA is not available. No GPU detected.\")\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "97906ea2-b284-4966-9c11-b8629f053815",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import plotly"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "7313a620-a0eb-4207-a12a-90aeee3cd980",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0]'"
|
||||
]
|
||||
},
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import sys\n",
|
||||
"sys.version"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "95d9a2e6-3464-4dbe-9a97-0c2d5eb34193",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"environ{'PATH': '/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n",
|
||||
" 'HOSTNAME': '1fc69c311e22',\n",
|
||||
" 'JUPYTER_ENABLE_LAB': 'yes',\n",
|
||||
" 'NVIDIA_VISIBLE_DEVICES': 'all',\n",
|
||||
" 'NVIDIA_DRIVER_CAPABILITIES': 'compute,utility',\n",
|
||||
" 'LD_LIBRARY_PATH': '/usr/local/nvidia/lib:/usr/local/nvidia/lib64',\n",
|
||||
" 'PYTORCH_VERSION': '2.2.1',\n",
|
||||
" 'HOME': '/root',\n",
|
||||
" 'LC_CTYPE': 'C.UTF-8',\n",
|
||||
" 'JPY_SESSION_NAME': '/workspace/oleg/Testing GPU.ipynb',\n",
|
||||
" 'JPY_PARENT_PID': '1',\n",
|
||||
" 'PYDEVD_USE_FRAME_EVAL': 'NO',\n",
|
||||
" 'TERM': 'xterm-color',\n",
|
||||
" 'CLICOLOR': '1',\n",
|
||||
" 'FORCE_COLOR': '1',\n",
|
||||
" 'CLICOLOR_FORCE': '1',\n",
|
||||
" 'PAGER': 'cat',\n",
|
||||
" 'GIT_PAGER': 'cat',\n",
|
||||
" 'MPLBACKEND': 'module://matplotlib_inline.backend_inline',\n",
|
||||
" 'CUDA_MODULE_LOADING': 'LAZY'}"
|
||||
]
|
||||
},
|
||||
"execution_count": 4,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import os\n",
|
||||
"import pandas as pd\n",
|
||||
"import matplotlib\n",
|
||||
"os.environ"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.10.13"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user