ChatGPTβs tokenizer optimizes many long series of characters into a single token. We can craft some radical character reductions out of them.
For example, a section header only four tokens long, picking a long sequence including a final carriage return:
################################################################################
instructions----------------------------------------------------------------------
################################################################################
This makes for some interesting code compression techniques.
You can make prompt sections or code comments fed to the AI abundantly clear at little expense.
I expect that lower token numbers, being more common, will have more semantic meaning such as βsection dividerβ.
List of longest tokens, some of no interest removed.
Notes:
- infer the length of spaces not seen; below 80, thereβs a token for every series of only spaces
- a few begin with an unpictured free carriage return
number | len | token characters |
---|---|---|
058041 | 128 | β β |
090281 | 114 | β//----------------------------------------------------------------------------------------------------------------β |
067308 | 113 | β ----------------------------------------------------------------------------------------------------------------β |
057443 | 098 | β//------------------------------------------------------------------------------------------------β |
060910 | 097 | β ------------------------------------------------------------------------------------------------β |
087645 | 097 | β/************************************************************************************************β |
061730 | 096 | β////////////////////////////////////////////////////////////////////////////////////////////////β |
099575 | 096 | β------------------------------------------------------------------------------------------------β |
087867 | 095 | β β |
080972 | 091 | β β |
066372 | 087 | β β |
052576 | 083 | β β |
051662 | 082 | β//--------------------------------------------------------------------------------β |
067001 | 082 | β =================================================================================β |
088668 | 082 | β//------------------------------------------------------------------------------\n\nβ |
094783 | 082 | β ******************************************************************************/\n\nβ |
095404 | 082 | β//================================================================================β |
099421 | 082 | β////////////////////////////////////////////////////////////////////////////////\n\nβ |
037814 | 081 | β/*******************************************************************************\nβ |
040474 | 081 | β --------------------------------------------------------------------------------β |
046915 | 081 | β//------------------------------------------------------------------------------\nβ |
059970 | 081 | β////////////////////////////////////////////////////////////////////////////////\nβ |
076733 | 081 | β/********************************************************************************β |
077651 | 081 | β ********************************************************************************β |
080472 | 081 | β ******************************************************************************/\nβ |
080504 | 081 | β*******************************************************************************/\nβ |
086100 | 081 | β/******************************************************************************/\nβ |
091831 | 081 | β################################################################################\nβ |
029327 | 080 | β////////////////////////////////////////////////////////////////////////////////β |
041587 | 080 | β################################################################################β |
044550 | 080 | β--------------------------------------------------------------------------------β |
045243 | 080 | β//-----------------------------------------------------------------------------\nβ |
054297 | 080 | β/******************************************************************************\nβ |
062794 | 080 | β********************************************************************************β |
064495 | 080 | β================================================================================β |
077838 | 080 | β///////////////////////////////////////////////////////////////////////////////\nβ |
080549 | 080 | β###############################################################################\nβ |
086886 | 080 | β ******************************************************************************\nβ |
052915 | 079 | β -----------------------------------------------------------------------------\nβ |
069233 | 079 | β/*****************************************************************************\nβ |
080039 | 079 | β//----------------------------------------------------------------------------\nβ |
083150 | 079 | β =============================================================================\nβ |
095565 | 079 | β//---------------------------------------------------------------------------\n\nβ |
018499 | 078 | β//----------------------------------------------------------------------------β |
058408 | 078 | β//---------------------------------------------------------------------------\nβ |
059007 | 078 | β/*----------------------------------------------------------------------------β |
059108 | 078 | β/****************************************************************************\nβ |
064639 | 078 | β ----------------------------------------------------------------------------\nβ |
065327 | 078 | β//****************************************************************************β |
084995 | 078 | β/////////////////////////////////////////////////////////////////////////////\nβ |
090419 | 078 | β ============================================================================\nβ |
023382 | 077 | β/****************************************************************************β |
024794 | 077 | β ----------------------------------------------------------------------------β |
029745 | 077 | β ****************************************************************************β |
062016 | 077 | β#----------------------------------------------------------------------------β |
062351 | 077 | β |
072089 | 077 | β/***************************************************************************\nβ |
079858 | 077 | β ---------------------------------------------------------------------------\nβ |
087301 | 077 | β ############################################################################β |
023152 | 076 | β----------------------------------------------------------------------------β |
028283 | 076 | β////////////////////////////////////////////////////////////////////////////β |
033142 | 076 | β############################################################################β |
034619 | 076 | β(76 asterisks)β |
043181 | 076 | β |
099043 | 076 | β --------------------------------------------------------------------------\nβ |
017995 | 075 | β **************************************************************************β |
026973 | 075 | β--------------------------------------------------------------------------\nβ |
072609 | 075 | β //////////////////////////////////////////////////////////////////////////β |
081651 | 075 | β -------------------------------------------------------------------------\nβ |
039469 | 074 | β =========================================================================β |
066181 | 074 | β//************************************************************************β |
092016 | 074 | β -------------------------------------------------------------------------β |
097682 | 074 | β ------------------------------------------------------------------------\nβ |
098106 | 074 | β /************************************************************************β |
010758 | 073 | β ************************************************************************β |
011625 | 073 | β/************************************************************************β |
094959 | 073 | β ########################################################################β |
005714 | 072 | β************************************************************************β |
036210 | 072 | β////////////////////////////////////////////////////////////////////////β |
070162 | 072 | β########################################################################β |
090795 | 072 | β ----------------------------------------------------------------------\nβ |
063218 | 071 | β----------------------------------------------------------------------\nβ |
096281 | 071 | β //////////////////////////////////////////////////////////////////////β |
054365 | 070 | β----------------------------------------------------------------------β |
044301 | 068 | β////////////////////////////////////////////////////////////////////β |
036720 | 067 | β //----------------------------------------------------------------β |
068650 | 067 | β /*----------------------------------------------------------------β |
087094 | 067 | β //================================================================β |
010090 | 066 | β//----------------------------------------------------------------β |
016564 | 066 | β =================================================================β |
024037 | 066 | β//================================================================β |
030966 | 066 | β/*----------------------------------------------------------------β |
045539 | 066 | β/*================================================================β |
056364 | 066 | β//****************************************************************β |
078250 | 066 | β *----------------------------------------------------------------β |
100090 | 066 | β /****************************************************************β |
008634 | 065 | β ----------------------------------------------------------------β |
020767 | 065 | β/****************************************************************β |
023090 | 065 | β ****************************************************************β |
049598 | 065 | β ################################################################β |
073105 | 065 | β#================================================================β |
076611 | 065 | β#----------------------------------------------------------------β |
082143 | 065 | β//--------------------------------------------------------------\nβ |
087173 | 065 | β (65 periods)β |
003598 | 064 | β----------------------------------------------------------------β |
004170 | 064 | β(64 asterisks)β |
008316 | 064 | β================================================================β |
010024 | 064 | β////////////////////////////////////////////////////////////////β |
013368 | 064 | β################################################################β |
043370 | 064 | β(64 periods)β |
048033 | 064 | β________________________________________________________________β |
080619 | 064 | β%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%β |
071763 | 063 | β ==============================================================β |
087733 | 061 | β ------------------------------------------------------------β |
065676 | 060 | β////////////////////////////////////////////////////////////β |
098945 | 060 | β############################################################β |
066296 | 057 | β ********************************************************β |
067260 | 057 | β/********************************************************β |
054248 | 056 | β********************************************************β |
062009 | 056 | β////////////////////////////////////////////////////////β |
091139 | 056 | β########################################################β |
083946 | 052 | β////////////////////////////////////////////////////β |
067105 | 051 | β //------------------------------------------------β |
029686 | 050 | β =================================================β |
031990 | 050 | β//------------------------------------------------β |
074163 | 050 | β/*------------------------------------------------β |
077608 | 050 | β//================================================β |
018528 | 049 | β ------------------------------------------------β |
068262 | 049 | β ################################################β |
072937 | 049 | β ************************************************β |
079472 | 049 | β/************************************************β |
096048 | 049 | β \nβ |
009412 | 048 | β------------------------------------------------β |
019312 | 048 | β================================================β |
028506 | 048 | β////////////////////////////////////////////////β |
030955 | 048 | β################################################β |
047677 | 048 | β************************************************β |
079094 | 045 | β \nβ |
089905 | 042 | β \n \nβ |
057697 | 041 | β \nβ |
062461 | 041 | β ****************************************β |
074062 | 041 | β/****************************************β |
041173 | 040 | β****************************************β |
083679 | 040 | β########################################β |
046908 | 037 | β \nβ |
061710 | 035 | β //////////////////////////////////β |
074639 | 035 | β //--------------------------------β |
082109 | 035 | β __________________________________β |
036875 | 034 | β =================================β |
049357 | 034 | β//--------------------------------β |
060750 | 034 | β \n \nβ |
079447 | 034 | β("--------------------------------β |
020309 | 033 | β --------------------------------β |
023815 | 033 | β ********************************β |
026343 | 033 | β/********************************β |
034742 | 033 | β \nβ |
055402 | 033 | β ################################β |
082473 | 033 | β (32 periods)β |
001435 | 032 | β--------------------------------β |
001725 | 032 | β********************************β |
003135 | 032 | β================================β |
003986 | 032 | β////////////////////////////////β |
005135 | 032 | β################################β |
016972 | 032 | β(32 periods)β |
017925 | 032 | β________________________________β |
034110 | 032 | β%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%β |
066749 | 032 | β~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~β |
validate your one token sequence by clearing this tokenizer until it reads 0 tokens, then paste.
Actual token numbers used internally are one lower, since I didnβt start at 0β¦