Zain Hasan, PhD
Senior AI/ML DevRel Engineer at Together AI
Zain Hasan is a Senior AI/ML DevRel Engineer at Together AI. He is an engineer and data scientist from the University of Toronto. He has a background in applying computer vision, digital health, and natural language processing. More recently, he worked on information retrieval and RAG at Weaviate, and prior to that, he practiced as a senior data scientist in Toronto. He is passionate about open-source software, education, community, and machine learning.
All Sessions by Zain Hasan, PhD
Vector search without breaking the bank: Quantization and Adaptive Retrieval
<span class="etn-schedule-location"> <span class="firstfocus">Deep Learning</span> <span class="secfocus">Beginner-Intermediate</span> </span>Everybody loves vector search and enterprises now see its value thanks to the popularity of LLMs and RAG. The problem is that prod-level deployment of vector search requires boatloads of both CPU, for search, and GPU, for inference, compute. The bottom line is that if deployed incorrectly vector search can be prohibitively expensive compared to classical alternatives. The solution: quantizing vectors and performing adaptive retrieval. These techniques allow you to scale applications into production by allowing you to balance and tune memory costs, latency performance, and retrieval accuracy very reliably. I’ll talk about how you can perform realtime billion-scale vector search on your laptop! This includes covering different quantization techniques, including product, binary, scalar and matryoshka quantization that can be used to compress vectors trading off memory requirements for accuracy. I’ll also introduce the concept of adaptive retrieval where you first perform cheap hardware-optimized low-accuracy search to identify retrieval candidates using compressed vectors followed by a slower, higher-accuracy search to rescore and correct. These quantization techniques when used with well-thought-out adaptive retrieval can lead to a 32x reduction in memory cost requirements at the cost of ~ 5% loss in retrieval recall in your RAG stack.
Optimizing LLM Inference: Speeding Up AI for Real-World Applications
<span class="etn-schedule-location"> <span class="firstfocus">LLMs</span> <span class="secfocus">Intermediate</span> </span>This workshop will dive into techniques for speeding up large language model (LLM) inference, ensuring faster and more efficient responses. Just like a Formula 1 pit crew fine-tunes cars for peak performance, this session focuses on optimizing every millisecond of inference. Attendees will learn: ✅ KV caching to reduce redundant computations ✅ Attention optimization to manage GPU memory efficiently ✅ Quantization to compress models without sacrificing quality ✅ Speculative decoding, a technique that preemptively predicts words to boost response speed
Optimizing LLM Inference: Speeding Up AI for Real-World Applications
<span class="etn-schedule-location"> <span class="firstfocus">LLMs</span> <span class="secfocus">Intermediate</span> </span>This workshop will dive into techniques for speeding up large language model (LLM) inference, ensuring faster and more efficient responses. Just like a Formula 1 pit crew fine-tunes cars for peak performance, this session focuses on optimizing every millisecond of inference. Attendees will learn: ✅ KV caching to reduce redundant computations ✅ Attention optimization to manage GPU memory efficiently ✅ Quantization to compress models without sacrificing quality ✅ Speculative decoding, a technique that preemptively predicts words to boost response speed
Vector search without breaking the bank: Quantization and Adaptive Retrieval
<span class="etn-schedule-location"> <span class="firstfocus">Deep Learning</span> <span class="secfocus">Beginner-Intermediate</span> </span>Everybody loves vector search and enterprises now see its value thanks to the popularity of LLMs and RAG. The problem is that prod-level deployment of vector search requires boatloads of both CPU, for search, and GPU, for inference, compute. The bottom line is that if deployed incorrectly vector search can be prohibitively expensive compared to classical alternatives. The solution: quantizing vectors and performing adaptive retrieval. These techniques allow you to scale applications into production by allowing you to balance and tune memory costs, latency performance, and retrieval accuracy very reliably. I’ll talk about how you can perform realtime billion-scale vector search on your laptop! This includes covering different quantization techniques, including product, binary, scalar and matryoshka quantization that can be used to compress vectors trading off memory requirements for accuracy. I’ll also introduce the concept of adaptive retrieval where you first perform cheap hardware-optimized low-accuracy search to identify retrieval candidates using compressed vectors followed by a slower, higher-accuracy search to rescore and correct. These quantization techniques when used with well-thought-out adaptive retrieval can lead to a 32x reduction in memory cost requirements at the cost of ~ 5% loss in retrieval recall in your RAG stack.
