Sliding window beats linear attention, but only on short answers
At equal memory, a sliding window matches a hybrid layer on short answers, but a linear mixer's state pays off on math problems that need long answers.
16 min readResearch, implementations, and what I learned along the way.
At equal memory, a sliding window matches a hybrid layer on short answers, but a linear mixer's state pays off on math problems that need long answers.
16 min readMaking every token count with sequence packing, attention masks, and correctly aligned position IDs.
8 min readA small, flexible implementation of LoRA using native PyTorch parametrizations.
4 min readFine-tuning Mistral for multilabel classification with quantization and LoRA on a single GPU.
7 min readNotes on preparation, technical questions, and the interview process from both sides of the table.
9 min readA practical walkthrough from PyTorch training code to an automated pipeline on Google Cloud.
16 min readImplementing gradient reversal and adversarial heads to study and reduce bias in language models.
8 min readThe ideas behind diff-pruning, and how to implement parameter-efficient fine-tuning in PyTorch.
11 min readTry a different word or explore another topic.
8 entries in the notebook.