AI for Science – Early Lessons from NERSC’s Perlmutter Supercomputer

By John Russell

April 28, 2022

Roughly a year ago the National Energy Research Scientific Computing Center (NERSC) launched Perlmutter, which was hailed at the time as the “world’s fastest AI supercomputer” by Nvidia whose GPUs provide much of Perlmutter’s power. Since then, NERSC has been aggressively ramping up its mixed AI-HPC workload capability – software, early science apps, AI tools, training, etc. What have we learned so far?

At this week’s AI Systems Summit, Wahid Bhimji, group lead and a big data architect in the data and analytics services group at NERSC, provided a fast-moving tour of NERSC/Perlmutter’s leap into the AI-for-Science world.

“We see at NERSC that AI for science has matured beyond proof of concepts and actually into production. But it’s only on the verge of having a transformative impact,” said Bhimji. “To do that will require using supercomputing scale and also coupling to existing scientific software, large scale scientific simulations, and also big scientific datasets. That’s a role for centers like NERSC, but work is needed across model development and applications as well as deploying suitable computing and tools and technologies and methods to use this computing.”

Named for the Nobel Prize winning cosmologist (Saul Perlmutter) NERSC’s latest system (specs in slide above) is still in “an early science phase where we’re exploiting this system for particular codes to shake it out but not charging the normal way for hours,” said Bhimji. Perlmutter comprises 12 cabinets with over 6,000 GPUs, and also features an all flash Lustre file system. “Phase two of this system is coming soon and includes CPU-only cabinets for [when] we run other science codes that can’t necessarily make use of GPUs. It will also include an upgrade to the whole system networking making use of HPE/Cray’s new Slingshot Ethernet-based high performance network.”

In line with expectations NERSC has seen a jump in AI workflow submissions, noted Bhimji.

“We know this through instrumentation which guides what we can deploy and ask. For example, we’ve instrumented a large fraction of the Python inputs on the system whether or not they use our Python software.  We have a link [taken from the slide below] to the paper that shows how we do this. Through this, we can learn several lessons, for example, the large growth in users of PyTorch and TensorFlow, the overall number tripling from 2018 to 2020, and then doubling again in ’21.”

NERSC also does a regular user survey. “We can see that we have deep learning users [and] machine learning users across different science disciplines. [We’ve also seen] that there’s a need for computing scale in that people’s models often take days or even weeks on a single GPU or on single resources without using distributed ones.”

Bhimji roughed out some of the lessons learned from early deployments and the survey. Broadly the ideas NERSC is gleaning now will help it prepare its various systems, including Perlmutter, for broader use by scientists seeking to use AI. The lessons are also useful, he hopes, for other institutions.

“The first is that we see a demand for installations where functionality and performance are kind of guaranteed by us. From this survey we could see, perhaps surprisingly, that the majority of people actually use the modules we provide. But also, people need to be able to customize and install their own packages alongside the software. So we need to support recipes for using a condo cloning environment and building on top of it. For Perlmutter, we decided to explore and currently provide both our own compiler software but also make use of the NGC containers that NVIDIA provides,” he said.

“Now, not all HPC centers support containerization, but we have [supported it] for a while through a method called Shifter which makes performance-secure use of Docker containers and works well with the NGC containers and allows you to pull them in directly. This was crucial really in the deployment phase of Perlmutter to ensure a stable and performant software environment despite changes in the underlying system software stack. That said, we did have some deployment issues [and] thanks to a close collaboration with Nvidia. we were able to resolve – so this includes things [like], differences between the Docker and Shifter container stack.”

Given AI’s relative newness, it’s important to give scientists flexibility to try different AI approaches, said Bhimji.

