Skip to content

klmcwhirter/explore_pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

explore_pytorch

Simple exploratory materials for pytorch with Linux laptop containing an NVIDIA GPU

Fedora NVIDIA Python PyTorch

Overview

The purpose of this project is to capture the things needed to consider when getting started with PyTorch on Fedora Linux running on a laptop containing an NVIDIA GPU.

Pre-requisites

Fedora 39

To install Fedora 39 (40 will be released soon) go to LINK and download the Fedora Media Writer.

You can write the installer to a thumb drive of about 20GB or so.

CUDA NVIDIA driver

To install the CUDA NVIDIA driver on Fedora 39 see installation instructions

Python 3.12

Fedora 39 comes with Python 3.12.2. But, to be certain ...

$ sudo dnf install python3.12

PDM

Install pdm. See https://pdm-project.org/latest/#recommended-installation-method.

Then execute the following in this repo to create the virtualenv and install Python dependencies.

$ pdm create

VS Code with Python

To install VS Code on Fedora follow these MS instructions.

Then install the Python extensions. VS Code Python Quick Start

Test setup in VS Code

Run All in jupyter/pytorch-install-jul-2020.ipynb

Force CPU Only

See this project for a tool to disable the GPU: nvidia_more_battery

Once you have nvidia_more_battery enabled and have rebooted run the tests again to see the difference!

Jupyter Notebooks

References

PyTorch

NVIDIA and CUDA

Professor at WSUTL

About

Simple exploratory materials for pytorch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published