Sony Pixel Power calrec Sony

More Than Fine: Multi-LoRA Support Now Available in NVIDIA RTX AI Toolkit

28/08/2024

Editor's note: This post is part of the AI Decoded series, which demystifies AI by making the technology more accessible, and showcases new hardware, software, tools and accelerations for RTX PC users.

Large language models are driving some of the most exciting developments in AI with their ability to quickly understand, summarize and generate text-based content.

These capabilities power a variety of use cases, including productivity tools, digital assistants, non-playable characters in video games and more. But they're not a one-size-fits-all solution, and developers often must fine-tune LLMs to fit the needs of their applications.

The NVIDIA RTX AI Toolkit makes it easy to fine-tune and deploy AI models on RTX AI PCs and workstations through a technique called low-rank adaptation, or LoRA. A new update, available today, enables support for using multiple LoRA adapters simultaneously within the NVIDIA TensorRT-LLM AI acceleration library, improving the performance of fine-tuned models by up to 6x.

Fine-Tuned for Performance LLMs must be carefully customized to achieve higher performance and meet growing user demands.

These foundational models are trained on huge amounts of data but often lack the context needed for a developer's specific use case. For example, a generic LLM can generate video game dialogue, but it will likely miss the nuance and subtlety needed to write in the style of a woodland elf with a dark past and a barely concealed disdain for authority.

To achieve more tailored outputs, developers can fine-tune the model with information related to the app's use case.

Take the example of developing an app to generate in-game dialogue using an LLM. The process of fine-tuning starts with using the weights of a pretrained model, such as information on what a character may say in the game. To get the dialogue in the right style, a developer can tune the model on a smaller dataset of examples, such as dialogue written in a more spooky or villainous tone.

In some cases, developers may want to run all of these different fine-tuning processes simultaneously. For example, they may want to generate marketing copy written in different voices for various content channels. At the same time, they may want to summarize a document and make stylistic suggestions - as well as draft a video game scene description and imagery prompt for a text-to-image generator.

It's not practical to run multiple models simultaneously, as they won't all fit in GPU memory at the same time. Even if they did, their inference time would be impacted by memory bandwidth - how fast data can be read from memory into GPUs.

Lo(RA) and Behold A popular way to address these issues is to use fine-tuning techniques such as low-rank adaptation. A simple way of thinking of it is as a patch file containing the customizations from the fine-tuning process.

Once trained, customized LoRA adapters can integrate seamlessly with the foundation model during inference, adding minimal overhead. Developers can attach the adapters to a single model to serve multiple use cases. This keeps the memory footprint low while still providing the additional details needed for each specific use case.

Architecture overview of supporting multiple clients and use-cases with a single foundation model using multi-LoRA capabilities In practice, this means that an app can keep just one copy of the base model in memory, alongside many customizations using multiple LoRA adapters.

This process is called multi-LoRA serving. When multiple calls are made to the model, the GPU can process all of the calls in parallel, maximizing the use of its Tensor Cores and minimizing the demands of memory and bandwidth so developers can efficiently use AI models in their workflows. Fine-tuned models using multi-LoRA adapters perform up to 6x faster.

LLM inference performance on GeForce RTX 4090 Desktop GPU for Llama 3B int4 with LoRA adapters applied at runtime. Input sequence length is 43 tokens and output sequence length is 100 tokens. LoRA adapter max rank is 64. In the example of the in-game dialogue application described earlier, the app's scope could be expanded, using multi-LoRA serving, to generate both story elements and illustrations - driven by a single prompt.

The user could input a basic story idea, and the LLM would flesh out the concept, expanding on the idea to provide a detailed foundation. The application could then use the same model, enhanced with two distinct LoRA adapters, to refine the story and generate corresponding imagery. One LoRA adapter generates a Stable Diffusion prompt to create visuals using a locally deployed Stable Diffusion XL model. Meanwhile, the other LoRA adapter, fine-tuned for story writing, could craft a well-structured and engaging narrative.