“Scientists need the ability to experiment, particularly in this phase, where they’re exploring lots of different AI models for their science. To do that they need interactivity and one way to provide that is through JupyterHub. We have a very popular JupyterHub service at NERSC that has well over 2,000 users. It’s also a favorite way for people to develop machine learning code. So, all of these bars here in the survey (slide below) are people using Jupyter either at NERSC or elsewhere. At NERSC you can use Jupyter with either shared resources or even dedicated GPU nodes. You can get four GPUs just for your workload, and even multiple GPU nodes. It’s possible to start services that wait on the back system, but then can get quite large distributed resources. We also provide kernels for deep learning software with optimized versions, but also people can build their own kernels.”

Automation is another desirable element to offer, said Bhimji.

“A particular area for this is in hyperparameter optimization. Model selection and tuning is still pretty important in these deep learning models for getting performance and this is computationally expensive, which means a need for HPC again. But many different tools exist for performing this and we have to support using quite a large number of these NERSC. We’ve also seen that some [of these] can need adaptation to work well in our back systems and our back-system policies and the multi-user environment we’re in. So we have some work – for example, this blog post describes some work with Ray Tune to really enable these tools to work well on our systems,” he said.

As seen at the bottom right of the third slide below, Ray Tune was used to dramatically cut runtime on graph neural network models used on a NERSC catalyst deep learning project.

Aside from tools to help individual researchers, it is also necessary to tune the overall system for AI workflow requirements. Perhaps surprisingly, part of how NERSC has accomplished this is by participating in the MLPerf exercise, including work on developing the MLPerf HPC benchmark (HPC v.7) which debuted at SC20 and was run again at SC21 (HPC v1.0). The latest version included a new benchmark, OpenCatalyst, and also separated out strong-scaling and weak-scaling. The list of participating systems was impressive:  Fugaku, Piz Daint (CSCS), Theta ANL), Perlmutter (NERSC), JUWELS Booster (Jülich SC), HAL cluster (NCSA), Selene (Nvidia) and Frontera (TACC).

“We’ve been heavily involved from the start of this HPC working group within the MLPerf organization and this is aiming to look at not only training in general but also particularly for scientific applications, and particularly [use of] HPC resources,” said Bhimji. He noted the new weak scaling metric, “really allows you to fill a big system with multiple models. So, they got submissions from various large HPC centers around the world. The [year-to-year] results are improved, which shows some progress here with large-scale submissions both for the strong scaling time-to-train benchmark a single model, but also these weak-scaling submissions at large-scale on Perlmutter and also on the world’s number one system Fugaku.”

“So what does this mean for Perlmutter? We were able to run this very early in Perlmutter’s deployment, which was really valuable for shaping the system and ensuring the scale of deep learning we wanted to do on the machine. We got some reasonable results – you’d really need to compare with the whole results – but I can tell you that we were the leading time-to-train results for the OpenCatalyst benchmark and close-second place to a well-tuned system, Nvidia’s Selene supercomputer. We also had the largest-scale GPU run, making use of a large fraction of the Perlmutter machine,” he said.

Bhimji noted, “It was okay coming second place to Selene because it allowed us to do some in-depth profiling afterwards to understand why we had any difference. From that, we could see that the dominant bottleneck was actually from the network. And so I don’t expect you to read this profile but the all-reduce stage was actually quite a bit slower than on Selene. But actually this is good news because we know that Perlmutter is having its network upgraded and we expect a potentially 4x improvement just from the hardware. We also even understood smaller one-node differences that we saw as coming from unoptimized kernels in this particular implementation, which is in MXNet. Those kernels will probably be improved, but at the moment are memory bandwidth bound since Selene was using the A100 GPU’s larger (80GB) memory.”

Bhimji also presented brief summaries of early science work that illustrated AI’s ability to speed analysis (astronomy), improve simulation (weather/climate), and automate (catalyst dataset). The following slides summarize all three projects.

Subscribe to HPCwire's Weekly Update!

Be the most informed person in the room! Stay ahead of the tech trends with industry updates delivered to you every week!

2024 Winter Classic: Meet Team Morehouse

April 17, 2024

