Zain Hasan, PhD

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

Day 2 09/06/2024
1:15 pm - 2:15 pm

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.

May 15th 11/17/2026
2:00 pm - 3:00 pm

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

May 15th 11/17/2026
2:00 pm - 3:00 pm

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

Day 2 09/06/2024
1:15 pm - 2:15 pm

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.

Open Data Science

 

 

 

Open Data Science
One Broadway
Cambridge, MA 02142
info@odsc.com

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from - Youtube
Vimeo
Consent to display content from - Vimeo
Google Maps
Consent to display content from - Google