TLDRocket
Sign in

Tools & Coding

975 summarised stories in Tools & Coding, each linking back to the original source. Browse all topics →

Tuesday, 5 December 2023

Goodbye cold boot - how we made LoRA Inference 300% faster

Hugging Face 2 years ago 1

Hugging Face implemented dynamic LoRA loading on its Inference API, where a single base model remains active while different LoRA adapters are swapped in and out for each user request instead of maintaining separate deployments for each adapter. The warm-up time for serving a LoRA decreased from 25 seconds to 3 seconds, and overall response time dropped from 35 seconds to 13 seconds, while the system now serves hundreds of distinct LoRAs on fewer than 5 A10G GPUs. This approach reduced compute resource requirements since the vast majority of the 2,500 public LoRAs share only a few base models, allowing efficient reuse of GPU capacity across different adapter requests.

Optimum-NVIDIA Unlocking blazingly fast LLM inference in just 1 line of code

Hugging Face 2 years ago 36

Hugging Face released Optimum-NVIDIA, an inference library that accelerates large language model performance on NVIDIA GPUs through a modified single line of code. The library achieves up to 28 times faster throughput and generates 1,200 tokens per second using FP8 quantization on Ada Lovelace and Hopper architectures. Currently supporting LLaMA-based models, the library will expand to other architectures while adding techniques like In-Flight Batching and INT4 quantization.

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.