Morehouse College? The university is well-known for their long list of illustrious graduates, the rigor of their academics, and the quality of the instruction. They were one of the first schools to sign up for the Winter Read more…

MLCommons Launches New AI Safety Benchmark Initiative

April 16, 2024

MLCommons, organizer of the popular MLPerf benchmarking exercises (training and inference), is starting a new effort to benchmark AI Safety, one of the most pressing needs and hurdles to widespread AI adoption. The sudde Read more…

Quantinuum Reports 99.9% 2-Qubit Gate Fidelity, Caps Eventful 2 Months

April 16, 2024

March and April have been good months for Quantinuum, which today released a blog announcing the ion trap quantum computer specialist has achieved a 99.9% (three nines) two-qubit gate fidelity on its H1 system. The lates Read more…

Mystery Solved: Intel’s Former HPC Chief Now Running Software Engineering Group 

April 15, 2024

Last year, Jeff McVeigh, Intel's readily available leader of the high-performance computing group, suddenly went silent, with no interviews granted or appearances at press conferences.  It led to questions -- what's Read more…

Exciting Updates From Stanford HAI’s Seventh Annual AI Index Report

April 15, 2024

As the AI revolution marches on, it is vital to continually reassess how this technology is reshaping our world. To that end, researchers at Stanford’s Institute for Human-Centered AI (HAI) put out a yearly report to t Read more…

Crossing the Quantum Threshold: The Path to 10,000 Qubits

April 15, 2024

Editor’s Note: Why do qubit count and quality matter? What’s the difference between physical qubits and logical qubits? Quantum computer vendors toss these terms and numbers around as indicators of the strengths of t Read more…

MLCommons Launches New AI Safety Benchmark Initiative

April 16, 2024

MLCommons, organizer of the popular MLPerf benchmarking exercises (training and inference), is starting a new effort to benchmark AI Safety, one of the most pre Read more…

Exciting Updates From Stanford HAI’s Seventh Annual AI Index Report

April 15, 2024

As the AI revolution marches on, it is vital to continually reassess how this technology is reshaping our world. To that end, researchers at Stanford’s Instit Read more…

Intel’s Vision Advantage: Chips Are Available Off-the-Shelf

April 11, 2024

The chip market is facing a crisis: chip development is now concentrated in the hands of the few. A confluence of events this week reminded us how few chips Read more…

The VC View: Quantonation’s Deep Dive into Funding Quantum Start-ups

April 11, 2024

Yesterday Quantonation — which promotes itself as a one-of-a-kind venture capital (VC) company specializing in quantum science and deep physics  — announce Read more…

Nvidia’s GTC Is the New Intel IDF

April 9, 2024

After many years, Nvidia's GPU Technology Conference (GTC) was back in person and has become the conference for those who care about semiconductors and AI. I Read more…

Google Announces Homegrown ARM-based CPUs 

April 9, 2024

Google sprang a surprise at the ongoing Google Next Cloud conference by introducing its own ARM-based CPU called Axion, which will be offered to customers in it Read more…

Computational Chemistry Needs To Be Sustainable, Too

April 8, 2024

A diverse group of computational chemists is encouraging the research community to embrace a sustainable software ecosystem. That's the message behind a recent Read more…

Hyperion Research: Eleven HPC Predictions for 2024

April 4, 2024

HPCwire is happy to announce a new series with Hyperion Research  - a fact-based market research firm focusing on the HPC market. In addition to providing mark Read more…

Nvidia H100: Are 550,000 GPUs Enough for This Year?

August 17, 2023

The GPU Squeeze continues to place a premium on Nvidia H100 GPUs. In a recent Financial Times article, Nvidia reports that it expects to ship 550,000 of its lat Read more…

Synopsys Eats Ansys: Does HPC Get Indigestion?

February 8, 2024