In this case, the same model is used for both inference passes, ensuring that the space required for the process doesn't significantly increase. The second pass, which involves both text and image generation, is performed using batched inference, making the process exceptionally fast and efficient on NVIDIA GPUs. This allows users to rapidly iterate through different versions of their stories, refining the narrative and the illustrations with ease.

This process is outlined in more detail in a recent technical blog.

LLMs are becoming one of the most important components of modern AI. As adoption and integration grows, demand for powerful, fast LLMs with application-specific customizations will only increase. The multi-LoRA support added today to the RTX AI Toolkit gives developers a powerful new way to accelerate these capabilities.
LINK: https://blogs.nvidia.com/blog/ai-decoded-multi-lora-rtx/...
See more stories from nvidia

Most recent headlines

26/12/2024

Cheers to 2024: GeForce NOW Recaps Year of Ultimate Cloud Gaming

This GFN Thursday wraps up another incredible year for cloud gaming. Take a look back at the top games and new features that made 2024 a standout for GeForce NO...

24/12/2024

PARTICIPATE AT SERIES MANIA FORUM 2025

The National Film and Video Foundation (NFVF) is calling for applications from South African film and television filmmakers to be part of the NFVF's delegat...

24/12/2024

FCC Fines Paramount Global $244,952 for Emergency Alert Violations

WASHINGTON, D.C. The Federal Communications Commission Enforcement Bureau said Paramount Global is being fined $244,952 for violations of emergency alerting rul...

24/12/2024

Streamer Carnegie Hall+ Features Holiday Programming and Music

NEW YORK Carnegie Hall's video-streaming channel, Carnegie Hall+, said it will celebrate the holiday season by offering a wide selection of holiday-themed o...

24/12/2024

PlayersTV Acquires Cloud Media Center

LOS ANGELES PlayersTV, an athlete and fan-owned media company, has announced the acquisition of Cloud Media Center, an AI-driven sports adtech and media distrib...

24/12/2024

The Best Playlists of 2024

The Best Playlists of 2024 The top playlists we created in 2024, from dad rock to dembow. By Tara Bellucci December 23, 2024 Image by Kelly Davidson Tak...

24/12/2024

From Generative to Agentic AI, Wrapping the Year's AI Advancements

Editor's note: This post is part of the AI Decoded series, which demystifies AI by making the technology more accessible, and showcases new hardware, softwa...

23/12/2024

Broadcast and the IT industry: an inevitable evolution?

At IBC2024, Grass Valley CTO Ian Fletcher told attendees at GV Forum that broadcast is now an IT industry. During our discussions at the show, TVBEurope heard v...

23/12/2024

Cracking creation: Fun facts from Wallace & Gromit: Vengeance Most Fowl

According to co-director Nick Park, the production team embraced technology to help create the iconic duos latest adventure By Jenny Priestley Published: Dec...

23/12/2024

Mapping the great wave: how Lux Aeterna produced data-centric visuals for Tsunami: Race Against Time

VFX house Lux Aeterna used wave height data from the National Oceanic & Atmosphe...

23/12/2024

DAZN acquires Australia's Foxtel in $2.2 billion deal

We are committed to supporting and investing in Foxtel's television and streaming services, across both sports and entertainment, using our world-leading te...

23/12/2024

Looking back at 2024: the industry trends that stood out

From AI to IP, the cloud to virtual production, key industry executives take a look back at some of the biggest trends that impacted the media and entertainment...

23/12/2024

BOOST GRAPHICS THE SPECIALIST INTERNATIONAL GRAPHICS SUBS...

Boost Graphics, the specialist international graphics and virtual production subsidiary of EMG / Gravity Media, the leading force in production and content & me...

23/12/2024

LucidLink Earns TPN Gold Certification to Advance Secure...

LucidLink, the leading storage collaboration platform revolutionizing how global teams work, proudly announces its achievement of the prestigious Trusted Partne...

23/12/2024

