From 0f1d7a1498c353ef62d1d1166ec904b3f1eaa85b Mon Sep 17 00:00:00 2001 From: tpmmthomas Date: Wed, 23 Oct 2024 02:01:28 +0800 Subject: [PATCH] update notes --- notes/google_cloud_setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes/google_cloud_setup.md b/notes/google_cloud_setup.md index f4d95e4..601e585 100644 --- a/notes/google_cloud_setup.md +++ b/notes/google_cloud_setup.md @@ -116,7 +116,7 @@ You only have $50 dollars worth of credit, which should be about 6 days of GPU u ``` git clone https://github.com/VICO-UoE/mlpractical.git ~/mlpractical cd ~/mlpractical - git checkout mlp2023-24/mlp_compute_engines + git checkout mlp2024-25/mlp_compute_engines ``` Then, to test PyTorch running on the GPU, run this script that trains a small convolutional network on EMNIST dataset: @@ -177,4 +177,4 @@ You are also free to use other tools such as `nohup` or `tmux`. Use online tutor | ```module mlp not found``` | Install the mlp package in your environment: ```python setup.py develop``` | | ```NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.``` | Remove the current driver by running: ```cd /``` and ```sudo apt purge nvidia-*``` Follow step 11 of the instructions or the following commands: (1) download the R470 driver ```wget https://us.download.nvidia.com/XFree86/Linux-x86_64/470.223.02/NVIDIA-Linux-x86_64-470.223.02.run```, (2) change the file permissions to make it executable with ```chmod +x NVIDIA-Linux-x86_64-470.223.02.run``` and (3) install the driver ```sudo ./NVIDIA-Linux-x86_64-470.223.02.run``` | | ```module 'torch' has no attribute 'cuda'``` | You most probably have a file named ```torch.py``` in your current directory. Rename it to something else and try again. You might need to run the setup again. Else ```import torch``` will be calling this file instead of the PyTorch library and thus causing a conflict. | -| ```Finalizing NVIDIA driver installation. Error! Your kernel headers for kernel 5.10.0-26-cloud-amd64 cannot be found. Please install the linux-headers-5.10.0-26-cloud-amd64 package, or use the --kernelsourcedir option to tell DKMS where it's located. Driver updated for latest kernel.``` | Install the header package with ```sudo apt install linux-headers-5.10.0-26-cloud-amd64``` | \ No newline at end of file +| ```Finalizing NVIDIA driver installation. Error! Your kernel headers for kernel 5.10.0-26-cloud-amd64 cannot be found. Please install the linux-headers-5.10.0-26-cloud-amd64 package, or use the --kernelsourcedir option to tell DKMS where it's located. Driver updated for latest kernel.``` | Install the header package with ```sudo apt install linux-headers-5.10.0-26-cloud-amd64``` |