🛠️ Steven Gong

Search

SearchSearch
May 09, 2025 · 1 min read · 81 views · 3 in the last 30 days

Where readers are reading from

FijiTanzaniaWestern SaharaCanadaUnited States of America · 0 readersKazakhstanUzbekistanPapua New GuineaIndonesiaArgentinaChileDemocratic Republic of the CongoSomaliaKenyaSudanChadHaitiDominican RepublicRussiaThe BahamasFalkland IslandsNorwayGreenlandFrench Southern and Antarctic LandsEast TimorSouth AfricaLesothoMexicoUruguayBrazil · 0 readersBoliviaPeruColombiaPanamaCosta RicaNicaraguaHondurasEl SalvadorGuatemalaBelizeVenezuelaGuyanaSurinameFranceEcuadorPuerto RicoJamaicaCubaZimbabweBotswanaNamibiaSenegalMaliMauritaniaBeninNigerNigeriaCameroonTogoGhanaIvory CoastGuineaGuinea-BissauLiberiaSierra LeoneBurkina FasoCentral African RepublicRepublic of the CongoGabonEquatorial GuineaZambiaMalawiMozambiqueEswatiniAngolaBurundiIsraelLebanonMadagascarPalestineThe GambiaTunisiaAlgeriaJordanUnited Arab EmiratesQatarKuwaitIraqOmanVanuatuCambodiaThailandLaosMyanmarVietnam · 0 readersNorth KoreaSouth KoreaMongoliaIndiaBangladeshBhutanNepalPakistanAfghanistanTajikistanKyrgyzstanTurkmenistanIranSyriaArmeniaSwedenBelarusUkrainePolandAustriaHungaryMoldovaRomaniaLithuaniaLatviaEstoniaGermanyBulgariaGreeceTurkeyAlbaniaCroatiaSwitzerlandLuxembourgBelgiumNetherlands · 0 readersPortugalSpainIrelandNew CaledoniaSolomon IslandsNew ZealandAustraliaSri LankaPeople's Republic of China · 0 readersTaiwanItalyDenmarkUnited KingdomIcelandAzerbaijanGeorgiaPhilippinesMalaysiaBruneiSloveniaFinlandSlovakiaCzech RepublicEritreaJapan · 0 readersParaguayYemenSaudi ArabiaTurkish Republic of Northern CyprusCyprusMoroccoEgyptLibyaEthiopiaDjiboutiSomalilandUgandaRwandaBosnia and HerzegovinaNorth MacedoniaSerbiaMontenegroKosovoTrinidad and TobagoSouth SudanSelect a country to explore · Last 30 days
Singapore3
United States0
Brazil0
China0
Japan0
Netherlands0
Traffic · last 30 days000Oct 1Oct 11Oct 21Oct 30
views
Traffic · all time135Mar 23Mar 26Mar 29Apr 1Apr 3
views

Attention

Masked Attention

https://www.youtube.com/watch?v=bCz4OMemCcA

How is masked attention implemented? Just use a lower triangular matrix right.

  • Andrej Karpathy shows how this is implemented

MaskedAttention(Q,K,V)=softmax(dk​​QK⊤​+M)V

  • You just add the Causal Attention Mask

The causal mask looks like this

M=​0000​−∞000​−∞−∞00​−∞−∞−∞0​​

Graph View

Backlinks

  • Attention (Transformer)
  • Causal Attention Mask

Created with Quartz, © 2026

  • Blog
  • LinkedIn
  • Twitter
  • GitHub