๐Additional AI Resources - DrAlzahrani/HPC-AI-Resources GitHub Wiki
๐ Expanse HPC Jupyter Notebook Workshop Guide ๐
๐ Welcome to Your Supercomputing Journey! ๐
This fun guide will help you access powerful Jupyter Notebooks on SDSC's Expanse supercomputer. Let's get computing! โจ
๐ Step 1: Portal Login ๐
- ๐ Open your browser and go to: https://portal.expanse.sdsc.edu/
- ๐ Log in with your credentials
- You'll see the Expanse Portal with the red SDSC logo and navigation menu
- You should be logged in as your username (shown in top right corner)
๐ป Step 2: Launch Shell Access ๐ป
- ๐ Find and click on the "expanse Shell Access" app
- Look in the Pinned Apps section with the terminal ">" icon
- It's in the first row of apps, on the right side
๐ ๏ธ Step 3: Set Up Your Environment ๐ ๏ธ
-
๐งฉ Add Galyleo to your PATH:
export PATH="/cm/shared/apps/sdsc/galyleo:${PATH}"
-
๐ Check your account information:
expanse-client user -r expanse
-
๐ You'll see a table like this:
โญโโโโฌโโโโโโโโฌโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโฎ โ โ NAME โ STATE โ PROJECT โ TG PROJECT โ USED โ AVAILABLE โ USED BY PROJECT โ โโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค โ 1 โ usr42 โ allow โ cs270 โ TG-ABC123456 โ 10 โ 3000 โ 25 โ โฐโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโฏ
-
โ๏ธ Note your PROJECT value (e.g., "cs270" in this example)
๐ Step 4: Launch Your Notebook ๐
-
๐ฅ Launch Jupyter with your project information:
galyleo launch --account cs270 --partition shared --cpus 2 --memory 4 --time-limit 00:30:00 --env-modules cpu/0.17.3b,anaconda3/2021.05
- โ ๏ธ Replace
cs270
with YOUR project ID! - This config gives you:
- ๐ง 2 CPU cores
- ๐พ 4GB of memory
- โฑ๏ธ 30 minutes of compute time
- ๐ฆ CPU and Anaconda modules
- โ ๏ธ Replace
-
โณ Wait for the system to process (be patient!)
๐ Step 5: Connect to Jupyter ๐
-
๐ When successful, you'll see a message: "Success! Token linked to jobid."
-
๐ Look for the HTTPS URL that looks like:
https://mountain-sunrise-butterfly.expanse-user-content.sdsc.edu/?token=b42f8d71c9e3516ab723490c8d51f3e9
-
๐ฑ๏ธ Copy the ENTIRE URL (this is your secure access key!)
-
๐ Paste it into a new browser tab
-
๐ Voilร ! Your Jupyter Notebook interface will load when resources are ready
โ ๏ธ Important Tips โ ๏ธ
- ๐ Never share your URL/token - it's your private key!
- โฐ Your session will end after the time limit (30 min in our example)
- ๐พ Files save to your home directory by default
- ๐ To end early: use "File" โ "Shut Down" or cancel the job in terminal
๐ Troubleshooting ๐
If something goes wrong:
- ๐งพ Check your account allocation (is it active?)
- ๐ข Verify you used the correct project ID
- ๐ Try a different partition if resources are unavailable
- ๐ Still stuck? Contact SDSC support!
๐ Happy Computing! ๐
Remember, with great computing power comes great responsibility. Use your HPC time wisely! ๐งโโ๏ธ