TLDRocket
Sign in

Tools & Coding

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

Tuesday, 24 October 2023

Exploring simple optimizations for SDXL

Hugging Face 2 years ago 28

Stability AI researchers tested optimization techniques for SDXL, their 3.5B-parameter image generation model, to reduce memory consumption and inference time. Running SDXL unoptimized required 28GB of memory and took 72.2 seconds to generate 4 images on an A100 GPU, but combining fp16 precision, scaled dot product attention, and torch.compile reduced inference time to 10.3 seconds while using 21.7GB of memory. Further memory reductions to 11.47GB are possible by adding VAE slicing and sequential CPU offloading, enabling the model to run on consumer GPUs at the cost of slower inference speed.

Deploy Embedding Models with Hugging Face Inference Endpoints

Hugging Face 2 years ago 19

Hugging Face released Text Embeddings Inference (TEI), a service for deploying open-source embedding models on its Inference Endpoints platform with automatic scaling and security features. A benchmark of the BAAI/bge-base-en-v1.5 model on an Nvidia A10G instance achieved 450+ requests per second at a cost of $0.00000156 per 1,000 tokens, 64 times cheaper than OpenAI's embedding service. Developers can now deploy embedding models for retrieval-augmented generation tasks like semantic search and chatbots with minimal infrastructure management and significantly lower costs.

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.