Mediagenix Welcomes Bruno Langlais as Business Developmen...

Mediagenix, a leader in software solutions for content strategy, content value management, and content scheduling, announces the appointment of Bruno Langlais a...

23/12/2024

NextGen TV Live Spanish Captions Debut on PMVG Test Bed S...

WCTEPublic Media Venture Group (PMVG) has announced that it is now providing real-time translation of closed captioning from English to Spanish on PMVG's Ne...

23/12/2024

Deltatre Appoints Charlie Mitchell to Head Up Sports in t...

Deltatre, the tech company behind the media and sporting moments that matter, has appointed Charlie Mitchell as Head of Sports for the Americas. Charlie will sp...

23/12/2024

Media Excel Welcomes Industry Veteran Matthew Goldman to...

Media Excel, a global leader in real-time video solutions, proudly announces the appointment of Matthew Goldman to its Technical Advisory Board. A distinguished...

23/12/2024

Disguise Nikon and MRMC bring Studio Extreme immersive ac...

Disguise the company behind the virtual production technology used on commercials for Apple Music and Lenovo, as well as feature film Daddio starring Sean Pen...

23/12/2024

Moments Lab and Bitcentral Partner for AI-Powered Content...

Leading AI and video search company Moments Lab is pleased to announce its integration with Bitcentral. The integration enables Bitcentral Oasis MAM users to en...

23/12/2024

ABC Commercial Partners With Amagi to Launch Suite of FAS...

Amagi, the global leader in cloud-based SaaS technology for broadcast and connected TV (CTV), today announced that ABC Commercial has partnered with Amagi to la...

23/12/2024

Digital Alert Systems Vice President of Global and Govern...

Digital Alert Systems, the global leader in emergency communications solutions for media providers, today announced that Ed Czarnecki, the company's vice pr...

23/12/2024

New Matthews Multipurpose Adapter for Moving Lights

Matthews Studio Equipment, known for the heftiest hardware, has a new solution to simplify mounting live production moving lights to standard grip equipment. Th...

23/12/2024

Matthews Studio Equipment Debuts RoadBags

Matthews Studio Equipment expands its trusted Road-line with the launch of RoadBags, durable fillable sandbags available in three sizes. Whether in the studio o...

23/12/2024

Sport Lisboa e Benfica Enhances Stadium Communications wi...

Sport Lisboa e Benfica, one of Portugal's most prestigious football clubs, has partnered with Clear-Com to upgrade the communications system at the Est dio...

23/12/2024

Black Box at Hamburg Open 2025

At stand B6.734, Black Box will showcase its Emerald KVM-over-IP solution, which enables smarter studio control with secure remote access from anywhere, along...

23/12/2024

OOONA Partners with Audio Description Associates

OOONA, a leading provider of professional management and production tools for the media localization industry, announced today a partnership with Audio Descript...

23/12/2024

Dunk The Halls: ESPN Refines Animated Altcast Tech and Ops with a Helping Hand From Mickey and Minnie

Dunk The Halls: ESPN Refines Animated Altcast Tech and Ops with a Helping Hand F...

23/12/2024

Leading Through Change: In Conversation with Michal Masset, Chief People Officer

With the holiday season in full swing, we are delighted to bring you a special digital event, Leading Through Change with Technicolor Group's Chief People O...

23/12/2024

Netflix Kicks Off NFL Christmas Games: Behind the Scenes With the Streaming Giant and Its Production Partners

Netflix Kicks Off NFL Christmas Games: Behind the Scenes With the Streaming Gian...

23/12/2024

ESPN's Tina Thornton on Producing The Simpsons Funday Football, Upcoming Dunk the Halls Alternative Broadcast on Christmas Day

ESPN's Tina Thornton on Producing The Simpsons Funday Football, Upcoming Dun...

23/12/2024

Dunk The Halls: ESPN Refine Animated Altcast Tech and Ops with a Helping Hand From Mickey and Minnie