Recently, it was announced that Synopsys is buying HPC tool developer Ansys. Started in Pittsburgh, Pa., in 1970 as Swanson Analysis Systems, Inc. (SASI) by John Swanson (and eventually renamed), Ansys serves the CAE (Computer Aided Engineering)/multiphysics engineering simulation market. Read more…

Intel’s Server and PC Chip Development Will Blur After 2025

January 15, 2024

Intel's dealing with much more than chip rivals breathing down its neck; it is simultaneously integrating a bevy of new technologies such as chiplets, artificia Read more…

Choosing the Right GPU for LLM Inference and Training

December 11, 2023

Accelerating the training and inference processes of deep learning models is crucial for unleashing their true potential and NVIDIA GPUs have emerged as a game- Read more…

Baidu Exits Quantum, Closely Following Alibaba’s Earlier Move

January 5, 2024

Reuters reported this week that Baidu, China’s giant e-commerce and services provider, is exiting the quantum computing development arena. Reuters reported � Read more…

Comparing NVIDIA A100 and NVIDIA L40S: Which GPU is Ideal for AI and Graphics-Intensive Workloads?

October 30, 2023

With long lead times for the NVIDIA H100 and A100 GPUs, many organizations are looking at the new NVIDIA L40S GPU, which it’s a new GPU optimized for AI and g Read more…

Shutterstock 1179408610

Google Addresses the Mysteries of Its Hypercomputer 

December 28, 2023

When Google launched its Hypercomputer earlier this month (December 2023), the first reaction was, "Say what?" It turns out that the Hypercomputer is Google's t Read more…

AMD MI3000A

How AMD May Get Across the CUDA Moat

October 5, 2023

When discussing GenAI, the term "GPU" almost always enters the conversation and the topic often moves toward performance and access. Interestingly, the word "GPU" is assumed to mean "Nvidia" products. (As an aside, the popular Nvidia hardware used in GenAI are not technically... Read more…

Leading Solution Providers

Contributors

Shutterstock 1606064203

Meta’s Zuckerberg Puts Its AI Future in the Hands of 600,000 GPUs

January 25, 2024

In under two minutes, Meta's CEO, Mark Zuckerberg, laid out the company's AI plans, which included a plan to build an artificial intelligence system with the eq Read more…

DoD Takes a Long View of Quantum Computing

December 19, 2023

Given the large sums tied to expensive weapon systems – think $100-million-plus per F-35 fighter – it’s easy to forget the U.S. Department of Defense is a Read more…

China Is All In on a RISC-V Future

January 8, 2024

The state of RISC-V in China was discussed in a recent report released by the Jamestown Foundation, a Washington, D.C.-based think tank. The report, entitled "E Read more…

Shutterstock 1285747942

AMD’s Horsepower-packed MI300X GPU Beats Nvidia’s Upcoming H200

December 7, 2023

AMD and Nvidia are locked in an AI performance battle – much like the gaming GPU performance clash the companies have waged for decades. AMD has claimed it Read more…

Nvidia’s New Blackwell GPU Can Train AI Models with Trillions of Parameters

March 18, 2024

Nvidia's latest and fastest GPU, codenamed Blackwell, is here and will underpin the company's AI plans this year. The chip offers performance improvements from Read more…

Eyes on the Quantum Prize – D-Wave Says its Time is Now

January 30, 2024

Early quantum computing pioneer D-Wave again asserted – that at least for D-Wave – the commercial quantum era has begun. Speaking at its first in-person Ana Read more…

GenAI Having Major Impact on Data Culture, Survey Says

February 21, 2024

While 2023 was the year of GenAI, the adoption rates for GenAI did not match expectations. Most organizations are continuing to invest in GenAI but are yet to Read more…

Intel’s Xeon General Manager Talks about Server Chips 

January 2, 2024

Intel is talking data-center growth and is done digging graves for its dead enterprise products, including GPUs, storage, and networking products, which fell to Read more…

  • arrow
  • Click Here for More Headlines
  • arrow
HPCwire