{"id":325,"date":"2025-01-31T01:09:00","date_gmt":"2025-05-30T21:28:24","guid":{"rendered":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/t\/definition_token\/"},"modified":"2025-06-05T23:35:35","modified_gmt":"2025-06-05T21:35:35","slug":"definition-token","status":"publish","type":"post","link":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/t\/definition-token\/","title":{"rendered":"Token"},"content":{"rendered":"<p>En intelligence artificielle et en prompt engineering, le concept de \u00ab\u00a0token\u00a0\u00bb est fondamental pour comprendre comment les mod\u00e8les de langage fonctionnent.  Un token est l&rsquo;unit\u00e9 de base utilis\u00e9e par ces mod\u00e8les pour traiter et g\u00e9n\u00e9rer du texte.<br \/>\nQu&rsquo;est-ce qu&rsquo;un token ? C&rsquo;est un morceau de texte, qui peut \u00eatre un mot, un caract\u00e8re ou une partie de mot, trait\u00e9 comme une unit\u00e9 par un mod\u00e8le de langage.<\/p>\n<h3>Comment fonctionne un token ?<\/h3>\n<p>Imaginez un jeu de construction. Chaque brique repr\u00e9sente un token.  Les mod\u00e8les de langage assemblent ces briques (tokens) pour former des phrases et des textes.  Un mot courant comme \u00ab\u00a0maison\u00a0\u00bb pourrait \u00eatre un seul token.  Un mot plus complexe ou moins fr\u00e9quent, comme  \u00ab\u00a0extraordinaire\u00a0\u00bb, pourrait \u00eatre divis\u00e9 en plusieurs tokens, comme \u00ab\u00a0extra\u00a0\u00bb et \u00ab\u00a0ordinaire\u00a0\u00bb.  La fa\u00e7on dont les mots sont d\u00e9coup\u00e9s en tokens d\u00e9pend de l&rsquo;algorithme de tokenisation utilis\u00e9 par le mod\u00e8le.<\/p>\n<h3>Pourquoi un token est-il important ?<\/h3>\n<p>Les tokens sont essentiels car ils permettent aux mod\u00e8les de langage de quantifier et de manipuler le texte.  Le nombre de tokens utilis\u00e9s dans une requ\u00eate ou une r\u00e9ponse a un impact direct sur les performances et le co\u00fbt d&rsquo;utilisation du mod\u00e8le.  En prompt engineering, comprendre les tokens permet d&rsquo;optimiser les prompts pour obtenir de meilleurs r\u00e9sultats et g\u00e9rer les limites de longueur impos\u00e9es par les mod\u00e8les.<\/p>\n<h3>Exemples d&rsquo;utilisation de token<\/h3>\n<ul>\n<li><strong>\u00ab\u00a0Bonjour\u00a0\u00bb<\/strong>: Un seul token.<\/li>\n<li><strong>\u00ab\u00a0Intelligence artificielle\u00a0\u00bb<\/strong>:  Pourrait \u00eatre deux tokens (\u00ab\u00a0intelligence\u00a0\u00bb et \u00ab\u00a0artificielle\u00a0\u00bb) ou trois si \u00ab\u00a0artificielle\u00a0\u00bb est d\u00e9compos\u00e9 en \u00ab\u00a0artificiel\u00a0\u00bb et \u00ab\u00a0le\u00a0\u00bb.<\/li>\n<li><strong>\u00ab\u00a0123\u00a0\u00bb<\/strong>: Un seul token, m\u00eame s&rsquo;il contient plusieurs chiffres.<\/li>\n<li><strong>\u00ab\u00a0aujourd&rsquo;hui\u00a0\u00bb<\/strong>:  Un seul token, m\u00eame si on pourrait le consid\u00e9rer comme la contraction de \u00ab\u00a0au jour d&rsquo;hui\u00a0\u00bb.<\/li>\n<\/ul>\n<h3>Termes associ\u00e9s<\/h3>\n<ul id=\"TermesAssocies\">\n<li><a href=\"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/?s=Tokenisation\">Tokenisation<\/a><\/li>\n<li><a href=\"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/?s=Prompt+Engineering\">Prompt Engineering<\/a><\/li>\n<li><a href=\"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/?s=Mod%C3%A8le+de+langage\">Mod\u00e8le de langage<\/a><\/li>\n<li><a href=\"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/?s=Apprentissage+automatique\">Apprentissage automatique<\/a><\/li>\n<li><a href=\"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/?s=Traitement+du+langage+naturel+%28NLP%29\">Traitement du langage naturel (NLP)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>En intelligence artificielle et en prompt engineering, le concept de \u00ab\u00a0token\u00a0\u00bb est fondamental pour comprendre comment les mod\u00e8les de langage fonctionnent. Un token est l&rsquo;unit\u00e9 de base utilis\u00e9e par ces mod\u00e8les pour traiter et g\u00e9n\u00e9rer du texte. Qu&rsquo;est-ce qu&rsquo;un token ? C&rsquo;est un morceau de texte, qui peut \u00eatre un mot, un caract\u00e8re ou une [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[30],"tags":[44,91,12,340,249,53],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-t","tag-apprentissage-automatique","tag-modele-de-langage","tag-prompt-engineering","tag-token","tag-tokenisation","tag-traitement-du-langage-naturel-nlp"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"","author_link":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"En intelligence artificielle et en prompt engineering, le concept de \u00ab\u00a0token\u00a0\u00bb est fondamental pour comprendre comment les mod\u00e8les de langage fonctionnent. Un token est l&rsquo;unit\u00e9 de base utilis\u00e9e par ces mod\u00e8les pour traiter et g\u00e9n\u00e9rer du texte. Qu&rsquo;est-ce qu&rsquo;un token ? C&rsquo;est un morceau de texte, qui peut \u00eatre un mot, un caract\u00e8re ou une\u2026","_links":{"self":[{"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/comments?post=325"}],"version-history":[{"count":2,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":683,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/posts\/325\/revisions\/683"}],"wp:attachment":[{"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/media?parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/categories?post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/tags?post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}