import{S as Bt,i as Jt,s as Ot,e as s,k as p,t as x,w as h,M as Qt,c as n,d as t,m as f,a as o,h as _,x as m,b as i,G as r,g as l,y as c,L as Rt,q as u,o as $,B as v,v as Wt}from"../../chunks/vendor-hf-doc-builder.js";import{I as F}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as zt}from"../../chunks/CodeBlock-hf-doc-builder.js";import{Q as I}from"../../chunks/Question-hf-doc-builder.js";function Kt(ut){let w,ge,j,Ke,ye,re,Ve,Ee,g,S,se,D,Xe,ne,Ye,ke,L,Pe,y,q,oe,M,Ze,ie,et,de,B,be,E,C,le,J,tt,pe,rt,Ae,O,Se,ae,at,qe,Q,Ce,k,T,fe,R,st,he,nt,Te,W,Ge,P,G,me,z,ot,ce,it,Ne,K,Ue,d,N,ue,V,lt,$e,pt,He,X,Fe,b,U,ve,Y,ft,xe,ht,Ie,Z,je,A,H,_e,ee,mt,we,ct,De,te,Le;return D=new F({}),L=new I({props:{choices:[{text:"\u4ECE\u4E0A\u5230\u4E0B",explain:"\u518D\u8BD5\u4E00\u6B21\u2014\u2014\u5C3D\u7BA1\u5927\u591A\u6570\u5176\u4ED6\u7F16\u7A0B\u8BED\u8A00\u5728\u9876\u90E8\u6253\u5370\u5F02\u5E38\uFF0C\u4F46 Python \u5728\u8FD9\u65B9\u9762\u662F\u7279\u6B8A\u7684\u3002"},{text:"\u81EA\u4E0B\u800C\u4E0A",explain:"\u6B63\u786E\uFF01\u5728\u5E95\u90E8\u663E\u793A\u5F02\u5E38\u7684 Python \u56DE\u6EAF\u7684\u4E00\u4E2A\u4F18\u70B9\u662F\uFF0C\u5728\u7EC8\u7AEF\u4E2D\u5DE5\u4F5C\u65F6\u66F4\u5BB9\u6613\u8C03\u8BD5\uFF0C\u8FD9\u662F\u4F60\u770B\u5230\u7684\u6700\u540E\u4E00\u884C\u3002",correct:!0}]}}),M=new F({}),B=new I({props:{choices:[{text:"\u6765\u81EA\u4E00\u7BC7\u7814\u7A76\u6587\u7AE0\u4E00\u4E2A\u7B80\u5355\u7684 Transformer \u4F53\u7CFB\u7ED3\u6784\u7684\u5B9E\u73B0",explain:"\u867D\u7136\u4ECE\u5934\u5F00\u59CB\u5B9E\u73B0\u4F60\u81EA\u5DF1\u7684 Transformer \u6A21\u578B\u662F\u975E\u5E38\u6709\u6559\u80B2\u610F\u4E49\u7684\uFF0C\u4F46\u8FD9\u4E0D\u662F\u6211\u4EEC\u5728\u8FD9\u91CC\u8BA8\u8BBA\u7684\u5185\u5BB9\u3002"},{text:"\u4E00\u79CD\u7D27\u51D1\u4E14\u81EA\u5305\u542B\u7684\u4EE3\u7801\u5757\uFF0C\u53EF\u4EE5\u5728\u4E0D\u4F9D\u8D56\u4E8E\u79C1\u6709\u6587\u4EF6\u6216\u6570\u636E\u7684\u60C5\u51B5\u4E0B\u8FD0\u884C",explain:"\u6B63\u786E\uFF01\u67E5\u770B\u4F60\u7684\u6570\u636E\u51E0\u4E4E\u603B\u662F\u4F60\u5E94\u8BE5\u505A\u7684\u7B2C\u4E00\u4EF6\u4E8B\uFF0C\u4EE5\u786E\u4FDD\u6587\u672C\u88AB\u9002\u5F53\u5730\u7F16\u7801\uFF0C\u5177\u6709\u9884\u671F\u7684\u7279\u6027\uFF0C\u7B49\u7B49\u3002",correct:!0},{text:"Python \u56DE\u6EAF\u7684\u5C4F\u5E55\u622A\u56FE",explain:"\u518D\u8BD5\u4E00\u6B21 -- \u5C3D\u7BA1\u5728\u63D0\u4EA4\u95EE\u9898\u65F6, \u5F88\u5BB9\u6613\u5305\u542B\u60A8\u6240\u9762\u4E34\u9519\u8BEF\u7684\u5C4F\u5E55\u622A\u56FE, \u4F46\u8FD9\u4F7F\u5F97\u5176\u4ED6\u4EBA\u5F88\u96BE\u91CD\u73B0\u9519\u8BEF\u3002"},{text:"\u4E00\u4E2A\u8BB0\u5F55\u6574\u4E2A\u5206\u6790\u7684\u7B14\u8BB0\u672C\uFF0C\u5305\u62EC\u4E0E\u9519\u8BEF\u65E0\u5173\u7684\u90E8\u5206",explain:"\u4E0D\u5B8C\u5168 -- \u5C3D\u7BA1\u5171\u4EAB\u4E00\u4E2A\u663E\u793A\u9519\u8BEF\u7684GoogleColab\u7B14\u8BB0\u672C\u4F1A\u5F88\u6709\u5E2E\u52A9, \u4F46\u8981\u786E\u4FDD\u5B83\u7B80\u77ED, \u5E76\u4E14\u53EA\u5305\u542B\u76F8\u5173\u4EE3\u7801\u3002 "}]}}),J=new F({}),O=new zt({props:{code:`from transformers import GPT3ForSequenceClassification

# ImportError: cannot import name 'GPT3ForSequenceClassification' from 'transformers' (/Users/lewtun/miniconda3/envs/huggingface/lib/python3.8/site-packages/transformers/__init__.py)
# ---------------------------------------------------------------------------
# ImportError                               Traceback (most recent call last)
# /var/folders/28/k4cy5q7s2hs92xq7_h89_vgm0000gn/T/ipykernel_30848/333858878.py in <module>
# ----> 1 from transformers import GPT3ForSequenceClassification

# ImportError: cannot import name 'GPT3ForSequenceClassification' from 'transformers' (/Users/lewtun/miniconda3/envs/huggingface/lib/python3.8/site-packages/transformers/__init__.py)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> GPT3ForSequenceClassification

<span class="hljs-comment"># ImportError: cannot import name &#x27;GPT3ForSequenceClassification&#x27; from &#x27;transformers&#x27; (/Users/lewtun/miniconda3/envs/huggingface/lib/python3.8/site-packages/transformers/__init__.py)</span>
<span class="hljs-comment"># ---------------------------------------------------------------------------</span>
<span class="hljs-comment"># ImportError                               Traceback (most recent call last)</span>
<span class="hljs-comment"># /var/folders/28/k4cy5q7s2hs92xq7_h89_vgm0000gn/T/ipykernel_30848/333858878.py in &lt;module&gt;</span>
<span class="hljs-comment"># ----&gt; 1 from transformers import GPT3ForSequenceClassification</span>

<span class="hljs-comment"># ImportError: cannot import name &#x27;GPT3ForSequenceClassification&#x27; from &#x27;transformers&#x27; (/Users/lewtun/miniconda3/envs/huggingface/lib/python3.8/site-packages/transformers/__init__.py)</span>`}}),Q=new I({props:{choices:[{text:"\u5BFC\u5165\u9519\u8BEF:\u65E0\u6CD5\u4ECE'transformers'\u5BFC\u5165\u540D\u79F0'GPT3GPT3ForSequenceClassification'(/Users/lewtun/miniconda3/envs/huggingface/lib/python3.8/site-packages/transformers/_ init _. py) ",explain:"\u5305\u542B\u56DE\u6EAF\u7684\u6700\u540E\u4E00\u884C\u53EF\u4EE5\u662F\u63CF\u8FF0\u6027\u7684\uFF0C\u4F46\u8FD9\u6700\u597D\u4FDD\u7559\u7ED9\u4E3B\u9898\u7684\u4E3B\u4F53\u90E8\u5206\u3002\u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u4ECEtransformers\u5BFC\u5165 gpt3forsequeclassification \u65F6\u51FA\u73B0\u95EE\u9898",explain:"\u518D\u8BD5\u4E00\u6B21\u2014\u2014\u5C3D\u7BA1\u8FD9\u63D0\u4F9B\u4E86\u6709\u7528\u7684\u4FE1\u606F\uFF0C\u4F46\u6700\u597D\u8FD8\u662F\u4FDD\u7559\u5728\u6587\u672C\u7684\u4E3B\u4F53\u90E8\u5206\u3002"},{text:"\u4E3A\u4EC0\u4E48\u6211\u4E0D\u80FD\u5BFC\u5165 &amp;lt; code > GPT3ForSequenceClassification &amp;lt;/code > ?",explain:"\u4E0D\u9519\u7684\u9009\u62E9\uFF01\u8FD9\u4E2A\u6807\u9898\u662F\u7B80\u6D01\u7684\uFF0C\u5E76\u7ED9\u8BFB\u8005\u4E00\u4E2A\u7EBF\u7D22\uFF0C\u4EC0\u4E48\u53EF\u80FD\u662F\u9519\u8BEF\u7684(\u5373,gpt-3\u4E0D\u652F\u6301\u5728\u{1F917} Transformers)\u3002",correct:!0},{text:"Gpt-3\u5728\u{1F917} Transformers\u4E2D\u652F\u6301\u5417?",explain:"\u597D\u4E3B\u610F! \u7528\u95EE\u9898\u4F5C\u4E3A\u4E3B\u9898\u6807\u9898\u662F\u5411\u793E\u533A\u4F20\u8FBE\u95EE\u9898\u7684\u597D\u65B9\u6CD5\u3002",correct:!0}]}}),R=new F({}),W=new I({props:{choices:[{text:"\u8BA1\u7B97\u68AF\u5EA6\u5E76\u6267\u884C\u53CD\u5411\u4F20\u64AD\u7684\u4F18\u5316\u6B65\u9AA4",explain:"\u5C3D\u7BA1\u4F18\u5316\u5668\u4E2D\u53EF\u80FD\u5B58\u5728\u7F3A\u9677, \u4F46\u8FD9\u901A\u5E38\u662F\u8BAD\u7EC3\u7BA1\u9053\u4E2D\u7684\u51E0\u4E2A\u6B65\u9AA4, \u56E0\u6B64\u9996\u5148\u8981\u68C0\u67E5\u5176\u4ED6\u4E8B\u9879\u3002\u518D\u8BD5\u4E00\u6B21!"},{text:"\u8BA1\u7B97\u5EA6\u91CF\u7684\u8BC4\u4F30\u6B65\u9AA4",explain:"\u8BC4\u4F30\u901A\u5E38\u662F\u5728\u6574\u4E2A\u8BAD\u7EC3\u671F\u7ED3\u675F\u540E\u8FDB\u884C\u7684, \u56E0\u6B64\u4F60\u5E94\u8BE5\u9996\u5148\u5728\u8BAD\u7EC3\u7BA1\u9053\u7684\u65E9\u671F\u68C0\u67E5\u67D0\u4E2A\u5730\u65B9\u3002"},{text:"\u6570\u636E\u96C6",explain:"\u6B63\u786E\u7684!\u67E5\u770B\u6570\u636E\u51E0\u4E4E\u603B\u662F\u60A8\u5E94\u8BE5\u505A\u7684\u7B2C\u4E00\u4EF6\u4E8B, \u4EE5\u786E\u4FDD\u6587\u672C\u8FDB\u884C\u4E86\u9002\u5F53\u7684\u7F16\u7801, \u5177\u6709\u9884\u671F\u7684\u7279\u6027, \u7B49\u7B49\u3002",correct:!0},{text:"\u6570\u636E\u8BB0\u5F55\u5668",explain:"\u518D\u8BD5\u4E00\u6B21---- \u8FD9\u975E\u5E38\u63A5\u8FD1\u4F60\u5E94\u8BE5\u68C0\u67E5\u7684\u7B2C\u4E00\u4EF6\u4E8B\u3002\u4F60\u8FD8\u8BB0\u5F97\u6211\u4EEC\u4EA4\u7ED9\u6570\u636E\u6536\u96C6\u8005\u7684\u662F\u4EC0\u4E48\u4E1C\u897F\u5417\uFF1F"}]}}),z=new F({}),K=new I({props:{choices:[{text:"\u5728\u8BBA\u575B\u6216 GitHub \u4E0A\u53D1\u5E03\u9519\u8BEF\u6D88\u606F\u3002",explain:"\u8FD9\u4E0D\u4F1A\u5E2E\u52A9\u4EFB\u4F55\u4EBA, \u56E0\u4E3A CUDA \u7684\u9519\u8BEF\u4FE1\u606F\u901A\u5E38\u662F\u975E\u5E38\u6CA1\u6709\u4FE1\u606F\u3002"},{text:"\u5728 CPU \u4E0A\u6267\u884C\u76F8\u540C\u7684\u4EE3\u7801\u3002",explain:"\u6CA1\u9519, \u8FD9\u5E94\u8BE5\u4F1A\u7ED9\u4F60\u4E00\u4E2A\u66F4\u597D\u7684\u9519\u8BEF\u6D88\u606F!",correct:!0},{text:"\u8BF7\u9605\u8BFB\u56DE\u6EAF\u4EE5\u627E\u51FA\u9519\u8BEF\u7684\u539F\u56E0\u3002",explain:"\u5BF9\u4E8E\u4EFB\u4F55\u5176\u4ED6\u9519\u8BEF, \u4F60\u90FD\u4F1A\u8FD9\u6837\u505A, \u4F46CUDA\u9519\u8BEF\u901A\u5E38\u4E0D\u4F1A\u5728\u53D1\u751F\u7684\u5730\u65B9\u5F15\u53D1, \u56E0\u4E3A\u5927\u591A\u6570CUDA\u64CD\u4F5C\u90FD\u662F\u5F02\u6B65\u7684\u3002"},{text:"\u51CF\u5C11\u6279\u91CF\u3002",explain:"\u51CF\u5C11\u6279\u5904\u7406\u5927\u5C0F\u901A\u5E38\u662F\u5904\u7406CUDA\u5185\u5B58\u4E0D\u8DB3\u9519\u8BEF\u7684\u4E00\u4E2A\u597D\u7B56\u7565, \u4F46\u4E0D\u662F\u4E3A\u8FD9\u4E2A\u7279\u5B9A\u7684\u95EE\u9898\u3002\u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u91CD\u65B0\u542F\u52A8 Jupyter \u5185\u6838\u3002",explain:"\u518D\u8BD5\u4E00\u6B21\u2014\u2014\u91CD\u65B0\u542F\u52A8\u5185\u6838\u4E0D\u4F1A\u8BA9\u9519\u8BEF\u795E\u5947\u5730\u6D88\u5931\uFF01"}]}}),V=new F({}),X=new I({props:{choices:[{text:"\u53D1\u5E03\u8FD9\u4E2A bug \u7684\u5B8C\u6574\u53EF\u91CD\u590D\u7684\u4F8B\u5B50\u3002",explain:"\u662F\u7684\uFF0C\u8FD9\u662F\u5E2E\u52A9\u7EF4\u62A4\u4EBA\u5458\u627E\u5230 bug \u7684\u6700\u597D\u65B9\u6CD5\u3002\u4F60\u8FD8\u5E94\u8BE5\u505A\u4EC0\u4E48\uFF1F\uFF1F",correct:!0},{text:"\u6BCF\u5929\u8981\u6C42\u66F4\u65B0\u3002",explain:"\u8FD9\u4E0D\u592A\u53EF\u80FD\u7ED9\u4F60\u4EFB\u4F55\u5E2E\u52A9\uFF1B\u4EBA\u4EEC\u53EF\u80FD\u4F1A\u66F4\u5FFD\u89C6\u4F60\u3002"},{text:"\u68C0\u67E5\u9519\u8BEF\u5468\u56F4\u7684\u6E90\u4EE3\u7801\uFF0C\u5E76\u8BD5\u56FE\u627E\u51FA\u9519\u8BEF\u53D1\u751F\u7684\u539F\u56E0\u3002\u5728\u8FD9\u671F\u6742\u5FD7\u4E0A\u53D1\u5E03\u7ED3\u679C\u3002",explain:"\u8FD9\u80AF\u5B9A\u4F1A\u5BF9\u7EF4\u62A4\u4EBA\u5458\u6709\u5E2E\u52A9\uFF01\u5982\u679C\u60A8\u786E\u5B9E\u627E\u5230\u4E86 bug \u7684\u6765\u6E90\u548C\u4FEE\u590D\u7A0B\u5E8F, \u751A\u81F3\u53EF\u4EE5\u6253\u5F00\u4E00\u4E2A pull \u8BF7\u6C42\u3002\u4F60\u8FD8\u5E94\u8BE5\u505A\u4E9B\u4EC0\u4E48\uFF1F",correct:!0}]}}),Y=new F({}),Z=new I({props:{choices:[{text:"\u4E0D\u662F\u8FD9\u6837\u7684, \u8FC7\u5206\u5408\u8EAB\u603B\u662F\u4E0D\u597D\u7684, \u5E94\u8BE5\u907F\u514D\u3002",explain:"\u5F53\u5BF9\u6574\u4E2A\u6570\u636E\u96C6\u8FDB\u884C\u8BAD\u7EC3\u65F6, \u8FC7\u5EA6\u62DF\u5408\u786E\u5B9E\u53EF\u80FD\u662F\u4E00\u4E2A\u4FE1\u53F7, \u8868\u660E\u4F60\u7684\u6A21\u578B\u4E0D\u80FD\u5F88\u597D\u5730\u63A8\u5E7F\u5230\u65B0\u7684\u793A\u4F8B\u3002\u4F46\u662F, \u5BF9\u4E8E\u8C03\u8BD5, \u6211\u4EEC\u901A\u5E38\u4E0D\u4F1A\u5BF9\u6574\u4E2A\u6570\u636E\u96C6\u8FDB\u884C\u8BAD\u7EC3\u3002\u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u8FD9\u4F7F\u6211\u4EEC\u80FD\u591F\u9A8C\u8BC1\u8BE5\u6A21\u578B\u80FD\u591F\u5C06\u635F\u8017\u964D\u4F4E\u5230\u96F6\u3002",explain:"\u6B63\u786E! \u53EA\u9700\u8981\u4E24\u4E2A\u6837\u672C\u7684\u5C0F\u6279\u91CF, \u6211\u4EEC\u5C31\u53EF\u4EE5\u5FEB\u901F\u9A8C\u8BC1\u6A21\u578B\u662F\u5426\u5177\u6709\u5B66\u4E60\u80FD\u529B\u3002",correct:!0},{text:"\u5B83\u5141\u8BB8\u6211\u4EEC\u9A8C\u8BC1\u6211\u4EEC\u8F93\u5165\u548C\u6807\u7B7E\u7684\u5F20\u91CF\u5F62\u72B6\u662F\u6B63\u786E\u7684\u3002",explain:"\u518D\u8BD5\u4E00\u6B21 -- \u5982\u679C\u4F60\u7684\u5F20\u91CF\u5F62\u72B6\u4E0D\u5BF9\u9F50, \u90A3\u4E48\u4F60\u80AF\u5B9A\u4E0D\u80FD\u8BAD\u7EC3, \u5373\u4F7F\u662F\u4E00\u6279\u3002"}]}}),ee=new F({}),te=new I({props:{choices:[{text:"\u5B83\u5141\u8BB8\u7EF4\u62A4\u4EBA\u5458\u7406\u89E3\u4F60\u6B63\u5728\u4F7F\u7528\u7684\u5E93\u7684\u54EA\u4E2A\u7248\u672C\u3002",explain:"\u6B63\u786E! \u7531\u4E8E\u5E93\u7684\u6BCF\u4E2A\u4E3B\u8981\u7248\u672C\u5728API\u4E2D\u90FD\u53EF\u80FD\u6709\u66F4\u6539, \u56E0\u6B64\u4E86\u89E3\u60A8\u6B63\u5728\u4F7F\u7528\u7684\u7279\u5B9A\u7248\u672C\u6709\u52A9\u4E8E\u7F29\u5C0F\u95EE\u9898\u8303\u56F4\u3002\u5176\u4ED6\u597D\u5904\u662F\u4EC0\u4E48?",correct:!0},{text:"\u5B83\u8BA9\u7EF4\u62A4\u4EBA\u5458\u77E5\u9053\u4F60\u662F\u5728 Windows\u3001 macOS \u8FD8\u662F Linux \u4E0A\u8FD0\u884C\u4EE3\u7801\u3002",explain:"\u6B63\u786E\uFF01\u9519\u8BEF\u6709\u65F6\u53EF\u80FD\u662F\u7531\u4F60\u6B63\u5728\u4F7F\u7528\u7684\u7279\u5B9A\u64CD\u4F5C\u7CFB\u7EDF\u5F15\u8D77\u7684, \u4E86\u89E3\u8FD9\u4E00\u70B9\u6709\u52A9\u4E8E\u7EF4\u62A4\u4EBA\u5458\u5728\u672C\u5730\u590D\u5236\u8FD9\u4E9B\u9519\u8BEF\u3002\u4F46\u8FD9\u5E76\u4E0D\u662F\u552F\u4E00\u7684\u539F\u56E0\u3002",correct:!0},{text:"\u5B83\u5141\u8BB8\u7EF4\u62A4\u4EBA\u5458\u77E5\u9053\u4F60\u662F\u5728 GPU \u8FD8\u662F CPU \u4E0A\u8FD0\u884C\u4EE3\u7801\u3002",explain:"\u6B63\u786E! \u6B63\u5982\u6211\u4EEC\u5728\u672C\u7AE0\u4E2D\u770B\u5230\u7684, gpu \u548C cpu \u4E0A\u7684\u9519\u8BEF\u5728\u98CE\u683C\u4E0A\u53EF\u80FD\u6709\u5F88\u5927\u7684\u4E0D\u540C, \u4E86\u89E3\u60A8\u6B63\u5728\u4F7F\u7528\u7684\u786C\u4EF6\u53EF\u4EE5\u5E2E\u52A9\u96C6\u4E2D\u7EF4\u62A4\u4EBA\u5458\u7684\u6CE8\u610F\u529B\u3002\u4F46\u8FD9\u4E0D\u662F\u552F\u4E00\u7684\u597D\u5904..."}]}}),{c(){w=s("meta"),ge=p(),j=s("h1"),Ke=x("\u7AE0\u672B\u6D4B\u8BC4"),ye=p(),re=s("p"),Ve=x("\u8BA9\u6211\u4EEC\u6D4B\u8BD5\u4E00\u4E0B\u4F60\u5728\u672C\u7AE0\u5B66\u5230\u7684\u4E1C\u897F!"),Ee=p(),g=s("h3"),S=s("a"),se=s("span"),h(D.$$.fragment),Xe=p(),ne=s("span"),Ye=x("1.\u5E94\u8BE5\u6309\u7167\u4EC0\u4E48\u987A\u5E8F\u8BFB\u53D6 Python \u56DE\u6EAF\uFF1F"),ke=p(),h(L.$$.fragment),Pe=p(),y=s("h3"),q=s("a"),oe=s("span"),h(M.$$.fragment),Ze=p(),ie=s("span"),et=x("2.\u4EC0\u4E48\u662F\u6700\u5C0F\u53EF\u518D\u751F\u793A\u4F8B\uFF1F"),de=p(),h(B.$$.fragment),be=p(),E=s("h3"),C=s("a"),le=s("span"),h(J.$$.fragment),tt=p(),pe=s("span"),rt=x("3.\u5047\u8BBE\u4F60\u5C1D\u8BD5\u8FD0\u884C\u4EE5\u4E0B\u4EE3\u7801\uFF0C\u5B83\u629B\u51FA\u4E00\u4E2A\u9519\u8BEF:"),Ae=p(),h(O.$$.fragment),Se=p(),ae=s("p"),at=x("\u4EE5\u4E0B\u54EA\u9879\u53EF\u80FD\u662F\u8BBA\u575B\u4E3B\u9898\u6807\u9898\u5BFB\u6C42\u5E2E\u52A9\u7684\u597D\u9009\u62E9?"),qe=p(),h(Q.$$.fragment),Ce=p(),k=s("h3"),T=s("a"),fe=s("span"),h(R.$$.fragment),st=p(),he=s("span"),nt=x("4.\u5047\u8BBE\u60A8\u8BD5\u56FE\u8FD0\u884C \u2018trainer.train ()\u2018\uFF0C\u4F46\u662F\u9047\u5230\u4E86\u4E00\u4E2A\u795E\u79D8\u7684\u9519\u8BEF\uFF0C\u8FD9\u4E2A\u9519\u8BEF\u4E0D\u80FD\u51C6\u786E\u5730\u544A\u8BC9\u60A8\u9519\u8BEF\u6765\u81EA\u54EA\u91CC\u3002\u4E0B\u5217\u54EA\u4E00\u9879\u662F\u60A8\u5E94\u8BE5\u9996\u5148\u5728\u60A8\u7684\u57F9\u8BAD\u7BA1\u9053\u4E2D\u5BFB\u627E\u9519\u8BEF\u7684\u5730\u65B9\uFF1F"),Te=p(),h(W.$$.fragment),Ge=p(),P=s("h3"),G=s("a"),me=s("span"),h(z.$$.fragment),ot=p(),ce=s("span"),it=x("5.\u8C03\u8BD5 CUDA \u9519\u8BEF\u7684\u6700\u597D\u65B9\u6CD5\u662F\u4EC0\u4E48\uFF1F"),Ne=p(),h(K.$$.fragment),Ue=p(),d=s("h3"),N=s("a"),ue=s("span"),h(V.$$.fragment),lt=p(),$e=s("span"),pt=x("6.\u4FEE\u590D GitHub \u4E0A\u7684\u95EE\u9898\u6700\u597D\u7684\u65B9\u6CD5\u662F\u4EC0\u4E48\uFF1F"),He=p(),h(X.$$.fragment),Fe=p(),b=s("h3"),U=s("a"),ve=s("span"),h(Y.$$.fragment),ft=p(),xe=s("span"),ht=x("7.\u4E3A\u4EC0\u4E48\u5BF9\u4E00\u4E2A\u6279\u5904\u7406\u8FDB\u884C\u8FC7\u5EA6\u8C03\u8BD5\u901A\u5E38\u662F\u4E00\u79CD\u597D\u7684\u8C03\u8BD5\u6280\u672F\uFF1F"),Ie=p(),h(Z.$$.fragment),je=p(),A=s("h3"),H=s("a"),_e=s("span"),h(ee.$$.fragment),mt=p(),we=s("span"),ct=x("8.\u4E3A\u4EC0\u4E48\u5728 \u{1F917} Transformers \u5B58\u50A8\u5E93\u4E2D\u521B\u5EFA\u65B0\u95EE\u9898\u65F6\uFF0C\u4F7F\u7528 transformers-cli env \u5305\u542B\u6709\u5173\u8BA1\u7B97\u73AF\u5883\u7684\u8BE6\u7EC6\u4FE1\u606F\u662F\u4E2A\u597D\u4E3B\u610F\uFF1F"),De=p(),h(te.$$.fragment),this.h()},l(e){const a=Qt('[data-svelte="svelte-1phssyn"]',document.head);w=n(a,"META",{name:!0,content:!0}),a.forEach(t),ge=f(e),j=n(e,"H1",{id:!0});var $t=o(j);Ke=_($t,"\u7AE0\u672B\u6D4B\u8BC4"),$t.forEach(t),ye=f(e),re=n(e,"P",{});var vt=o(re);Ve=_(vt,"\u8BA9\u6211\u4EEC\u6D4B\u8BD5\u4E00\u4E0B\u4F60\u5728\u672C\u7AE0\u5B66\u5230\u7684\u4E1C\u897F!"),vt.forEach(t),Ee=f(e),g=n(e,"H3",{class:!0});var Me=o(g);S=n(Me,"A",{id:!0,class:!0,href:!0});var xt=o(S);se=n(xt,"SPAN",{});var _t=o(se);m(D.$$.fragment,_t),_t.forEach(t),xt.forEach(t),Xe=f(Me),ne=n(Me,"SPAN",{});var wt=o(ne);Ye=_(wt,"1.\u5E94\u8BE5\u6309\u7167\u4EC0\u4E48\u987A\u5E8F\u8BFB\u53D6 Python \u56DE\u6EAF\uFF1F"),wt.forEach(t),Me.forEach(t),ke=f(e),m(L.$$.fragment,e),Pe=f(e),y=n(e,"H3",{class:!0});var Be=o(y);q=n(Be,"A",{id:!0,class:!0,href:!0});var gt=o(q);oe=n(gt,"SPAN",{});var yt=o(oe);m(M.$$.fragment,yt),yt.forEach(t),gt.forEach(t),Ze=f(Be),ie=n(Be,"SPAN",{});var Et=o(ie);et=_(Et,"2.\u4EC0\u4E48\u662F\u6700\u5C0F\u53EF\u518D\u751F\u793A\u4F8B\uFF1F"),Et.forEach(t),Be.forEach(t),de=f(e),m(B.$$.fragment,e),be=f(e),E=n(e,"H3",{class:!0});var Je=o(E);C=n(Je,"A",{id:!0,class:!0,href:!0});var kt=o(C);le=n(kt,"SPAN",{});var Pt=o(le);m(J.$$.fragment,Pt),Pt.forEach(t),kt.forEach(t),tt=f(Je),pe=n(Je,"SPAN",{});var dt=o(pe);rt=_(dt,"3.\u5047\u8BBE\u4F60\u5C1D\u8BD5\u8FD0\u884C\u4EE5\u4E0B\u4EE3\u7801\uFF0C\u5B83\u629B\u51FA\u4E00\u4E2A\u9519\u8BEF:"),dt.forEach(t),Je.forEach(t),Ae=f(e),m(O.$$.fragment,e),Se=f(e),ae=n(e,"P",{});var bt=o(ae);at=_(bt,"\u4EE5\u4E0B\u54EA\u9879\u53EF\u80FD\u662F\u8BBA\u575B\u4E3B\u9898\u6807\u9898\u5BFB\u6C42\u5E2E\u52A9\u7684\u597D\u9009\u62E9?"),bt.forEach(t),qe=f(e),m(Q.$$.fragment,e),Ce=f(e),k=n(e,"H3",{class:!0});var Oe=o(k);T=n(Oe,"A",{id:!0,class:!0,href:!0});var At=o(T);fe=n(At,"SPAN",{});var St=o(fe);m(R.$$.fragment,St),St.forEach(t),At.forEach(t),st=f(Oe),he=n(Oe,"SPAN",{});var qt=o(he);nt=_(qt,"4.\u5047\u8BBE\u60A8\u8BD5\u56FE\u8FD0\u884C \u2018trainer.train ()\u2018\uFF0C\u4F46\u662F\u9047\u5230\u4E86\u4E00\u4E2A\u795E\u79D8\u7684\u9519\u8BEF\uFF0C\u8FD9\u4E2A\u9519\u8BEF\u4E0D\u80FD\u51C6\u786E\u5730\u544A\u8BC9\u60A8\u9519\u8BEF\u6765\u81EA\u54EA\u91CC\u3002\u4E0B\u5217\u54EA\u4E00\u9879\u662F\u60A8\u5E94\u8BE5\u9996\u5148\u5728\u60A8\u7684\u57F9\u8BAD\u7BA1\u9053\u4E2D\u5BFB\u627E\u9519\u8BEF\u7684\u5730\u65B9\uFF1F"),qt.forEach(t),Oe.forEach(t),Te=f(e),m(W.$$.fragment,e),Ge=f(e),P=n(e,"H3",{class:!0});var Qe=o(P);G=n(Qe,"A",{id:!0,class:!0,href:!0});var Ct=o(G);me=n(Ct,"SPAN",{});var Tt=o(me);m(z.$$.fragment,Tt),Tt.forEach(t),Ct.forEach(t),ot=f(Qe),ce=n(Qe,"SPAN",{});var Gt=o(ce);it=_(Gt,"5.\u8C03\u8BD5 CUDA \u9519\u8BEF\u7684\u6700\u597D\u65B9\u6CD5\u662F\u4EC0\u4E48\uFF1F"),Gt.forEach(t),Qe.forEach(t),Ne=f(e),m(K.$$.fragment,e),Ue=f(e),d=n(e,"H3",{class:!0});var Re=o(d);N=n(Re,"A",{id:!0,class:!0,href:!0});var Nt=o(N);ue=n(Nt,"SPAN",{});var Ut=o(ue);m(V.$$.fragment,Ut),Ut.forEach(t),Nt.forEach(t),lt=f(Re),$e=n(Re,"SPAN",{});var Ht=o($e);pt=_(Ht,"6.\u4FEE\u590D GitHub \u4E0A\u7684\u95EE\u9898\u6700\u597D\u7684\u65B9\u6CD5\u662F\u4EC0\u4E48\uFF1F"),Ht.forEach(t),Re.forEach(t),He=f(e),m(X.$$.fragment,e),Fe=f(e),b=n(e,"H3",{class:!0});var We=o(b);U=n(We,"A",{id:!0,class:!0,href:!0});var Ft=o(U);ve=n(Ft,"SPAN",{});var It=o(ve);m(Y.$$.fragment,It),It.forEach(t),Ft.forEach(t),ft=f(We),xe=n(We,"SPAN",{});var jt=o(xe);ht=_(jt,"7.\u4E3A\u4EC0\u4E48\u5BF9\u4E00\u4E2A\u6279\u5904\u7406\u8FDB\u884C\u8FC7\u5EA6\u8C03\u8BD5\u901A\u5E38\u662F\u4E00\u79CD\u597D\u7684\u8C03\u8BD5\u6280\u672F\uFF1F"),jt.forEach(t),We.forEach(t),Ie=f(e),m(Z.$$.fragment,e),je=f(e),A=n(e,"H3",{class:!0});var ze=o(A);H=n(ze,"A",{id:!0,class:!0,href:!0});var Dt=o(H);_e=n(Dt,"SPAN",{});var Lt=o(_e);m(ee.$$.fragment,Lt),Lt.forEach(t),Dt.forEach(t),mt=f(ze),we=n(ze,"SPAN",{});var Mt=o(we);ct=_(Mt,"8.\u4E3A\u4EC0\u4E48\u5728 \u{1F917} Transformers \u5B58\u50A8\u5E93\u4E2D\u521B\u5EFA\u65B0\u95EE\u9898\u65F6\uFF0C\u4F7F\u7528 transformers-cli env \u5305\u542B\u6709\u5173\u8BA1\u7B97\u73AF\u5883\u7684\u8BE6\u7EC6\u4FE1\u606F\u662F\u4E2A\u597D\u4E3B\u610F\uFF1F"),Mt.forEach(t),ze.forEach(t),De=f(e),m(te.$$.fragment,e),this.h()},h(){i(w,"name","hf:doc:metadata"),i(w,"content",JSON.stringify(Vt)),i(j,"id",""),i(S,"id","1.\u5E94\u8BE5\u6309\u7167\u4EC0\u4E48\u987A\u5E8F\u8BFB\u53D6-python-\u56DE\u6EAF\uFF1F"),i(S,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(S,"href","#1.\u5E94\u8BE5\u6309\u7167\u4EC0\u4E48\u987A\u5E8F\u8BFB\u53D6-python-\u56DE\u6EAF\uFF1F"),i(g,"class","relative group"),i(q,"id","2.\u4EC0\u4E48\u662F\u6700\u5C0F\u53EF\u518D\u751F\u793A\u4F8B\uFF1F"),i(q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(q,"href","#2.\u4EC0\u4E48\u662F\u6700\u5C0F\u53EF\u518D\u751F\u793A\u4F8B\uFF1F"),i(y,"class","relative group"),i(C,"id","3.\u5047\u8BBE\u4F60\u5C1D\u8BD5\u8FD0\u884C\u4EE5\u4E0B\u4EE3\u7801\uFF0C\u5B83\u629B\u51FA\u4E00\u4E2A\u9519\u8BEF:"),i(C,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(C,"href","#3.\u5047\u8BBE\u4F60\u5C1D\u8BD5\u8FD0\u884C\u4EE5\u4E0B\u4EE3\u7801\uFF0C\u5B83\u629B\u51FA\u4E00\u4E2A\u9519\u8BEF:"),i(E,"class","relative group"),i(T,"id","4.\u5047\u8BBE\u60A8\u8BD5\u56FE\u8FD0\u884C-\u2018trainer.train-()\u2018\uFF0C\u4F46\u662F\u9047\u5230\u4E86\u4E00\u4E2A\u795E\u79D8\u7684\u9519\u8BEF\uFF0C\u8FD9\u4E2A\u9519\u8BEF\u4E0D\u80FD\u51C6\u786E\u5730\u544A\u8BC9\u60A8\u9519\u8BEF\u6765\u81EA\u54EA\u91CC\u3002\u4E0B\u5217\u54EA\u4E00\u9879\u662F\u60A8\u5E94\u8BE5\u9996\u5148\u5728\u60A8\u7684\u57F9\u8BAD\u7BA1\u9053\u4E2D\u5BFB\u627E\u9519\u8BEF\u7684\u5730\u65B9\uFF1F"),i(T,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(T,"href","#4.\u5047\u8BBE\u60A8\u8BD5\u56FE\u8FD0\u884C-\u2018trainer.train-()\u2018\uFF0C\u4F46\u662F\u9047\u5230\u4E86\u4E00\u4E2A\u795E\u79D8\u7684\u9519\u8BEF\uFF0C\u8FD9\u4E2A\u9519\u8BEF\u4E0D\u80FD\u51C6\u786E\u5730\u544A\u8BC9\u60A8\u9519\u8BEF\u6765\u81EA\u54EA\u91CC\u3002\u4E0B\u5217\u54EA\u4E00\u9879\u662F\u60A8\u5E94\u8BE5\u9996\u5148\u5728\u60A8\u7684\u57F9\u8BAD\u7BA1\u9053\u4E2D\u5BFB\u627E\u9519\u8BEF\u7684\u5730\u65B9\uFF1F"),i(k,"class","relative group"),i(G,"id","5.\u8C03\u8BD5-cuda-\u9519\u8BEF\u7684\u6700\u597D\u65B9\u6CD5\u662F\u4EC0\u4E48\uFF1F"),i(G,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(G,"href","#5.\u8C03\u8BD5-cuda-\u9519\u8BEF\u7684\u6700\u597D\u65B9\u6CD5\u662F\u4EC0\u4E48\uFF1F"),i(P,"class","relative group"),i(N,"id","6.\u4FEE\u590D-github-\u4E0A\u7684\u95EE\u9898\u6700\u597D\u7684\u65B9\u6CD5\u662F\u4EC0\u4E48\uFF1F"),i(N,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(N,"href","#6.\u4FEE\u590D-github-\u4E0A\u7684\u95EE\u9898\u6700\u597D\u7684\u65B9\u6CD5\u662F\u4EC0\u4E48\uFF1F"),i(d,"class","relative group"),i(U,"id","7.\u4E3A\u4EC0\u4E48\u5BF9\u4E00\u4E2A\u6279\u5904\u7406\u8FDB\u884C\u8FC7\u5EA6\u8C03\u8BD5\u901A\u5E38\u662F\u4E00\u79CD\u597D\u7684\u8C03\u8BD5\u6280\u672F\uFF1F"),i(U,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(U,"href","#7.\u4E3A\u4EC0\u4E48\u5BF9\u4E00\u4E2A\u6279\u5904\u7406\u8FDB\u884C\u8FC7\u5EA6\u8C03\u8BD5\u901A\u5E38\u662F\u4E00\u79CD\u597D\u7684\u8C03\u8BD5\u6280\u672F\uFF1F"),i(b,"class","relative group"),i(H,"id","8.\u4E3A\u4EC0\u4E48\u5728-\u{1F917}-transformers-\u5B58\u50A8\u5E93\u4E2D\u521B\u5EFA\u65B0\u95EE\u9898\u65F6\uFF0C\u4F7F\u7528-transformers-cli-env-\u5305\u542B\u6709\u5173\u8BA1\u7B97\u73AF\u5883\u7684\u8BE6\u7EC6\u4FE1\u606F\u662F\u4E2A\u597D\u4E3B\u610F\uFF1F"),i(H,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(H,"href","#8.\u4E3A\u4EC0\u4E48\u5728-\u{1F917}-transformers-\u5B58\u50A8\u5E93\u4E2D\u521B\u5EFA\u65B0\u95EE\u9898\u65F6\uFF0C\u4F7F\u7528-transformers-cli-env-\u5305\u542B\u6709\u5173\u8BA1\u7B97\u73AF\u5883\u7684\u8BE6\u7EC6\u4FE1\u606F\u662F\u4E2A\u597D\u4E3B\u610F\uFF1F"),i(A,"class","relative group")},m(e,a){r(document.head,w),l(e,ge,a),l(e,j,a),r(j,Ke),l(e,ye,a),l(e,re,a),r(re,Ve),l(e,Ee,a),l(e,g,a),r(g,S),r(S,se),c(D,se,null),r(g,Xe),r(g,ne),r(ne,Ye),l(e,ke,a),c(L,e,a),l(e,Pe,a),l(e,y,a),r(y,q),r(q,oe),c(M,oe,null),r(y,Ze),r(y,ie),r(ie,et),l(e,de,a),c(B,e,a),l(e,be,a),l(e,E,a),r(E,C),r(C,le),c(J,le,null),r(E,tt),r(E,pe),r(pe,rt),l(e,Ae,a),c(O,e,a),l(e,Se,a),l(e,ae,a),r(ae,at),l(e,qe,a),c(Q,e,a),l(e,Ce,a),l(e,k,a),r(k,T),r(T,fe),c(R,fe,null),r(k,st),r(k,he),r(he,nt),l(e,Te,a),c(W,e,a),l(e,Ge,a),l(e,P,a),r(P,G),r(G,me),c(z,me,null),r(P,ot),r(P,ce),r(ce,it),l(e,Ne,a),c(K,e,a),l(e,Ue,a),l(e,d,a),r(d,N),r(N,ue),c(V,ue,null),r(d,lt),r(d,$e),r($e,pt),l(e,He,a),c(X,e,a),l(e,Fe,a),l(e,b,a),r(b,U),r(U,ve),c(Y,ve,null),r(b,ft),r(b,xe),r(xe,ht),l(e,Ie,a),c(Z,e,a),l(e,je,a),l(e,A,a),r(A,H),r(H,_e),c(ee,_e,null),r(A,mt),r(A,we),r(we,ct),l(e,De,a),c(te,e,a),Le=!0},p:Rt,i(e){Le||(u(D.$$.fragment,e),u(L.$$.fragment,e),u(M.$$.fragment,e),u(B.$$.fragment,e),u(J.$$.fragment,e),u(O.$$.fragment,e),u(Q.$$.fragment,e),u(R.$$.fragment,e),u(W.$$.fragment,e),u(z.$$.fragment,e),u(K.$$.fragment,e),u(V.$$.fragment,e),u(X.$$.fragment,e),u(Y.$$.fragment,e),u(Z.$$.fragment,e),u(ee.$$.fragment,e),u(te.$$.fragment,e),Le=!0)},o(e){$(D.$$.fragment,e),$(L.$$.fragment,e),$(M.$$.fragment,e),$(B.$$.fragment,e),$(J.$$.fragment,e),$(O.$$.fragment,e),$(Q.$$.fragment,e),$(R.$$.fragment,e),$(W.$$.fragment,e),$(z.$$.fragment,e),$(K.$$.fragment,e),$(V.$$.fragment,e),$(X.$$.fragment,e),$(Y.$$.fragment,e),$(Z.$$.fragment,e),$(ee.$$.fragment,e),$(te.$$.fragment,e),Le=!1},d(e){t(w),e&&t(ge),e&&t(j),e&&t(ye),e&&t(re),e&&t(Ee),e&&t(g),v(D),e&&t(ke),v(L,e),e&&t(Pe),e&&t(y),v(M),e&&t(de),v(B,e),e&&t(be),e&&t(E),v(J),e&&t(Ae),v(O,e),e&&t(Se),e&&t(ae),e&&t(qe),v(Q,e),e&&t(Ce),e&&t(k),v(R),e&&t(Te),v(W,e),e&&t(Ge),e&&t(P),v(z),e&&t(Ne),v(K,e),e&&t(Ue),e&&t(d),v(V),e&&t(He),v(X,e),e&&t(Fe),e&&t(b),v(Y),e&&t(Ie),v(Z,e),e&&t(je),e&&t(A),v(ee),e&&t(De),v(te,e)}}}const Vt={local:"",title:"\u7AE0\u672B\u6D4B\u8BC4"};function Xt(ut){return Wt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class rr extends Bt{constructor(w){super();Jt(this,w,Xt,Kt,Ot,{})}}export{rr as default,Vt as metadata};
