๐Ÿ› ๏ธ Steven Gong

Search

SearchSearch
Mar 22, 2025 ยท 1 min read ยท 24 views ยท 1 in the last 30 days
Reader snapshot

Where readers are reading from

FijiTanzaniaWestern SaharaCanada ยท 0 readersUnited States of America ยท 0 readersKazakhstanUzbekistanPapua New GuineaIndonesiaArgentina ยท 0 readersChileDemocratic 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 Emirates ยท 0 readersQatarKuwaitIraqOmanVanuatuCambodiaThailandLaosMyanmarVietnam ยท 0 readersNorth KoreaSouth KoreaMongoliaIndiaBangladesh ยท 0 readersBhutanNepalPakistanAfghanistanTajikistanKyrgyzstanTurkmenistanIranSyriaArmeniaSweden ยท 0 readersBelarusUkrainePolandAustriaHungaryMoldovaRomaniaLithuaniaLatviaEstoniaGermanyBulgariaGreeceTurkeyAlbaniaCroatiaSwitzerlandLuxembourgBelgiumNetherlandsPortugalSpainIrelandNew CaledoniaSolomon IslandsNew ZealandAustraliaSri LankaPeople's Republic of China ยท 0 readersTaiwanItalyDenmarkUnited KingdomIcelandAzerbaijanGeorgiaPhilippinesMalaysiaBruneiSloveniaFinlandSlovakiaCzech RepublicEritreaJapanParaguayYemenSaudi ArabiaTurkish Republic of Northern CyprusCyprusMoroccoEgyptLibyaEthiopiaDjiboutiSomalilandUgandaRwandaBosnia and HerzegovinaNorth MacedoniaSerbiaMontenegroKosovoTrinidad and TobagoSouth SudanSelect a country to explore ยท Last 30 days
Singapore1
China0
Brazil0
Canada0
United States0
United Arab Emirates0
Traffic ยท last 30 days000Sep 16Sep 26Oct 6Oct 15
views
Traffic ยท all time123Feb 5Feb 8Feb 11Feb 14Feb 16
views

Tokenizer, Byte Pair Encoding

tiktoken

This is what openAI uses. It uses Byte Pair Encoding under the hood. Essentially, you start with some base tokenization scheme will a very small vocabulary (256 tokens, each char is a byte). Then, you iteratively merge the most common tokens.

Gpt-2 has a vocabulary of ~50k different tokens.

Gpt-4 base model uses 100k different tokens.

  • Source: https://www.youtube.com/watch?v=7xTGNNLPyMI

Demo

  • https://tiktokenizer.vercel.app/

What uses tiktoken?

  • GPT-4
  • Llama3

Graph View

Backlinks

  • Byte Pair Encoding (BPE)
  • Tokenizer

Created with Quartz, ยฉ 2026

  • Blog
  • LinkedIn
  • Twitter
  • GitHub