{"id":72170,"date":"2026-02-04T23:49:10","date_gmt":"2026-02-04T15:49:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/72170.html"},"modified":"2026-02-04T23:49:10","modified_gmt":"2026-02-04T15:49:10","slug":"gen_ai-%e7%ac%ac%e4%b8%89%e8%af%be-%e5%a4%a7%e6%a8%a1%e5%9e%8b%e5%86%85%e9%83%a8%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/72170.html","title":{"rendered":"Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406"},"content":{"rendered":"<h3>\u5927\u6a21\u578b\u5185\u90e8\u539f\u7406\u8be6\u89e3<\/h3>\n<h4>\u4e00\u3001\u4ece\u8f93\u5165 Prompt \u5230\u8f93\u51fa Token \u7684\u5b8c\u6574\u6d41\u7a0b<\/h4>\n<li>Tokenization&#xff08;\u5206\u8bcd&#xff09;<br \/>\n\u8f93\u5165\u7684\u53e5\u5b50\u9996\u5148\u8fdb\u884c Tokenization&#xff0c;\u5c06\u53e5\u5b50\u5207\u5206\u4e3a\u4e00\u4e2a\u4e2a Token\u3002<\/li>\n<li>Embedding \u67e5\u8868<br \/>\n\u901a\u8fc7 Embedding Table \u77e9\u9635&#xff08;\u6bcf\u4e00\u884c\u5bf9\u5e94\u4e00\u4e2a Token&#xff09;&#xff0c;\u5c06 Token \u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684\u5411\u91cf&#xff08;Token Embedding&#xff09;\u3002<br \/>\n&#x1f4a1; \u6ce8\u610f&#xff1a;Embedding Table &#061; LM Head&#xff08;Unembedding \u65f6\u4f7f\u7528\u7684\u77e9\u9635&#xff09;<\/li>\n<li>\u591a\u5c42\u795e\u7ecf\u7f51\u7edc\u5904\u7406<br \/>\n\u8f93\u5165\u8fdb\u5165\u7b2c\u4e00\u5c42 Layer 1&#xff0c;\u5185\u90e8\u5305\u542b\u591a\u4e2a\u77e9\u9635\u53c2\u6570<br \/>\n\u6839\u636e\u8f93\u5165\u4ea7\u751f\u65b0\u7684 Embedding&#xff08;\u5df2\u8003\u8651\u4e0a\u4e0b\u6587\u4fe1\u606f&#xff09;<br \/>\n\u7ecf\u8fc7\u591a\u5c42\u6df1\u5ea6\u5b66\u4e60\u7f51\u7edc\u9010\u5c42\u5904\u7406<\/li>\n<li>Unembedding \u4e0e\u8f93\u51fa<br \/>\n\u53d6\u51fa\u6700\u540e\u4e00\u5c42\u8f93\u51fa\u7684\u6700\u540e\u4e00\u4e2a\u5411\u91cf<br \/>\n\u4e0e LM Head \u77e9\u9635\u505a \u70b9\u79ef&#xff08;Dot Product&#xff09; \u2192 \u5f97\u5230 Logits<br \/>\n\u5bf9 Logits \u5e94\u7528 Softmax \u2192 \u5f97\u5230\u6982\u7387\u5206\u5e03<br \/>\n\u6839\u636e\u6982\u7387\u91c7\u6837\u751f\u6210\u4e0b\u4e00\u4e2a Token<\/li>\n<h3>\u4e8c\u3001Softmax \u539f\u7406\u8be6\u89e3<\/h3>\n<p>Softmax \u51fd\u6570\u5c06\u4e00\u4e2a\u5b9e\u6570\u5411\u91cf<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">z&#061;[z1,z2,&#8230;,zn]<br \/>\n\\\\mathbf{z} &#061; [z_1, z_2, &#8230;, z_n]<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.4444em\"><\/span><span class=\"mord mathbf\">z<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mopen\">[<\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.044em\">z<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.044em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mpunct\">,<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.044em\">z<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.044em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mpunct\">,<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord\">&#8230;<\/span><span class=\"mpunct\">,<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.044em\">z<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.1514em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.044em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">n<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">]<\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n\u8f6c\u6362\u4e3a\u4e00\u4e2a\u6982\u7387\u5206\u5e03\u5411\u91cf<br \/>\n$$<br \/>\n\\\\sigma(\\\\mathbf{z}) &#xff1a;<\/p>\n<p>\\\\sigma(\\\\mathbf{z})_i &#061; \\\\frac{e<sup>{z_i}}{\\\\sum_{j&#061;1}<\/sup>{n} e^{z_j}}<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u5176\u4e2d<br \/>\n\u5176\u4e2d<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord cjk_fallback\">\u5176\u4e2d<\/span><\/span><\/span><\/span><\/span><\/span><br \/>\ni &#061; 1, 2, \u2026, n<br \/>\n$$<\/p>\n<h4>\u8ba1\u7b97\u6b65\u9aa4\u5206\u89e3<\/h4>\n<p>\u4ee5\u8f93\u5165\u5411\u91cf<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">z&#061;[2.0,1.0,0.1]<br \/>\n\\\\mathbf{z} &#061; [2.0, 1.0, 0.1]<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.4444em\"><\/span><span class=\"mord mathbf\">z<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mopen\">[<\/span><span class=\"mord\">2.0<\/span><span class=\"mpunct\">,<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord\">1.0<\/span><span class=\"mpunct\">,<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord\">0.1<\/span><span class=\"mclose\">]<\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n\u4e3a\u4f8b&#xff1a;<\/p>\n<h4>\u6b65\u9aa4 1&#xff1a;\u6307\u6570\u5316<\/h4>\n<p>\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8ba1\u7b97<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">ezi<br \/>\ne^{z_i}<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.7144em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">e<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.7144em\"><span class=\"\" style=\"top: -3.113em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\" style=\"margin-right: 0.044em\">z<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3281em\"><span class=\"\" style=\"top: -2.357em;margin-left: -0.044em;margin-right: 0.0714em\"><span class=\"pstrut\" style=\"height: 2.5em\"><\/span><span class=\"sizing reset-size3 size1 mtight\"><span class=\"mord mathnormal mtight\">i<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.143em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n&#xff1a;<\/p>\n<table>\n<tr>$ z_i $$ e^{z_i} $<\/tr>\n<tbody>\n<tr>\n<td>2.0<\/td>\n<td>$ e^{2.0} \\\\approx 7.389 $<\/td>\n<\/tr>\n<tr>\n<td>1.0<\/td>\n<td>$ e^{1.0} \\\\approx 2.718 $<\/td>\n<\/tr>\n<tr>\n<td>0.1<\/td>\n<td>$ e^{0.1} \\\\approx 1.105 $<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u6b65\u9aa4 2&#xff1a;\u6c42\u548c<\/h4>\n<p>\u8ba1\u7b97\u6240\u6709\u6307\u6570\u503c\u7684\u603b\u548c&#xff1a;<\/p>\n<p><span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">Sum&#061;7.389&#043;2.718&#043;1.105&#061;11.212<br \/>\n\\\\text{Sum} &#061; 7.389 &#043; 2.718 &#043; 1.105 &#061; 11.212<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord text\"><span class=\"mord\">Sum<\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">7.389<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">&#043;<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">2.718<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">&#043;<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">1.105<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">11.212<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4>\u6b65\u9aa4 3&#xff1a;\u5f52\u4e00\u5316<\/h4>\n<p>\u6bcf\u4e2a\u5143\u7d20\u9664\u4ee5\u5176\u603b\u548c&#xff0c;\u5f97\u5230\u6982\u7387&#xff1a;<\/p>\n<p><span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u03c3(z)1&#061;7.38911.212\u22480.659<br \/>\n\\\\sigma(\\\\mathbf{z})_1 &#061; \\\\frac{7.389}{11.212} \\\\approx 0.659<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0359em\">\u03c3<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathbf\">z<\/span><span class=\"mclose\"><span class=\"mclose\">)<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 2.0074em;vertical-align: -0.686em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 1.3214em\"><span class=\"\" style=\"top: -2.314em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">11.212<\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.677em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">7.389<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.686em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2248<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">0.659<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p><span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u03c3(z)2&#061;2.71811.212\u22480.243<br \/>\n\\\\sigma(\\\\mathbf{z})_2 &#061; \\\\frac{2.718}{11.212} \\\\approx 0.243<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0359em\">\u03c3<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathbf\">z<\/span><span class=\"mclose\"><span class=\"mclose\">)<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 2.0074em;vertical-align: -0.686em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 1.3214em\"><span class=\"\" style=\"top: -2.314em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">11.212<\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.677em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">2.718<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.686em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2248<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">0.243<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p><span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u03c3(z)3&#061;1.10511.212\u22480.098<br \/>\n\\\\sigma(\\\\mathbf{z})_3 &#061; \\\\frac{1.105}{11.212} \\\\approx 0.098<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0359em\">\u03c3<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathbf\">z<\/span><span class=\"mclose\"><span class=\"mclose\">)<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">3<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 2.0074em;vertical-align: -0.686em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 1.3214em\"><span class=\"\" style=\"top: -2.314em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">11.212<\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.677em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">1.105<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.686em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2248<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">0.098<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4>\u9a8c\u8bc1<\/h4>\n<p>\u6240\u6709\u8f93\u51fa\u4e4b\u548c\u4e3a<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">0.659&#043;0.243&#043;0.098&#061;1.0\u2713<br \/>\n0.659 &#043; 0.243 &#043; 0.098 &#061; 1.0 \u2713<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">0.659<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">&#043;<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">0.243<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">&#043;<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">0.098<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6922em\"><\/span><span class=\"mord\">1.0<\/span><span class=\"mord amsrm\">\u2713<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4>\u5173\u952e\u7279\u6027<\/h4>\n<li>\n<p>\u6982\u7387\u5206\u5e03&#xff1a;\u8f93\u51fa\u503c\u5728  (0, 1)  \u4e4b\u95f4&#xff0c;\u4e14\u603b\u548c\u4e3a  1.0<\/p>\n<\/li>\n<li>\n<p>\u653e\u5927\u5dee\u5f02&#xff1a;<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u6307\u6570\u51fd\u6570\u4f1a\u653e\u5927\u8f93\u5165\u503c\u4e4b\u95f4\u7684\u5dee\u5f02&#xff08;2.0\u6bd41.0\u59271\u500d&#xff0c;\u4f46e2.0\u662fe1.0\u7684\u7ea62.7\u500d&#xff09;<br \/>\n\u6307\u6570\u51fd\u6570\u4f1a\u653e\u5927\u8f93\u5165\u503c\u4e4b\u95f4\u7684\u5dee\u5f02&#xff08; 2.0  \u6bd4  1.0 \u5927  1 \u500d&#xff0c;\u4f46  e^{2.0}  \u662f  e^{1.0}  \u7684\u7ea6  2.7  \u500d&#xff09;<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.8641em\"><\/span><span class=\"mord cjk_fallback\">\u6307\u6570\u51fd\u6570\u4f1a\u653e\u5927\u8f93\u5165\u503c\u4e4b\u95f4\u7684\u5dee\u5f02&#xff08;<\/span><span class=\"mord\">2.0<\/span><span class=\"mord cjk_fallback\">\u6bd4<\/span><span class=\"mord\">1.0<\/span><span class=\"mord cjk_fallback\">\u5927<\/span><span class=\"mord\">1<\/span><span class=\"mord cjk_fallback\">\u500d&#xff0c;\u4f46<\/span><span class=\"mord\"><span class=\"mord mathnormal\">e<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8641em\"><span class=\"\" style=\"top: -3.113em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\">2.0<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord cjk_fallback\">\u662f<\/span><span class=\"mord\"><span class=\"mord mathnormal\">e<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8641em\"><span class=\"\" style=\"top: -3.113em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\">1.0<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord cjk_fallback\">\u7684\u7ea6<\/span><span class=\"mord\">2.7<\/span><span class=\"mord cjk_fallback\">\u500d&#xff09;<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p>\u4fdd\u6301\u987a\u5e8f&#xff1a;\u8f93\u5165\u8d8a\u5927&#xff0c;\u5bf9\u5e94\u7684\u8f93\u51fa\u6982\u7387\u4e5f\u8d8a\u5927<\/p>\n<\/li>\n<h3>\u4e09\u3001\u770b\u770b\u6bcf\u4e00\u5c42\u7684\u8f93\u51fa<\/h3>\n<h4>Token Embedding \u7279\u6027<\/h4>\n<ul>\n<li>\u76f8\u540c Token \u2192 \u76f8\u540c\u7684 Token Embedding<\/li>\n<li>\u610f\u601d\u76f8\u8fd1\u7684 Token \u2192 \u76f8\u8fd1\u7684 Embedding<\/li>\n<li>\u4e0d\u540c\u4e0a\u4e0b\u6587 \u2192 \u76f8\u540c Token \u83b7\u5f97\u4e0d\u540c Embedding<\/li>\n<li>\u8bed\u4e49\u65b9\u5411\u6027&#xff1a;\u7279\u5b9a\u65b9\u5411\u6709\u7279\u5b9a\u542b\u4e49&#xff08;\u5982&#xff1a;\u67d0\u4e2a\u65b9\u5411\u4ee3\u8868&#034;\u4e2d\u82f1\u7ffb\u8bd1&#034;&#xff09;<\/li>\n<\/ul>\n<h4>\u5206\u6790\u65b9\u6cd5<\/h4>\n<ul>\n<li>\u964d\u7ef4\u53ef\u89c6\u5316&#xff1a;\u5c06\u9ad8\u7ef4\u5411\u91cf\u6295\u5c04\u5230\u4f4e\u7ef4\u7a7a\u95f4\u89c2\u5bdf<\/li>\n<li>\u5e72\u9884\u6280\u672f&#xff1a;\u4ece\u67d0\u5c42\u63d0\u53d6\u5411\u91cf\u5e76\u4fee\u6539&#xff0c;\u53ef\u5f71\u54cd\u6a21\u578b\u8f93\u51fa&#xff08;\u5982&#xff1a;\u8ba9\u6a21\u578b\u62d2\u7edd\u56de\u7b54\u539f\u672c\u4f1a\u56de\u7b54\u7684\u95ee\u9898&#xff09;<\/li>\n<li>Logit Lens&#xff1a;\u5bf9\u6bcf\u4e00\u5c42\u8fdb\u884c Unembedding&#xff0c;\u89c2\u5bdf\u6a21\u578b\u5728\u5404\u5c42\u7684&#034;\u601d\u8003\u8fc7\u7a0b&#034;<\/li>\n<\/ul>\n<p>Patchscopes&#xff1a;\u7528\u4e8e\u8ba9\u5355\u4e2a\u5411\u91cf\u5305\u542b\u5b8c\u6574\u8bed\u4e49&#xff1a;<\/p>\n<p>    1. \u5c06\u76ee\u6807\u8bed\u53e5\u8f93\u5165\u6a21\u578b&#xff0c;\u4ece\u67d0\u5c42\u63d0\u53d6\u5411\u91cf<br \/>\n    2. \u6784\u9020\u65b0\u8f93\u5165&#xff08;\u5982&#xff1a;&#034;\u8bf7\u7b80\u5355\u4ecb\u7ecd\u3010x\u3011&#034;&#xff09;<br \/>\n    3. \u5728\u65b0\u8f93\u5165\u4f20\u9012\u5230\u5bf9\u5e94\u5c42\u65f6&#xff0c;\u66ff\u6362\u4e3a\u4e4b\u524d\u63d0\u53d6\u7684\u5411\u91cf<br \/>\n    4. \u6a21\u578b\u5373\u5904\u7406\u5b8c\u6574\u7684\u8bed\u4e49\u5185\u5bb9\u3010x\u3011<\/p>\n<h3>\u56db\u3001\u6bcf\u4e00\u5c42\u5185\u90e8\u5982\u4f55\u8fd0\u884c<\/h3>\n<p>\u8fd9\u91cc\u4ee5transformer\u4e3a\u4f8b\u5b50\u8fdb\u884c\u5206\u6790<\/p>\n<h4>4.1 Self-Attention \u5c42&#xff08;\u7b2c\u4e00\u5c42&#xff09;<\/h4>\n<p>\u6838\u5fc3\u529f\u80fd&#xff1a;\u8003\u8651\u6240\u6709\u8f93\u5165 Token \u7684\u5173\u7cfb&#xff0c;\u5b9e\u73b0\u4e0a\u4e0b\u6587\u7406\u89e3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154902-69836a6ec1afa.jpg\" alt=\"\" \/><\/p>\n<h4>Attention\u5c42\u5177\u4f53\u8fd0\u4f5c\u539f\u7406&#xff1a;<\/h4>\n<p>1\u3001\u5bfb\u627e\u4e0e\u5f53\u524d\u8f93\u5165\u6709\u5173\u7cfb\u7684token<\/p>\n<p>2\u3001\u5c06\u8fd9\u4e9b\u6709\u5173\u7cfb\u7684token\u7684\u4fe1\u606f\u52a0\u5165<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154903-69836a6f5bb45.jpg\" alt=\"\" \/><\/p>\n<h4>\u7b2c\u4e00\u6b65\u7684\u8be6\u7ec6\u6b65\u9aa4&#xff1a;<\/h4>\n<p>\u5c06\u6bcf\u4e00\u4e2atoken\u90fd\u8003\u8651\u4e00\u4e0b\u76f8\u5173\u5ea6&#xff0c;\u5148\u4e58\u4e0a\u4e00\u4e2a\u77e9\u9635&#xff0c;\u5f97\u5230key\u5411\u91cf&#xff0c;\u968f\u540e\u5728\u4e8equery\u76f4\u63a5dot product&#xff0c;\u7b97\u51fa\u7684\u7ed3\u679c\u8d8a\u5927&#xff0c;\u5c31\u8bc1\u660e\u5173\u8054\u6027\u8d8a\u5f3a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154903-69836a6fe6ca7.jpg\" alt=\"\" \/><\/p>\n<p>\u4f46\u662f\u6709\u4e00\u4e2a\u95ee\u9898&#xff1a;\u8fd9\u91cc\u53ea\u662f\u5bf9\u4e8e\u5355\u4e2a\u8f93\u5165\u7684\u8003\u8651&#xff0c;\u5e76\u6ca1\u6709 \u8003\u8651\u5230\u4e0a\u4e0b\u6587&#xff0c;\u76f8\u5f53\u4e8e\u62a0\u5b57\u773c\u3002\u6ca1\u6709\u8003\u8651\u4fe9\u4e2atoken\u76f4\u63a5\u7684\u8ddd\u79bb&#xff0c;\u4e00\u4e2a\u65b9\u6cd5\u5c31\u662fpositional embedding&#xff0c;\u8bb0\u5f55\u4f4d\u7f6e\u4fe1\u606f &#xff0c;token\u52a0\u8fd9\u4e2a\u76f8\u5bf9\u5e94\u4f4d\u7f6e\u7684\u5411\u91cf&#xff0c;\u4f8b\u5982p3 &#043; \u9752\u4fe9\u4e2a\u5411\u91cf\u540c\u65f6\u5904\u7406 \u3002<\/p>\n<p>\u6211\u4eec\u83b7\u5f97\u5230\u6bcf\u4e00\u4e2atoken\u4e0e\u5f53\u524dtoken\u7684\u76f8\u5173\u6027&#xff0c;\u518d\u8fdb\u884c\u4e86softmax\u64cd\u4f5c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154904-69836a7080afd.jpg\" alt=\"\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154905-69836a7134d84.jpg\" alt=\"\" \/><\/p>\n<h4>\u7b2c\u4e8c\u6b65&#xff1a;\u628a\u8fd9\u4e9btoken\u7684\u4fe1\u606f\u52a0\u5165\u8fdb\u6765<\/h4>\n<p>\u5148\u83b7\u53d6value&#xff0c;\u518d\u6839\u636e\u76f8\u5173\u6027\u8fdb\u884c\u52a0\u6743\u5904\u7406&#xff0c;\u52a0\u8d77\u6765\u540e\u5f97\u5230\u4e00\u4e2a\u65b0\u7684\u5411\u91cf\u3002residual connection\u4f1a\u5c06\u5f53\u524dtoken\u52a0\u8fdb\u6765&#xff0c;\u4ee5\u9632\u6b62\u6a21\u578b\u5fd8\u8bb0\u5f53\u524dtoken<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154905-69836a71df0d3.jpg\" alt=\"\" \/><\/p>\n<p>\u4f46\u662f&#xff0c;\u6211\u4eec\u6ce8\u610f\u5230\u7b2c\u4e00\u6b65\u9aa4&#xff0c;\u662f\u627e\u4f1a\u5f71\u54cd\u5f53\u524dtoken\u7684\u5176\u4ed6token&#xff0c;\u4f46\u662f\u5f71\u54cd\u7684\u5177\u4f53\u65b9\u9762\u662f\u5f88\u591a\u7684&#xff0c;\u6240\u4ee5\u901a\u5e38\u5f88\u6709\u591a\u7ec4attention  &#xff08;multi-head attention&#xff09;&#xff0c;\u4f8b\u5982\u67d0\u4e00\u5c42\u5c31\u662f\u627e\u5f62\u5bb9\u8bcd&#xff0c;\u67d0\u4e00\u5c42\u662f\u627e\u91cf\u8bcd\u7684\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154906-69836a728e3ef.jpg\" alt=\"\" \/><\/p>\n<p>\u6240\u4ee5&#xff0c;\u6709\u591a\u5c42attention\u5c42&#xff0c;\u90a3\u5c31\u4f1a\u6709\u591a\u4e2a\u7ed3\u679c\u5411\u91cf&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u8fd9\u4e9b\u5411\u91cf\u7ec4\u5408\u8d77\u6765&#xff0c;\u53d8\u6210\u4e00\u4e2a\u5411\u91cf<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154907-69836a733017b.jpg\" alt=\"\" \/><\/p>\n<p>\u7ed3\u679c&#xff1a;\u8f93\u5165\u8d8a\u957f&#xff0c;\u8fd0\u7b97\u91cf\u5c31\u8d8a\u5927\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u53ef\u4ee5\u53bb\u67e5\u8be2\u76f8\u5173\u8d44\u6599\u3002<\/p>\n<p>\u5e76\u4e14\u5728\u5b9e\u9645\u64cd\u4f5c\u8fc7\u7a0b\u4e2d&#xff0c;\u6211\u4eec\u7684attention\u5c42&#xff0c;\u6bcf\u4e00\u4e2atoken\u8003\u8651\u76f8\u5173\u6027\u7684\u65f6\u5019&#xff0c;\u53ea\u4f1a\u8003\u8651\u5728\u5176\u5de6\u8fb9\u7684token&#xff08;causal attention&#xff09;<\/p>\n<h4>4.2 Feed-Forward \u5c42&#xff08;Attention \u5c42\u4e4b\u540e&#xff09;<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154907-69836a73d0d8a.jpg\" alt=\"\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154908-69836a7471ad0.jpg\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u6a21\u578b\u5185\u90e8\u539f\u7406\u8be6\u89e3<br \/>\n\u4e00\u3001\u4ece\u8f93\u5165 Prompt \u5230\u8f93\u51fa Token \u7684\u5b8c\u6574\u6d41\u7a0b<br \/>\nTokenization&#xff08;\u5206\u8bcd&#xff09;<br \/>\n\u8f93\u5165\u7684\u53e5\u5b50\u9996\u5148\u8fdb\u884c Tokenization&#xff0c;\u5c06\u53e5\u5b50\u5207\u5206\u4e3a\u4e00\u4e2a\u4e2a Token\u3002Embedding \u67e5\u8868<br \/>\n\u901a\u8fc7 Embedding Table \u77e9\u9635&#xff08;\u6bcf\u4e00\u884c\u5bf9\u5e94\u4e00\u4e2a Token&#xff09;&#xff0c;\u5c06 Token \u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684\u5411\u91cf&#xff08;Token Embedding&#xff09;\u3002<br \/>\n&amp;#x1<\/p>\n","protected":false},"author":2,"featured_media":72160,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50],"topic":[],"class_list":["post-72170","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/72170.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5927\u6a21\u578b\u5185\u90e8\u539f\u7406\u8be6\u89e3 \u4e00\u3001\u4ece\u8f93\u5165 Prompt \u5230\u8f93\u51fa Token \u7684\u5b8c\u6574\u6d41\u7a0b Tokenization&#xff08;\u5206\u8bcd&#xff09; \u8f93\u5165\u7684\u53e5\u5b50\u9996\u5148\u8fdb\u884c Tokenization&#xff0c;\u5c06\u53e5\u5b50\u5207\u5206\u4e3a\u4e00\u4e2a\u4e2a Token\u3002Embedding \u67e5\u8868 \u901a\u8fc7 Embedding Table \u77e9\u9635&#xff08;\u6bcf\u4e00\u884c\u5bf9\u5e94\u4e00\u4e2a Token&#xff09;&#xff0c;\u5c06 Token \u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684\u5411\u91cf&#xff08;Token Embedding&#xff09;\u3002 &amp;#x1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/72170.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-04T15:49:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154902-69836a6ec1afa.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72170.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/72170.html\",\"name\":\"Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-04T15:49:10+00:00\",\"dateModified\":\"2026-02-04T15:49:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/72170.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/72170.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72170.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/72170.html","og_locale":"zh_CN","og_type":"article","og_title":"Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5927\u6a21\u578b\u5185\u90e8\u539f\u7406\u8be6\u89e3 \u4e00\u3001\u4ece\u8f93\u5165 Prompt \u5230\u8f93\u51fa Token \u7684\u5b8c\u6574\u6d41\u7a0b Tokenization&#xff08;\u5206\u8bcd&#xff09; \u8f93\u5165\u7684\u53e5\u5b50\u9996\u5148\u8fdb\u884c Tokenization&#xff0c;\u5c06\u53e5\u5b50\u5207\u5206\u4e3a\u4e00\u4e2a\u4e2a Token\u3002Embedding \u67e5\u8868 \u901a\u8fc7 Embedding Table \u77e9\u9635&#xff08;\u6bcf\u4e00\u884c\u5bf9\u5e94\u4e00\u4e2a Token&#xff09;&#xff0c;\u5c06 Token \u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684\u5411\u91cf&#xff08;Token Embedding&#xff09;\u3002 &amp;#x1","og_url":"https:\/\/www.wsisp.com\/helps\/72170.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-04T15:49:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260204154902-69836a6ec1afa.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/72170.html","url":"https:\/\/www.wsisp.com\/helps\/72170.html","name":"Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-04T15:49:10+00:00","dateModified":"2026-02-04T15:49:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/72170.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/72170.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/72170.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Gen_AI \u7b2c\u4e09\u8bfe \u5927\u6a21\u578b\u5185\u90e8\u539f\u7406"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/72170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=72170"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/72170\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/72160"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=72170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=72170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=72170"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=72170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}