Live coding Jev from Scratch | Understanding Qwen architecture

Neural Breakdown with AVB
22,198 views •

Deep dive into Pytorch and HF Transformers, to adapt a Qwen model into JEV. Main YT video: https://youtu.be/sF3CNPbWA8o Git: https://github.com/avbiswas/bev-train We made it choice-order invariant by hacking directly into the attention mask and positional-ids! To join our Patreon, visit: https://www.patreon.com/NeuralBreakdownwithAVB 0:00 Introduction/Advice for new devs 10:05 Jev project 13:21 Decision data set creation 17:16 Understanding model inputs 23:54 Language model architecture 35:29 Data structure and training 51:57 Live coding: Model setup 59:43 Input ids and attention masks 1:13:56 Positional indexing strategy 1:30:31 Handling choice order invariance 2:04:11 Attention mask implementation 2:52:46 Final architecture and testing

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close