As an AI engineer, I recently bought a laptop powered by the NVIDIA GeForce RTX 5090 Laptop GPU—a true powerhouse for AI development. This wasn’t just an upgrade; it was an investment in speed, scalability, and the ability to experiment with cutting-edge models. But here’s the reality: raw hardware alone doesn’t guarantee success. The right setup is everything.
This guide shares my personal experience and the exact steps I took to prepare my RTX 5090 laptop for AI development, from installing drivers to creating a reproducible Conda environment.
Why Conda and Not Anaconda or venv?
- Anaconda is great but heavy it installs hundreds of packages you may never use.
- venv is lightweight but doesn’t handle complex dependencies well, especially for GPU libraries like PyTorch and CUDA.
- Conda strikes the perfect balance: it manages Python versions, GPU packages, and system-level dependencies seamlessly.
I chose Miniconda, the lightweight version of Anaconda, for a clean and fast setup.
Step 1: Install Miniconda
Download Miniconda for Windows:
👉 https://docs.conda.io/en/latest/miniconda.html
After installation, verify and initialize Conda:
conda --version
conda init powershell
Restart PowerShell to enable conda activate.
Why Run conda init powershell?
If you skip this step, you’ll see an error like:
CondaError: Run 'conda init' before 'conda activate'
Here’s why:
- PowerShell doesn’t know how to load Conda’s shell functions by default.
conda init powershellmodifies your PowerShell profile (profile.ps1) and registry AutoRun so Conda loads every time you start PowerShell.- It enables:
conda activateandconda deactivate- Environment name in your prompt (e.g.,
(ai_env))
Adding Conda to PATH alone is not enough—you need this integration for full functionality.
Step 2: Create Your AI Environment in Your Home Directory
Navigate to your Windows user home folder (e.g., C:\Users\<YourUser>) and create a YAML file named:
ai_env_conda_environment.yml:
name: ai_env
channels:
- pytorch
- nvidia
- conda-forge
- defaults
dependencies:
- python=3.11
- pytorch
- torchvision
- torchaudio
- pytorch-cuda=12.1
- jupyterlab
- faiss-gpu
- pip
- pip:
- transformers==4.40.0
- langchain==0.2.0
- accelerate
- sentence-transformers
Then Run:
conda env create -f ai_env_conda_environment.yml
conda activate ai_env
Step 3: Add Environment Variables
To ensure CUDA and Conda work smoothly, add these to your System Environment Variables:
C:\ProgramData\miniconda3C:\ProgramData\miniconda3\ScriptsC:\ProgramData\miniconda3\Library\bin
Restart PowerShell after adding them.
Step 4: Check GPU Status with nvidia-smi
Before installing PyTorch, confirm your GPU and driver setup:
nvidia-smi
What is nvidia-smi?
- NVIDIA System Management Interface tool installed with your driver.
- Displays:
- GPU model and driver version
- CUDA version
- Memory usage and active processes
Example output:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 555.85 Driver Version: 555.85 CUDA Version: 12.5 |
| GPU Name : NVIDIA GeForce RTX 5090 Laptop GPU |
| Memory Usage : 1024MiB / 24463MiB |
+-----------------------------------------------------------------------------+
If you see this, your GPU is ready for AI workloads.
Step 5: Verify PyTorch GPU Support
Run:
python -c "import torch; print(torch.__version__, torch.cuda.is_available(), torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'No GPU')"
If you see your RTX 5090, you’re good but note: PyTorch may need nightly builds for full support:
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
Step 5: Add Jupyter Kernel
python -m ipykernel install --user --name ai_env --display-name "Python (ai_env)"
jupyter lab
Now you have a clean, GPU-ready environment for AI development. From here, you can start experimenting with Hugging Face models, LangChain, and more—all optimized for your RTX 5090.