Рет қаралды 10,691
Beam search. You've probably heard of it, but there are surprising tricks to make it work in practice.
In this video, I walk through how beam search is implemented in the Huggingface transformers library. Find out what clever data structures are used to enhance the performance of this decoding technique!
0:00 - Introduction
1:11 - Review of Beam Search
2:56 - Hugging Face Code Walkthrough
Resources about beam search:
huggingface.co/blog/how-to-ge...
Huggingface source code:
github.com/huggingface/transf...
#BeamSearch #nlp #huggingface #ai #machinelearning #deeplearning