Dunk The Halls: ESPN Refine Animated Altcast Tech and Ops with a Helping Hand Fr...

23/12/2024

NFL Christmas Gameday Live Comes to Netflix With Blimps, Hot Cocoa Trucks and Two Superstar Performances

Back to All News NFL Christmas Gameday Live Comes to Netflix With Blimps, Hot C...

22/12/2024

News Corp Announces Agreement to Sell Foxtel to DAZN for Enterprise Value of A$3.4 Billion

News Corp Announces Agreement to Sell Foxtel to DAZN for Enterprise Value of A$3...

22/12/2024

Netflix Showcases Global Anime Hits and New Releases at Jump Festa 2025

Back to All News Netflix Showcases Global Anime Hits and New Releases at Jump Festa 2025 Entertainment 22 December 2024 GlobalJapan Link copied to clipboar...

21/12/2024

L3Harris Thrusters Position NASA Probe for Closest Approaches to the Sun

Artist's concept of the Parker Solar Probe spacecraft approaching the sun. Credit: NASA/Johns Hopkins APL...

21/12/2024

Dallas Mavericks Roll Out New Streaming Platform

DALLAS and NEW YORK The NBA's Dallas Mavericks, working with Endeavor Streaming, Softtek and the NBA, have launched an official streaming platform for MavsT...

21/12/2024

Former FCC Chair Expresses Concern' Over Musk's Influence

As tech billionaire Elon Musk takes an increasingly high-profile policy role in the incoming Trump administration, a former Federal Communications Commission ch...

21/12/2024

Gray Media Renews Comscore Measurement Deal

RESTON, Va. Comscore has announced that it has renewed and expanded its measurement deal with Gray Media....

21/12/2024

Sinclair, Gray Media to Broadcast Columbus Blue Jackets NHL Games

The Columbus Blue Jackets, Sinclair and FanDuel Sports Network have signed a deal that will allow Sinclair and Gray Media stations in select markets to simulcas...

21/12/2024

Our Favorite Songs of 2024

Our Favorite Songs of 2024 Explore a playlist featuring some of the top songs of the year, as picked by members of the Berklee community. By Tara Bellucci De...

21/12/2024

Berklee Wrapped 2024: Our Top News and Stories

Berklee Wrapped 2024: Our Top News and Stories Take a look at some of our best stories of the year, including announcing our next president, hosting Andr 300...

21/12/2024

Alumna Allison de Groot Awarded 2024 Steve Martin Banjo Prize

Alumna Allison de Groot Awarded 2024 Steve Martin Banjo Prize De Groot, a former student of the American Roots Music Program, was recognized for her unique so...

20/12/2024

Thinking of Launching a Podcast? Let Our New Guide Show You How

Podcasting has become one of the most popular ways to tell stories and connect with audiences, but getting started can be intimidating, especially when it comes...

20/12/2024

2025 Sundance Film Festival Reveals 92 Projects for Feature Film and Episodic Programs

Top L-R: The Legend of Ochi, Rabbit Trap, East of Wall, Seeds Center Row L-R: Re...

20/12/2024

Spotify Presents the First-Ever Billions Club Live Show With The Weeknd

For any song to rack up billions of streams is an impressive accomplishment, but being a part of Spotify's Billions Club is something The Weeknd knows quite...

20/12/2024

Curl Up Under the Mistletoe With These Holiday Romance Audiobooks

It's the most wonderful time of the year, but if you seek an escape, pop in your headphones and enjoy the soothing sounds of a story. And this season, a rom...

20/12/2024

Revisit 2024 With Some of Your Favorite Podcasts From The Ringer

As the year draws to a close, Spotify's The Ringer is celebrating the best of 2024 with an exciting lineup of retrospective podcast episodes. This December,...

20/12/2024

HPA Award Delivered To New Zealand!

HPA Award Committee co-founder Carolyn Giardina was in New Zealand recently and had the opportunity present the Outstanding Visual Effects - Live Action Feature...