Using the LUMI web interface¶
Presenters: Mats Sjöberg (CSC) and Oskar Taubert (CSC)
Content:
- Introduction to the Open OnDemand web interface
- Using PyTorch in JupyterLab on LUMI
- Limitations of the web-based interactive interface and the CLI interface
Extra materials¶
Q&A¶
-
Is it possible to use the built-in interactive breakpoint debugging features of IDEs like VS Code while running a model on LUMI interactively?
- VSCode and most of its features work either through the web app or with the normal remote features.
How to set the debugging feature to work interactively? I remember I tried, but didn't manage to.
-
Frankly, in LUST, we don't use it ourselves so we cannot really help you here.
-
Note also that VSCode was never meant to be an HPC debugger. For debugging applications on LUMI, there are better choices that we discuss in other courses.
Any links to tutorials on how to set it to work?
-
These are the materials of a course done with HPE and AMD about their tools (and the current latest edition was actually in the same room where this course is taking place)
-
(Alfio, HPE) There is a VSCode plugin to run gdb4hp. I've not tried on LUMI though, the documentation is for CPE 24.07 (while LUMI has 24.03). General documentation on gdb4hpc can be found on the CPE documentation web site (and the other webpages are showing examples, e.g. this page on Python debugging.
Anything straight forward directly used to debug existing python scripts? The links look like are more for C.
- See my last example. Actually, the page mentions a "python" mode, see the "python" command on the man page of gdb4hpc. Still, I'm not sure this is available on the version installed on LUMI...
-
Can I use interactive features and build a UI with tools like Gradio or Streamlit while running on LUMI?
-
In principle, yes.
-
In practice though, it is a good idea to fully decouple anything graphical from computations. Running a GUI app remotely is always painful due to network delays. LUMI really is not a good graphical workstation. In many cases, you'll be happier running the GUI pre- and postprocessing on a machine closer to where you are.
You have to use either a web browser or VNC client that connects to a VNC server on LUMI (which is also what the desktop app uses under the hood) so all you see are really a sequence of compressed images sent over the network, with some lag possible in mouse pointer movements etc. When using such interfaces, you really feel how slow light is...
-