import{S as ml,i as cl,s as ul,e as _,k as c,w as j,t as a,M as _l,c as d,d as l,m as u,x as g,a as $,h as m,b as q,G as i,g as n,y as M,o as h,p as ke,q as y,B as C,v as dl,n as he}from"../../chunks/vendor-hf-doc-builder.js";import{Y as pl}from"../../chunks/Youtube-hf-doc-builder.js";import{I as $l}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as A}from"../../chunks/CodeBlock-hf-doc-builder.js";import{C as al}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import{F as bl}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function kl(k){let r,o;return r=new al({props:{chapter:2,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/zh-CN/chapter2/section3_tf.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/zh-CN/chapter2/section3_tf.ipynb"}]}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function hl(k){let r,o;return r=new al({props:{chapter:2,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/zh-CN/chapter2/section3_pt.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/zh-CN/chapter2/section3_pt.ipynb"}]}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function yl(k){let r,o;return r=new pl({props:{id:"d3JVgghSOew"}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function vl(k){let r,o;return r=new pl({props:{id:"AhChOFRegn4"}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function Bl(k){let r,o,t,p,v;return{c(){r=_("p"),o=a(`\u5728\u672C\u8282\u4E2D\uFF0C\u6211\u4EEC\u5C06\u66F4\u8BE6\u7EC6\u5730\u4E86\u89E3\u5982\u4F55\u521B\u5EFA\u548C\u4F7F\u7528\u6A21\u578B\u3002\u6211\u4EEC\u5C06\u4F7F\u7528
AutoModel\u7C7B\uFF0C\u5F53\u60A8\u5E0C\u671B\u4ECE\u68C0\u67E5\u70B9\u5B9E\u4F8B\u5316\u4EFB\u4F55\u6A21\u578B\u65F6\uFF0C\u8FD9\u975E\u5E38\u65B9\u4FBF\u3002`),t=c(),p=_("p"),v=a("\u8FD9\u4E2AAutoModel\u7C7B\u53CA\u5176\u6240\u6709\u76F8\u5173\u9879\u5B9E\u9645\u4E0A\u662F\u5BF9\u5E93\u4E2D\u5404\u79CD\u53EF\u7528\u6A21\u578B\u7684\u7B80\u5355\u5305\u88C5\u3002\u5B83\u662F\u4E00\u4E2A\u806A\u660E\u7684\u5305\u88C5\u5668\uFF0C\u56E0\u4E3A\u5B83\u53EF\u4EE5\u81EA\u52A8\u731C\u6D4B\u68C0\u67E5\u70B9\u7684\u9002\u5F53\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\uFF0C\u7136\u540E\u7528\u8BE5\u4F53\u7CFB\u7ED3\u6784\u5B9E\u4F8B\u5316\u6A21\u578B\u3002")},l(f){r=d(f,"P",{});var b=$(r);o=m(b,`\u5728\u672C\u8282\u4E2D\uFF0C\u6211\u4EEC\u5C06\u66F4\u8BE6\u7EC6\u5730\u4E86\u89E3\u5982\u4F55\u521B\u5EFA\u548C\u4F7F\u7528\u6A21\u578B\u3002\u6211\u4EEC\u5C06\u4F7F\u7528
AutoModel\u7C7B\uFF0C\u5F53\u60A8\u5E0C\u671B\u4ECE\u68C0\u67E5\u70B9\u5B9E\u4F8B\u5316\u4EFB\u4F55\u6A21\u578B\u65F6\uFF0C\u8FD9\u975E\u5E38\u65B9\u4FBF\u3002`),b.forEach(l),t=u(f),p=d(f,"P",{});var B=$(p);v=m(B,"\u8FD9\u4E2AAutoModel\u7C7B\u53CA\u5176\u6240\u6709\u76F8\u5173\u9879\u5B9E\u9645\u4E0A\u662F\u5BF9\u5E93\u4E2D\u5404\u79CD\u53EF\u7528\u6A21\u578B\u7684\u7B80\u5355\u5305\u88C5\u3002\u5B83\u662F\u4E00\u4E2A\u806A\u660E\u7684\u5305\u88C5\u5668\uFF0C\u56E0\u4E3A\u5B83\u53EF\u4EE5\u81EA\u52A8\u731C\u6D4B\u68C0\u67E5\u70B9\u7684\u9002\u5F53\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\uFF0C\u7136\u540E\u7528\u8BE5\u4F53\u7CFB\u7ED3\u6784\u5B9E\u4F8B\u5316\u6A21\u578B\u3002"),B.forEach(l)},m(f,b){n(f,r,b),i(r,o),n(f,t,b),n(f,p,b),i(p,v)},d(f){f&&l(r),f&&l(t),f&&l(p)}}}function wl(k){let r,o,t,p,v;return{c(){r=_("p"),o=a(`\u5728\u672C\u8282\u4E2D\uFF0C\u6211\u4EEC\u5C06\u66F4\u8BE6\u7EC6\u5730\u4E86\u89E3\u5982\u4F55\u521B\u5EFA\u548C\u4F7F\u7528\u6A21\u578B\u3002\u6211\u4EEC\u5C06\u4F7F\u7528
AutoModel\u7C7B\uFF0C\u5F53\u60A8\u5E0C\u671B\u4ECE\u68C0\u67E5\u70B9\u5B9E\u4F8B\u5316\u4EFB\u4F55\u6A21\u578B\u65F6\uFF0C\u8FD9\u975E\u5E38\u65B9\u4FBF\u3002`),t=c(),p=_("p"),v=a("\u8FD9\u4E2AAutoModel\u7C7B\u53CA\u5176\u6240\u6709\u76F8\u5173\u9879\u5B9E\u9645\u4E0A\u662F\u5BF9\u5E93\u4E2D\u5404\u79CD\u53EF\u7528\u6A21\u578B\u7684\u7B80\u5355\u5305\u88C5\u3002\u5B83\u662F\u4E00\u4E2A\u806A\u660E\u7684\u5305\u88C5\u5668\uFF0C\u56E0\u4E3A\u5B83\u53EF\u4EE5\u81EA\u52A8\u731C\u6D4B\u68C0\u67E5\u70B9\u7684\u9002\u5F53\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\uFF0C\u7136\u540E\u7528\u8BE5\u4F53\u7CFB\u7ED3\u6784\u5B9E\u4F8B\u5316\u6A21\u578B\u3002")},l(f){r=d(f,"P",{});var b=$(r);o=m(b,`\u5728\u672C\u8282\u4E2D\uFF0C\u6211\u4EEC\u5C06\u66F4\u8BE6\u7EC6\u5730\u4E86\u89E3\u5982\u4F55\u521B\u5EFA\u548C\u4F7F\u7528\u6A21\u578B\u3002\u6211\u4EEC\u5C06\u4F7F\u7528
AutoModel\u7C7B\uFF0C\u5F53\u60A8\u5E0C\u671B\u4ECE\u68C0\u67E5\u70B9\u5B9E\u4F8B\u5316\u4EFB\u4F55\u6A21\u578B\u65F6\uFF0C\u8FD9\u975E\u5E38\u65B9\u4FBF\u3002`),b.forEach(l),t=u(f),p=d(f,"P",{});var B=$(p);v=m(B,"\u8FD9\u4E2AAutoModel\u7C7B\u53CA\u5176\u6240\u6709\u76F8\u5173\u9879\u5B9E\u9645\u4E0A\u662F\u5BF9\u5E93\u4E2D\u5404\u79CD\u53EF\u7528\u6A21\u578B\u7684\u7B80\u5355\u5305\u88C5\u3002\u5B83\u662F\u4E00\u4E2A\u806A\u660E\u7684\u5305\u88C5\u5668\uFF0C\u56E0\u4E3A\u5B83\u53EF\u4EE5\u81EA\u52A8\u731C\u6D4B\u68C0\u67E5\u70B9\u7684\u9002\u5F53\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\uFF0C\u7136\u540E\u7528\u8BE5\u4F53\u7CFB\u7ED3\u6784\u5B9E\u4F8B\u5316\u6A21\u578B\u3002"),B.forEach(l)},m(f,b){n(f,r,b),i(r,o),n(f,t,b),n(f,p,b),i(p,v)},d(f){f&&l(r),f&&l(t),f&&l(p)}}}function El(k){let r,o;return r=new A({props:{code:`from transformers import BertConfig, TFBertModel

# Building the config
config = BertConfig()

# Building the model from the config
model = TFBertModel(config)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, TFBertModel

<span class="hljs-comment"># Building the config</span>
config = BertConfig()

<span class="hljs-comment"># Building the model from the config</span>
model = TFBertModel(config)`}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function jl(k){let r,o;return r=new A({props:{code:`from transformers import BertConfig, BertModel

# Building the config
config = BertConfig()

# Building the model from the config
model = BertModel(config)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, BertModel

<span class="hljs-comment"># Building the config</span>
config = BertConfig()

<span class="hljs-comment"># Building the model from the config</span>
model = BertModel(config)`}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function gl(k){let r,o;return r=new A({props:{code:`from transformers import BertConfig, TFBertModel

config = BertConfig()
model = TFBertModel(config)

# Model is randomly initialized!`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, TFBertModel

config = BertConfig()
model = TFBertModel(config)

<span class="hljs-comment"># Model is randomly initialized!</span>`}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function Ml(k){let r,o;return r=new A({props:{code:`from transformers import BertConfig, BertModel

config = BertConfig()
model = BertModel(config)

# Model is randomly initialized!`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, BertModel

config = BertConfig()
model = BertModel(config)

<span class="hljs-comment"># Model is randomly initialized!</span>`}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function Cl(k){let r,o,t,p,v;return r=new A({props:{code:`from transformers import TFBertModel

model = TFBertModel.from_pretrained("bert-base-cased")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFBertModel

model = TFBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)`}}),{c(){j(r.$$.fragment),o=c(),t=_("p"),p=a("\u6B63\u5982\u60A8\u4E4B\u524D\u770B\u5230\u7684\uFF0C\u6211\u4EEC\u53EF\u4EE5\u7528\u7B49\u6548\u7684AutoModel\u7C7B\u66FF\u6362Bert\u6A21\u578B\u3002\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0C\u6211\u4EEC\u5C06\u8FD9\u6837\u505A\uFF0C\u56E0\u4E3A\u8FD9\u4F1A\u4EA7\u751F\u68C0\u67E5\u70B9\u4E0D\u53EF\u77E5\u7684\u4EE3\u7801\uFF1B\u5982\u679C\u60A8\u7684\u4EE3\u7801\u9002\u7528\u4E8E\u4E00\u4E2A\u68C0\u67E5\u70B9\uFF0C\u90A3\u4E48\u5B83\u5E94\u8BE5\u4E0E\u53E6\u4E00\u4E2A\u68C0\u67E5\u70B9\u65E0\u7F1D\u5730\u5DE5\u4F5C\u3002\u5373\u4F7F\u4F53\u7CFB\u7ED3\u6784\u4E0D\u540C\uFF0C\u8FD9\u4E5F\u9002\u7528\uFF0C\u53EA\u8981\u68C0\u67E5\u70B9\u662F\u9488\u5BF9\u7C7B\u4F3C\u4EFB\u52A1\uFF08\u4F8B\u5982\uFF0C\u60C5\u7EEA\u5206\u6790\u4EFB\u52A1\uFF09\u8BAD\u7EC3\u7684\u3002")},l(f){g(r.$$.fragment,f),o=u(f),t=d(f,"P",{});var b=$(t);p=m(b,"\u6B63\u5982\u60A8\u4E4B\u524D\u770B\u5230\u7684\uFF0C\u6211\u4EEC\u53EF\u4EE5\u7528\u7B49\u6548\u7684AutoModel\u7C7B\u66FF\u6362Bert\u6A21\u578B\u3002\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0C\u6211\u4EEC\u5C06\u8FD9\u6837\u505A\uFF0C\u56E0\u4E3A\u8FD9\u4F1A\u4EA7\u751F\u68C0\u67E5\u70B9\u4E0D\u53EF\u77E5\u7684\u4EE3\u7801\uFF1B\u5982\u679C\u60A8\u7684\u4EE3\u7801\u9002\u7528\u4E8E\u4E00\u4E2A\u68C0\u67E5\u70B9\uFF0C\u90A3\u4E48\u5B83\u5E94\u8BE5\u4E0E\u53E6\u4E00\u4E2A\u68C0\u67E5\u70B9\u65E0\u7F1D\u5730\u5DE5\u4F5C\u3002\u5373\u4F7F\u4F53\u7CFB\u7ED3\u6784\u4E0D\u540C\uFF0C\u8FD9\u4E5F\u9002\u7528\uFF0C\u53EA\u8981\u68C0\u67E5\u70B9\u662F\u9488\u5BF9\u7C7B\u4F3C\u4EFB\u52A1\uFF08\u4F8B\u5982\uFF0C\u60C5\u7EEA\u5206\u6790\u4EFB\u52A1\uFF09\u8BAD\u7EC3\u7684\u3002"),b.forEach(l)},m(f,b){M(r,f,b),n(f,o,b),n(f,t,b),i(t,p),v=!0},i(f){v||(y(r.$$.fragment,f),v=!0)},o(f){h(r.$$.fragment,f),v=!1},d(f){C(r,f),f&&l(o),f&&l(t)}}}function Tl(k){let r,o,t,p,v;return r=new A({props:{code:`from transformers import BertModel

model = BertModel.from_pretrained("bert-base-cased")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertModel

model = BertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)`}}),{c(){j(r.$$.fragment),o=c(),t=_("p"),p=a("\u6B63\u5982\u60A8\u4E4B\u524D\u770B\u5230\u7684\uFF0C\u6211\u4EEC\u53EF\u4EE5\u7528\u7B49\u6548\u7684AutoModel\u7C7B\u66FF\u6362Bert\u6A21\u578B\u3002\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0C\u6211\u4EEC\u5C06\u8FD9\u6837\u505A\uFF0C\u56E0\u4E3A\u8FD9\u4F1A\u4EA7\u751F\u68C0\u67E5\u70B9\u4E0D\u53EF\u77E5\u7684\u4EE3\u7801\uFF1B\u5982\u679C\u60A8\u7684\u4EE3\u7801\u9002\u7528\u4E8E\u4E00\u4E2A\u68C0\u67E5\u70B9\uFF0C\u90A3\u4E48\u5B83\u5E94\u8BE5\u4E0E\u53E6\u4E00\u4E2A\u68C0\u67E5\u70B9\u65E0\u7F1D\u5730\u5DE5\u4F5C\u3002\u5373\u4F7F\u4F53\u7CFB\u7ED3\u6784\u4E0D\u540C\uFF0C\u8FD9\u4E5F\u9002\u7528\uFF0C\u53EA\u8981\u68C0\u67E5\u70B9\u662F\u9488\u5BF9\u7C7B\u4F3C\u4EFB\u52A1\uFF08\u4F8B\u5982\uFF0C\u60C5\u7EEA\u5206\u6790\u4EFB\u52A1\uFF09\u8BAD\u7EC3\u7684\u3002")},l(f){g(r.$$.fragment,f),o=u(f),t=d(f,"P",{});var b=$(t);p=m(b,"\u6B63\u5982\u60A8\u4E4B\u524D\u770B\u5230\u7684\uFF0C\u6211\u4EEC\u53EF\u4EE5\u7528\u7B49\u6548\u7684AutoModel\u7C7B\u66FF\u6362Bert\u6A21\u578B\u3002\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0C\u6211\u4EEC\u5C06\u8FD9\u6837\u505A\uFF0C\u56E0\u4E3A\u8FD9\u4F1A\u4EA7\u751F\u68C0\u67E5\u70B9\u4E0D\u53EF\u77E5\u7684\u4EE3\u7801\uFF1B\u5982\u679C\u60A8\u7684\u4EE3\u7801\u9002\u7528\u4E8E\u4E00\u4E2A\u68C0\u67E5\u70B9\uFF0C\u90A3\u4E48\u5B83\u5E94\u8BE5\u4E0E\u53E6\u4E00\u4E2A\u68C0\u67E5\u70B9\u65E0\u7F1D\u5730\u5DE5\u4F5C\u3002\u5373\u4F7F\u4F53\u7CFB\u7ED3\u6784\u4E0D\u540C\uFF0C\u8FD9\u4E5F\u9002\u7528\uFF0C\u53EA\u8981\u68C0\u67E5\u70B9\u662F\u9488\u5BF9\u7C7B\u4F3C\u4EFB\u52A1\uFF08\u4F8B\u5982\uFF0C\u60C5\u7EEA\u5206\u6790\u4EFB\u52A1\uFF09\u8BAD\u7EC3\u7684\u3002"),b.forEach(l)},m(f,b){M(r,f,b),n(f,o,b),n(f,t,b),i(t,p),v=!0},i(f){v||(y(r.$$.fragment,f),v=!0)},o(f){h(r.$$.fragment,f),v=!1},d(f){C(r,f),f&&l(o),f&&l(t)}}}function Pl(k){let r,o;return r=new A({props:{code:`ls directory_on_my_computer

config.json tf_model.h5`,highlighted:`ls <span class="hljs-keyword">directory_on_my_computer
</span>
<span class="hljs-built_in">config</span>.<span class="hljs-keyword">json </span>tf_model.h5`}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function ql(k){let r,o;return r=new A({props:{code:`ls directory_on_my_computer

config.json pytorch_model.bin`,highlighted:`ls <span class="hljs-keyword">directory_on_my_computer
</span>
<span class="hljs-built_in">config</span>.<span class="hljs-keyword">json </span>pytorch_model.<span class="hljs-keyword">bin</span>`}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function Al(k){let r,o,t,p,v,f,b,B;return{c(){r=_("p"),o=a("\u8FD9\u4E2A "),t=_("em"),p=a("pytorch_model.bin"),v=a(" \u6587\u4EF6\u5C31\u662F\u4F17\u6240\u5468\u77E5\u7684"),f=_("em"),b=a("state dictionary"),B=a("; \u5B83\u5305\u542B\u6A21\u578B\u7684\u6240\u6709\u6743\u91CD\u3002\u8FD9\u4E24\u4E2A\u6587\u4EF6\u9F50\u5934\u5E76\u8FDB\uFF1B\u914D\u7F6E\u662F\u4E86\u89E3\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\u6240\u5FC5\u9700\u7684\uFF0C\u800C\u6A21\u578B\u6743\u91CD\u662F\u6A21\u578B\u7684\u53C2\u6570\u3002")},l(E){r=d(E,"P",{});var w=$(r);o=m(w,"\u8FD9\u4E2A "),t=d(w,"EM",{});var T=$(t);p=m(T,"pytorch_model.bin"),T.forEach(l),v=m(w," \u6587\u4EF6\u5C31\u662F\u4F17\u6240\u5468\u77E5\u7684"),f=d(w,"EM",{});var P=$(f);b=m(P,"state dictionary"),P.forEach(l),B=m(w,"; \u5B83\u5305\u542B\u6A21\u578B\u7684\u6240\u6709\u6743\u91CD\u3002\u8FD9\u4E24\u4E2A\u6587\u4EF6\u9F50\u5934\u5E76\u8FDB\uFF1B\u914D\u7F6E\u662F\u4E86\u89E3\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\u6240\u5FC5\u9700\u7684\uFF0C\u800C\u6A21\u578B\u6743\u91CD\u662F\u6A21\u578B\u7684\u53C2\u6570\u3002"),w.forEach(l)},m(E,w){n(E,r,w),i(r,o),i(r,t),i(t,p),i(r,v),i(r,f),i(f,b),i(r,B)},d(E){E&&l(r)}}}function Nl(k){let r,o,t,p,v,f,b,B;return{c(){r=_("p"),o=a("\u8FD9\u4E2A "),t=_("em"),p=a("pytorch_model.bin"),v=a(" \u6587\u4EF6\u5C31\u662F\u4F17\u6240\u5468\u77E5\u7684"),f=_("em"),b=a("state dictionary"),B=a("; \u5B83\u5305\u542B\u6A21\u578B\u7684\u6240\u6709\u6743\u91CD\u3002\u8FD9\u4E24\u4E2A\u6587\u4EF6\u9F50\u5934\u5E76\u8FDB\uFF1B\u914D\u7F6E\u662F\u4E86\u89E3\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\u6240\u5FC5\u9700\u7684\uFF0C\u800C\u6A21\u578B\u6743\u91CD\u662F\u6A21\u578B\u7684\u53C2\u6570\u3002")},l(E){r=d(E,"P",{});var w=$(r);o=m(w,"\u8FD9\u4E2A "),t=d(w,"EM",{});var T=$(t);p=m(T,"pytorch_model.bin"),T.forEach(l),v=m(w," \u6587\u4EF6\u5C31\u662F\u4F17\u6240\u5468\u77E5\u7684"),f=d(w,"EM",{});var P=$(f);b=m(P,"state dictionary"),P.forEach(l),B=m(w,"; \u5B83\u5305\u542B\u6A21\u578B\u7684\u6240\u6709\u6743\u91CD\u3002\u8FD9\u4E24\u4E2A\u6587\u4EF6\u9F50\u5934\u5E76\u8FDB\uFF1B\u914D\u7F6E\u662F\u4E86\u89E3\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\u6240\u5FC5\u9700\u7684\uFF0C\u800C\u6A21\u578B\u6743\u91CD\u662F\u6A21\u578B\u7684\u53C2\u6570\u3002"),w.forEach(l)},m(E,w){n(E,r,w),i(r,o),i(r,t),i(t,p),i(r,v),i(r,f),i(f,b),i(r,B)},d(E){E&&l(r)}}}function Fl(k){let r,o;return r=new A({props:{code:`import tensorflow as tf

model_inputs = tf.constant(encoded_sequences)`,highlighted:`<span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

model_inputs = tf.constant(encoded_sequences)`}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function zl(k){let r,o;return r=new A({props:{code:`import torch

model_inputs = torch.tensor(encoded_sequences)`,highlighted:`<span class="hljs-keyword">import</span> torch

model_inputs = torch.tensor(encoded_sequences)`}}),{c(){j(r.$$.fragment)},l(t){g(r.$$.fragment,t)},m(t,p){M(r,t,p),o=!0},i(t){o||(y(r.$$.fragment,t),o=!0)},o(t){h(r.$$.fragment,t),o=!1},d(t){C(r,t)}}}function Hl(k){let r,o,t,p,v,f,b,B,E,w,T,P,ye,ve,Be,Dt,lt,X,Gt,st,we,Jt,ot,N,F,Ee,je,Lt,nt,Z,ft,ee,it,Y,Yt,Ze,Ut,Vt,pt,te,Kt,at,ge,Qt,mt,z,H,Me,U,Wt,Ce,Xt,Zt,ct,Te,er,ut,R,S,Pe,qe,tr,_t,V,rr,re,lr,sr,dt,Ae,or,$t,Ne,nr,bt,K,fr,le,ir,pr,kt,se,ar,ht,Fe,mr,yt,oe,vt,ze,cr,Bt,I,O,He,Re,ur,wt,Se,G,Q,et,ne,_r,tt,dr,Et,Ie,$r,jt,Oe,br,gt,xe,kr,Mt,fe,Ct,De,hr,Tt,ie,Pt,Ge,yr,qt,x,D,Je,pe,vr,At,Le,Br,Nt,ae,Ft,Ye,wr,zt;t=new bl({props:{fw:k[0]}});const Er=[hl,kl],me=[];function jr(e,s){return e[0]==="pt"?0:1}B=jr(k),E=me[B]=Er[B](k);const gr=[vl,yl],ce=[];function Mr(e,s){return e[0]==="pt"?0:1}T=Mr(k),P=ce[T]=gr[T](k);function Cr(e,s){return e[0]==="pt"?wl:Bl}let Ht=Cr(k),J=Ht(k);const Tr=[jl,El],ue=[];function Pr(e,s){return e[0]==="pt"?0:1}N=Pr(k),F=ue[N]=Tr[N](k),Z=new A({props:{code:"print(config)",highlighted:'<span class="hljs-built_in">print</span>(config)'}}),ee=new A({props:{code:`BertConfig {
  [...]
  "hidden_size": 768,
  "intermediate_size": 3072,
  "max_position_embeddings": 512,
  "num_attention_heads": 12,
  "num_hidden_layers": 12,
  [...]
}`,highlighted:`BertConfig {
  [...]
  <span class="hljs-string">&quot;hidden_size&quot;</span>: <span class="hljs-number">768</span>,
  <span class="hljs-string">&quot;intermediate_size&quot;</span>: <span class="hljs-number">3072</span>,
  <span class="hljs-string">&quot;max_position_embeddings&quot;</span>: <span class="hljs-number">512</span>,
  <span class="hljs-string">&quot;num_attention_heads&quot;</span>: <span class="hljs-number">12</span>,
  <span class="hljs-string">&quot;num_hidden_layers&quot;</span>: <span class="hljs-number">12</span>,
  [...]
}`}});const qr=[Ml,gl],_e=[];function Ar(e,s){return e[0]==="pt"?0:1}z=Ar(k),H=_e[z]=qr[z](k);const Nr=[Tl,Cl],de=[];function Fr(e,s){return e[0]==="pt"?0:1}R=Fr(k),S=de[R]=Nr[R](k),oe=new A({props:{code:'model.save_pretrained("directory_on_my_computer")',highlighted:'model.save_pretrained(<span class="hljs-string">&quot;directory_on_my_computer&quot;</span>)'}});const zr=[ql,Pl],$e=[];function Hr(e,s){return e[0]==="pt"?0:1}I=Hr(k),O=$e[I]=zr[I](k);function Rr(e,s){return e[0]==="pt"?Nl:Al}let Rt=Rr(k),L=Rt(k);ne=new $l({}),fe=new A({props:{code:'sequences = ["Hello!", "Cool.", "Nice!"]',highlighted:'sequences = [<span class="hljs-string">&quot;Hello!&quot;</span>, <span class="hljs-string">&quot;Cool.&quot;</span>, <span class="hljs-string">&quot;Nice!&quot;</span>]'}}),ie=new A({props:{code:`encoded_sequences = [
    [101, 7592, 999, 102],
    [101, 4658, 1012, 102],
    [101, 3835, 999, 102],
]`,highlighted:`encoded_sequences = [
    [<span class="hljs-number">101</span>, <span class="hljs-number">7592</span>, <span class="hljs-number">999</span>, <span class="hljs-number">102</span>],
    [<span class="hljs-number">101</span>, <span class="hljs-number">4658</span>, <span class="hljs-number">1012</span>, <span class="hljs-number">102</span>],
    [<span class="hljs-number">101</span>, <span class="hljs-number">3835</span>, <span class="hljs-number">999</span>, <span class="hljs-number">102</span>],
]`}});const Sr=[zl,Fl],be=[];function Ir(e,s){return e[0]==="pt"?0:1}return x=Ir(k),D=be[x]=Sr[x](k),ae=new A({props:{code:"output = model(model_inputs)",highlighted:"output = model(model_inputs)"}}),{c(){r=_("meta"),o=c(),j(t.$$.fragment),p=c(),v=_("h1"),f=a("\u6A21\u578B"),b=c(),E.c(),w=c(),P.c(),ye=c(),J.c(),ve=c(),Be=_("p"),Dt=a("\u4F46\u662F\uFF0C\u5982\u679C\u60A8\u77E5\u9053\u8981\u4F7F\u7528\u7684\u6A21\u578B\u7C7B\u578B\uFF0C\u5219\u53EF\u4EE5\u4F7F\u7528\u76F4\u63A5\u5B9A\u4E49\u5176\u4F53\u7CFB\u7ED3\u6784\u7684\u7C7B\u3002\u8BA9\u6211\u4EEC\u770B\u770B\u8FD9\u662F\u5982\u4F55\u4E0EBERT\u6A21\u578B\u4E00\u8D77\u5DE5\u4F5C\u7684\u3002"),lt=c(),X=_("h2"),Gt=a("\u521B\u5EFA\u8F6C\u6362\u5668"),st=c(),we=_("p"),Jt=a("\u521D\u59CB\u5316BERT\u6A21\u578B\u9700\u8981\u505A\u7684\u7B2C\u4E00\u4EF6\u4E8B\u662F\u52A0\u8F7D\u914D\u7F6E\u5BF9\u8C61\uFF1A"),ot=c(),F.c(),Ee=c(),je=_("p"),Lt=a("\u914D\u7F6E\u5305\u542B\u8BB8\u591A\u7528\u4E8E\u6784\u5EFA\u6A21\u578B\u7684\u5C5E\u6027\uFF1A"),nt=c(),j(Z.$$.fragment),ft=c(),j(ee.$$.fragment),it=c(),Y=_("p"),Yt=a("\u867D\u7136\u60A8\u8FD8\u6CA1\u6709\u770B\u5230\u6240\u6709\u8FD9\u4E9B\u5C5E\u6027\u90FD\u505A\u4E86\u4EC0\u4E48\uFF0C\u4F46\u60A8\u5E94\u8BE5\u8BA4\u8BC6\u5230\u5176\u4E2D\u7684\u4E00\u4E9B\u5C5E\u6027\uFF1Ahidden"),Ze=_("em"),Ut=a("size\u5C5E\u6027\u5B9A\u4E49\u4E86hidden"),Vt=a("\u72B6\u6001\u5411\u91CF\u7684\u5927\u5C0F\uFF0Cnum_hidden_layers\u5B9A\u4E49\u4E86Transformer\u6A21\u578B\u7684\u5C42\u6570\u3002"),pt=c(),te=_("h3"),Kt=a("\u4E0D\u540C\u7684\u52A0\u8F7D\u65B9\u5F0F"),at=c(),ge=_("p"),Qt=a("\u4ECE\u9ED8\u8BA4\u914D\u7F6E\u521B\u5EFA\u6A21\u578B\u4F1A\u4F7F\u7528\u968F\u673A\u503C\u5BF9\u5176\u8FDB\u884C\u521D\u59CB\u5316\uFF1A"),mt=c(),H.c(),Me=c(),U=_("p"),Wt=a(`\u8BE5\u6A21\u578B\u53EF\u4EE5\u5728\u8FD9\u79CD\u72B6\u6001\u4E0B\u4F7F\u7528\uFF0C\u4F46\u4F1A\u8F93\u51FA\u80E1\u8A00\u4E71\u8BED\uFF1B\u9996\u5148\u9700\u8981\u5BF9\u5176\u8FDB\u884C\u8BAD\u7EC3\u3002\u6211\u4EEC\u53EF\u4EE5\u6839\u636E\u624B\u5934\u7684\u4EFB\u52A1\u4ECE\u5934\u5F00\u59CB\u8BAD\u7EC3\u6A21\u578B\uFF0C\u4F46\u6B63\u5982\u60A8\u5728
`),Ce=_("a"),Xt=a("Chapter 1"),Zt=a(`
\uFF0C\u8FD9\u5C06\u9700\u8981\u5F88\u957F\u7684\u65F6\u95F4\u548C\u5927\u91CF\u7684\u6570\u636E\uFF0C\u5E76\u5C06\u4EA7\u751F\u4E0D\u53EF\u5FFD\u89C6\u7684\u73AF\u5883\u5F71\u54CD\u3002\u4E3A\u4E86\u907F\u514D\u4E0D\u5FC5\u8981\u7684\u91CD\u590D\u5DE5\u4F5C\uFF0C\u5FC5\u987B\u80FD\u591F\u5171\u4EAB\u548C\u91CD\u7528\u5DF2\u7ECF\u8BAD\u7EC3\u8FC7\u7684\u6A21\u578B\u3002`),ct=c(),Te=_("p"),er=a(`\u52A0\u8F7D\u5DF2\u7ECF\u8BAD\u7EC3\u8FC7\u7684Transformers\u6A21\u578B\u5F88\u7B80\u5355-\u6211\u4EEC\u53EF\u4EE5\u4F7F\u7528from_pretrained()
\u65B9\u6CD5\uFF1A`),ut=c(),S.c(),Pe=c(),qe=_("p"),tr=a("\u5728\u4E0A\u9762\u7684\u4EE3\u7801\u793A\u4F8B\u4E2D\uFF0C\u6211\u4EEC\u6CA1\u6709\u4F7F\u7528BertConfig"),_t=c(),V=_("p"),rr=a(`\uFF0C\u800C\u662F\u901A\u8FC7Bert base cased\u6807\u8BC6\u7B26\u52A0\u8F7D\u4E86\u4E00\u4E2A\u9884\u8BAD\u7EC3\u6A21\u578B\u3002\u8FD9\u662F\u4E00\u4E2A\u6A21\u578B\u68C0\u67E5\u70B9\uFF0C\u7531BERT\u7684\u4F5C\u8005\u81EA\u5DF1\u8BAD\u7EC3\uFF1B\u60A8\u53EF\u4EE5\u5728
`),re=_("a"),lr=a("model card"),sr=a("\u4E2D\u627E\u5230\u66F4\u591A\u7EC6\u8282."),dt=c(),Ae=_("p"),or=a("\u8BE5\u6A21\u578B\u73B0\u5728\u4F7F\u7528\u68C0\u67E5\u70B9\u7684\u6240\u6709\u6743\u91CD\u8FDB\u884C\u521D\u59CB\u5316\u3002\u5B83\u53EF\u4EE5\u76F4\u63A5\u7528\u4E8E\u5BF9\u8BAD\u7EC3\u8FC7\u7684\u4EFB\u52A1\u8FDB\u884C\u63A8\u7406\uFF0C\u4E5F\u53EF\u4EE5\u5BF9\u65B0\u4EFB\u52A1\u8FDB\u884C\u5FAE\u8C03\u3002\u901A\u8FC7\u9884\u5148\u8BAD\u7EC3\u91CD\u91CF\u800C\u4E0D\u662F\u4ECE\u5934\u5F00\u59CB\u7684\u8BAD\u7EC3\uFF0C\u6211\u4EEC\u53EF\u4EE5\u5F88\u5FEB\u53D6\u5F97\u597D\u7684\u6548\u679C\u3002"),$t=c(),Ne=_("p"),nr=a(`\u6743\u91CD\u5DF2\u4E0B\u8F7D\u5E76\u7F13\u5B58\u5728\u7F13\u5B58\u6587\u4EF6\u5939\u4E2D\uFF08\u56E0\u6B64\u5C06\u6765\u5BF9from_pretrained()\u65B9\u6CD5\u7684\u8C03\u7528\u5C06\u4E0D\u4F1A\u91CD\u65B0\u4E0B\u8F7D\u5B83\u4EEC\uFF09\u9ED8\u8BA4\u4E3A
~/.cache/huggingface/transformers
. \u60A8\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E
HF_HOME
\u73AF\u5883\u53D8\u91CF\u6765\u81EA\u5B9A\u4E49\u7F13\u5B58\u6587\u4EF6\u5939\u3002`),bt=c(),K=_("p"),fr=a(`\u7528\u4E8E\u52A0\u8F7D\u6A21\u578B\u7684\u6807\u8BC6\u7B26\u53EF\u4EE5\u662F\u6A21\u578B\u4E2D\u5FC3Hub\u4E0A\u4EFB\u4F55\u6A21\u578B\u7684\u6807\u8BC6\u7B26\uFF0C\u53EA\u8981\u5B83\u4E0EBERT\u4F53\u7CFB\u7ED3\u6784\u517C\u5BB9\u3002\u53EF\u4EE5\u627E\u5230\u53EF\u7528\u7684BERT\u68C0\u67E5\u70B9\u7684\u5B8C\u6574\u5217\u8868
`),le=_("a"),ir=a("here"),pr=a(`
.`),kt=c(),se=_("h3"),ar=a("\u4FDD\u5B58\u6A21\u578B"),ht=c(),Fe=_("p"),mr=a(`\u4FDD\u5B58\u6A21\u578B\u548C\u52A0\u8F7D\u6A21\u578B\u4E00\u6837\u7B80\u5355\u2014\u6211\u4EEC\u4F7F\u7528
save_pretrained()
\u65B9\u6CD5\uFF0C\u7C7B\u4F3C\u4E8E
from_pretrained()
\u65B9\u6CD5\uFF1A`),yt=c(),j(oe.$$.fragment),vt=c(),ze=_("p"),cr=a("\u8FD9\u4F1A\u5C06\u4E24\u4E2A\u6587\u4EF6\u4FDD\u5B58\u5230\u78C1\u76D8\uFF1A"),Bt=c(),O.c(),He=c(),Re=_("p"),ur=a(`\u5982\u679C\u4F60\u770B\u4E00\u4E0B
config.json
\u6587\u4EF6\uFF0C\u60A8\u5C06\u8BC6\u522B\u6784\u5EFA\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\u6240\u9700\u7684\u5C5E\u6027\u3002\u8BE5\u6587\u4EF6\u8FD8\u5305\u542B\u4E00\u4E9B\u5143\u6570\u636E\uFF0C\u4F8B\u5982\u68C0\u67E5\u70B9\u7684\u6765\u6E90\u4EE5\u53CA\u4E0A\u6B21\u4FDD\u5B58\u68C0\u67E5\u70B9\u65F6\u4F7F\u7528\u7684\u{1F917} Transformers\u7248\u672C\u3002`),wt=c(),L.c(),Se=c(),G=_("h3"),Q=_("a"),et=_("span"),j(ne.$$.fragment),_r=c(),tt=_("span"),dr=a("\u4F7F\u7528Transformers\u6A21\u578B\u8FDB\u884C\u63A8\u7406"),Et=c(),Ie=_("p"),$r=a("\u65E2\u7136\u60A8\u77E5\u9053\u4E86\u5982\u4F55\u52A0\u8F7D\u548C\u4FDD\u5B58\u6A21\u578B\uFF0C\u90A3\u4E48\u8BA9\u6211\u4EEC\u5C1D\u8BD5\u4F7F\u7528\u5B83\u8FDB\u884C\u4E00\u4E9B\u9884\u6D4B\u3002Transformer\u6A21\u578B\u53EA\u80FD\u5904\u7406\u6570\u5B57\u2014\u2014\u5206\u8BCD\u5668\u751F\u6210\u7684\u6570\u5B57\u3002\u4F46\u5728\u6211\u4EEC\u8BA8\u8BBA\u6807\u8BB0\u5316\u5668\u4E4B\u524D\uFF0C\u8BA9\u6211\u4EEC\u5148\u63A2\u8BA8\u6A21\u578B\u63A5\u53D7\u54EA\u4E9B\u8F93\u5165\u3002"),jt=c(),Oe=_("p"),br=a("\u6807\u8BB0\u5316\u5668\u53EF\u4EE5\u5C06\u8F93\u5165\u8F6C\u6362\u4E3A\u9002\u5F53\u7684\u6846\u67B6\u5F20\u91CF\uFF0C\u4F46\u4E3A\u4E86\u5E2E\u52A9\u60A8\u4E86\u89E3\u53D1\u751F\u4E86\u4EC0\u4E48\uFF0C\u6211\u4EEC\u5C06\u5FEB\u901F\u4E86\u89E3\u5728\u5C06\u8F93\u5165\u53D1\u9001\u5230\u6A21\u578B\u4E4B\u524D\u5FC5\u987B\u505A\u4EC0\u4E48\u3002"),gt=c(),xe=_("p"),kr=a("\u5047\u8BBE\u6211\u4EEC\u6709\u51E0\u4E2A\u5E8F\u5217\uFF1A"),Mt=c(),j(fe.$$.fragment),Ct=c(),De=_("p"),hr=a(`\u5206\u8BCD\u5668\u5C06\u8FD9\u4E9B\u8F6C\u6362\u4E3A\u8BCD\u6C47\u8868\u7D22\u5F15\uFF0C\u901A\u5E38\u79F0\u4E3A
input IDs
. \u6BCF\u4E2A\u5E8F\u5217\u73B0\u5728\u90FD\u662F\u4E00\u4E2A\u6570\u5B57\u5217\u8868\uFF01\u7ED3\u679C\u662F\uFF1A`),Tt=c(),j(ie.$$.fragment),Pt=c(),Ge=_("p"),yr=a("\u8FD9\u662F\u4E00\u4E2A\u7F16\u7801\u5E8F\u5217\u5217\u8868\uFF1A\u4E00\u4E2A\u5217\u8868\u5217\u8868\u3002\u5F20\u91CF\u53EA\u63A5\u53D7\u77E9\u5F62\uFF08\u60F3\u60F3\u77E9\u9635\uFF09\u3002\u6B64\u201C\u6570\u7EC4\u201D\u5DF2\u4E3A\u77E9\u5F62\uFF0C\u56E0\u6B64\u5C06\u5176\u8F6C\u6362\u4E3A\u5F20\u91CF\u5F88\u5BB9\u6613\uFF1A"),qt=c(),D.c(),Je=c(),pe=_("h3"),vr=a("\u4F7F\u7528\u5F20\u91CF\u4F5C\u4E3A\u6A21\u578B\u7684\u8F93\u5165"),At=c(),Le=_("p"),Br=a("\u5728\u6A21\u578B\u4E2D\u4F7F\u7528\u5F20\u91CF\u975E\u5E38\u7B80\u5355-\u6211\u4EEC\u53EA\u9700\u5C06\u8F93\u5165\u79F0\u4E3A\u6A21\u578B\uFF1A"),Nt=c(),j(ae.$$.fragment),Ft=c(),Ye=_("p"),wr=a(`\u867D\u7136\u6A21\u578B\u63A5\u53D7\u8BB8\u591A\u4E0D\u540C\u7684\u53C2\u6570\uFF0C\u4F46\u53EA\u9700\u8981
input IDs\u3002\u6211\u4EEC\u7A0D\u540E\u5C06\u89E3\u91CA\u5176\u4ED6\u53C2\u6570\u7684\u4F5C\u7528\u4EE5\u53CA\u4F55\u65F6\u9700\u8981\u5B83\u4EEC\uFF0C\u4F46\u9996\u5148\u6211\u4EEC\u9700\u8981\u66F4\u4ED4\u7EC6\u5730\u4E86\u89E3
Transformer\u6A21\u578B\u53EF\u4EE5\u7406\u89E3\u7684\u8F93\u5165\u7684\u6807\u8BB0`),this.h()},l(e){const s=_l('[data-svelte="svelte-1phssyn"]',document.head);r=d(s,"META",{name:!0,content:!0}),s.forEach(l),o=u(e),g(t.$$.fragment,e),p=u(e),v=d(e,"H1",{id:!0});var rt=$(v);f=m(rt,"\u6A21\u578B"),rt.forEach(l),b=u(e),E.l(e),w=u(e),P.l(e),ye=u(e),J.l(e),ve=u(e),Be=d(e,"P",{});var Ue=$(Be);Dt=m(Ue,"\u4F46\u662F\uFF0C\u5982\u679C\u60A8\u77E5\u9053\u8981\u4F7F\u7528\u7684\u6A21\u578B\u7C7B\u578B\uFF0C\u5219\u53EF\u4EE5\u4F7F\u7528\u76F4\u63A5\u5B9A\u4E49\u5176\u4F53\u7CFB\u7ED3\u6784\u7684\u7C7B\u3002\u8BA9\u6211\u4EEC\u770B\u770B\u8FD9\u662F\u5982\u4F55\u4E0EBERT\u6A21\u578B\u4E00\u8D77\u5DE5\u4F5C\u7684\u3002"),Ue.forEach(l),lt=u(e),X=d(e,"H2",{id:!0});var Ve=$(X);Gt=m(Ve,"\u521B\u5EFA\u8F6C\u6362\u5668"),Ve.forEach(l),st=u(e),we=d(e,"P",{});var Ke=$(we);Jt=m(Ke,"\u521D\u59CB\u5316BERT\u6A21\u578B\u9700\u8981\u505A\u7684\u7B2C\u4E00\u4EF6\u4E8B\u662F\u52A0\u8F7D\u914D\u7F6E\u5BF9\u8C61\uFF1A"),Ke.forEach(l),ot=u(e),F.l(e),Ee=u(e),je=d(e,"P",{});var Qe=$(je);Lt=m(Qe,"\u914D\u7F6E\u5305\u542B\u8BB8\u591A\u7528\u4E8E\u6784\u5EFA\u6A21\u578B\u7684\u5C5E\u6027\uFF1A"),Qe.forEach(l),nt=u(e),g(Z.$$.fragment,e),ft=u(e),g(ee.$$.fragment,e),it=u(e),Y=d(e,"P",{});var W=$(Y);Yt=m(W,"\u867D\u7136\u60A8\u8FD8\u6CA1\u6709\u770B\u5230\u6240\u6709\u8FD9\u4E9B\u5C5E\u6027\u90FD\u505A\u4E86\u4EC0\u4E48\uFF0C\u4F46\u60A8\u5E94\u8BE5\u8BA4\u8BC6\u5230\u5176\u4E2D\u7684\u4E00\u4E9B\u5C5E\u6027\uFF1Ahidden"),Ze=d(W,"EM",{});var We=$(Ze);Ut=m(We,"size\u5C5E\u6027\u5B9A\u4E49\u4E86hidden"),We.forEach(l),Vt=m(W,"\u72B6\u6001\u5411\u91CF\u7684\u5927\u5C0F\uFF0Cnum_hidden_layers\u5B9A\u4E49\u4E86Transformer\u6A21\u578B\u7684\u5C42\u6570\u3002"),W.forEach(l),pt=u(e),te=d(e,"H3",{id:!0});var Xe=$(te);Kt=m(Xe,"\u4E0D\u540C\u7684\u52A0\u8F7D\u65B9\u5F0F"),Xe.forEach(l),at=u(e),ge=d(e,"P",{});var Or=$(ge);Qt=m(Or,"\u4ECE\u9ED8\u8BA4\u914D\u7F6E\u521B\u5EFA\u6A21\u578B\u4F1A\u4F7F\u7528\u968F\u673A\u503C\u5BF9\u5176\u8FDB\u884C\u521D\u59CB\u5316\uFF1A"),Or.forEach(l),mt=u(e),H.l(e),Me=u(e),U=d(e,"P",{});var St=$(U);Wt=m(St,`\u8BE5\u6A21\u578B\u53EF\u4EE5\u5728\u8FD9\u79CD\u72B6\u6001\u4E0B\u4F7F\u7528\uFF0C\u4F46\u4F1A\u8F93\u51FA\u80E1\u8A00\u4E71\u8BED\uFF1B\u9996\u5148\u9700\u8981\u5BF9\u5176\u8FDB\u884C\u8BAD\u7EC3\u3002\u6211\u4EEC\u53EF\u4EE5\u6839\u636E\u624B\u5934\u7684\u4EFB\u52A1\u4ECE\u5934\u5F00\u59CB\u8BAD\u7EC3\u6A21\u578B\uFF0C\u4F46\u6B63\u5982\u60A8\u5728
`),Ce=d(St,"A",{href:!0});var xr=$(Ce);Xt=m(xr,"Chapter 1"),xr.forEach(l),Zt=m(St,`
\uFF0C\u8FD9\u5C06\u9700\u8981\u5F88\u957F\u7684\u65F6\u95F4\u548C\u5927\u91CF\u7684\u6570\u636E\uFF0C\u5E76\u5C06\u4EA7\u751F\u4E0D\u53EF\u5FFD\u89C6\u7684\u73AF\u5883\u5F71\u54CD\u3002\u4E3A\u4E86\u907F\u514D\u4E0D\u5FC5\u8981\u7684\u91CD\u590D\u5DE5\u4F5C\uFF0C\u5FC5\u987B\u80FD\u591F\u5171\u4EAB\u548C\u91CD\u7528\u5DF2\u7ECF\u8BAD\u7EC3\u8FC7\u7684\u6A21\u578B\u3002`),St.forEach(l),ct=u(e),Te=d(e,"P",{});var Dr=$(Te);er=m(Dr,`\u52A0\u8F7D\u5DF2\u7ECF\u8BAD\u7EC3\u8FC7\u7684Transformers\u6A21\u578B\u5F88\u7B80\u5355-\u6211\u4EEC\u53EF\u4EE5\u4F7F\u7528from_pretrained()
\u65B9\u6CD5\uFF1A`),Dr.forEach(l),ut=u(e),S.l(e),Pe=u(e),qe=d(e,"P",{});var Gr=$(qe);tr=m(Gr,"\u5728\u4E0A\u9762\u7684\u4EE3\u7801\u793A\u4F8B\u4E2D\uFF0C\u6211\u4EEC\u6CA1\u6709\u4F7F\u7528BertConfig"),Gr.forEach(l),_t=u(e),V=d(e,"P",{});var It=$(V);rr=m(It,`\uFF0C\u800C\u662F\u901A\u8FC7Bert base cased\u6807\u8BC6\u7B26\u52A0\u8F7D\u4E86\u4E00\u4E2A\u9884\u8BAD\u7EC3\u6A21\u578B\u3002\u8FD9\u662F\u4E00\u4E2A\u6A21\u578B\u68C0\u67E5\u70B9\uFF0C\u7531BERT\u7684\u4F5C\u8005\u81EA\u5DF1\u8BAD\u7EC3\uFF1B\u60A8\u53EF\u4EE5\u5728
`),re=d(It,"A",{href:!0,rel:!0});var Jr=$(re);lr=m(Jr,"model card"),Jr.forEach(l),sr=m(It,"\u4E2D\u627E\u5230\u66F4\u591A\u7EC6\u8282."),It.forEach(l),dt=u(e),Ae=d(e,"P",{});var Lr=$(Ae);or=m(Lr,"\u8BE5\u6A21\u578B\u73B0\u5728\u4F7F\u7528\u68C0\u67E5\u70B9\u7684\u6240\u6709\u6743\u91CD\u8FDB\u884C\u521D\u59CB\u5316\u3002\u5B83\u53EF\u4EE5\u76F4\u63A5\u7528\u4E8E\u5BF9\u8BAD\u7EC3\u8FC7\u7684\u4EFB\u52A1\u8FDB\u884C\u63A8\u7406\uFF0C\u4E5F\u53EF\u4EE5\u5BF9\u65B0\u4EFB\u52A1\u8FDB\u884C\u5FAE\u8C03\u3002\u901A\u8FC7\u9884\u5148\u8BAD\u7EC3\u91CD\u91CF\u800C\u4E0D\u662F\u4ECE\u5934\u5F00\u59CB\u7684\u8BAD\u7EC3\uFF0C\u6211\u4EEC\u53EF\u4EE5\u5F88\u5FEB\u53D6\u5F97\u597D\u7684\u6548\u679C\u3002"),Lr.forEach(l),$t=u(e),Ne=d(e,"P",{});var Yr=$(Ne);nr=m(Yr,`\u6743\u91CD\u5DF2\u4E0B\u8F7D\u5E76\u7F13\u5B58\u5728\u7F13\u5B58\u6587\u4EF6\u5939\u4E2D\uFF08\u56E0\u6B64\u5C06\u6765\u5BF9from_pretrained()\u65B9\u6CD5\u7684\u8C03\u7528\u5C06\u4E0D\u4F1A\u91CD\u65B0\u4E0B\u8F7D\u5B83\u4EEC\uFF09\u9ED8\u8BA4\u4E3A
~/.cache/huggingface/transformers
. \u60A8\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E
HF_HOME
\u73AF\u5883\u53D8\u91CF\u6765\u81EA\u5B9A\u4E49\u7F13\u5B58\u6587\u4EF6\u5939\u3002`),Yr.forEach(l),bt=u(e),K=d(e,"P",{});var Ot=$(K);fr=m(Ot,`\u7528\u4E8E\u52A0\u8F7D\u6A21\u578B\u7684\u6807\u8BC6\u7B26\u53EF\u4EE5\u662F\u6A21\u578B\u4E2D\u5FC3Hub\u4E0A\u4EFB\u4F55\u6A21\u578B\u7684\u6807\u8BC6\u7B26\uFF0C\u53EA\u8981\u5B83\u4E0EBERT\u4F53\u7CFB\u7ED3\u6784\u517C\u5BB9\u3002\u53EF\u4EE5\u627E\u5230\u53EF\u7528\u7684BERT\u68C0\u67E5\u70B9\u7684\u5B8C\u6574\u5217\u8868
`),le=d(Ot,"A",{href:!0,rel:!0});var Ur=$(le);ir=m(Ur,"here"),Ur.forEach(l),pr=m(Ot,`
.`),Ot.forEach(l),kt=u(e),se=d(e,"H3",{id:!0});var Vr=$(se);ar=m(Vr,"\u4FDD\u5B58\u6A21\u578B"),Vr.forEach(l),ht=u(e),Fe=d(e,"P",{});var Kr=$(Fe);mr=m(Kr,`\u4FDD\u5B58\u6A21\u578B\u548C\u52A0\u8F7D\u6A21\u578B\u4E00\u6837\u7B80\u5355\u2014\u6211\u4EEC\u4F7F\u7528
save_pretrained()
\u65B9\u6CD5\uFF0C\u7C7B\u4F3C\u4E8E
from_pretrained()
\u65B9\u6CD5\uFF1A`),Kr.forEach(l),yt=u(e),g(oe.$$.fragment,e),vt=u(e),ze=d(e,"P",{});var Qr=$(ze);cr=m(Qr,"\u8FD9\u4F1A\u5C06\u4E24\u4E2A\u6587\u4EF6\u4FDD\u5B58\u5230\u78C1\u76D8\uFF1A"),Qr.forEach(l),Bt=u(e),O.l(e),He=u(e),Re=d(e,"P",{});var Wr=$(Re);ur=m(Wr,`\u5982\u679C\u4F60\u770B\u4E00\u4E0B
config.json
\u6587\u4EF6\uFF0C\u60A8\u5C06\u8BC6\u522B\u6784\u5EFA\u6A21\u578B\u4F53\u7CFB\u7ED3\u6784\u6240\u9700\u7684\u5C5E\u6027\u3002\u8BE5\u6587\u4EF6\u8FD8\u5305\u542B\u4E00\u4E9B\u5143\u6570\u636E\uFF0C\u4F8B\u5982\u68C0\u67E5\u70B9\u7684\u6765\u6E90\u4EE5\u53CA\u4E0A\u6B21\u4FDD\u5B58\u68C0\u67E5\u70B9\u65F6\u4F7F\u7528\u7684\u{1F917} Transformers\u7248\u672C\u3002`),Wr.forEach(l),wt=u(e),L.l(e),Se=u(e),G=d(e,"H3",{class:!0});var xt=$(G);Q=d(xt,"A",{id:!0,class:!0,href:!0});var Xr=$(Q);et=d(Xr,"SPAN",{});var Zr=$(et);g(ne.$$.fragment,Zr),Zr.forEach(l),Xr.forEach(l),_r=u(xt),tt=d(xt,"SPAN",{});var el=$(tt);dr=m(el,"\u4F7F\u7528Transformers\u6A21\u578B\u8FDB\u884C\u63A8\u7406"),el.forEach(l),xt.forEach(l),Et=u(e),Ie=d(e,"P",{});var tl=$(Ie);$r=m(tl,"\u65E2\u7136\u60A8\u77E5\u9053\u4E86\u5982\u4F55\u52A0\u8F7D\u548C\u4FDD\u5B58\u6A21\u578B\uFF0C\u90A3\u4E48\u8BA9\u6211\u4EEC\u5C1D\u8BD5\u4F7F\u7528\u5B83\u8FDB\u884C\u4E00\u4E9B\u9884\u6D4B\u3002Transformer\u6A21\u578B\u53EA\u80FD\u5904\u7406\u6570\u5B57\u2014\u2014\u5206\u8BCD\u5668\u751F\u6210\u7684\u6570\u5B57\u3002\u4F46\u5728\u6211\u4EEC\u8BA8\u8BBA\u6807\u8BB0\u5316\u5668\u4E4B\u524D\uFF0C\u8BA9\u6211\u4EEC\u5148\u63A2\u8BA8\u6A21\u578B\u63A5\u53D7\u54EA\u4E9B\u8F93\u5165\u3002"),tl.forEach(l),jt=u(e),Oe=d(e,"P",{});var rl=$(Oe);br=m(rl,"\u6807\u8BB0\u5316\u5668\u53EF\u4EE5\u5C06\u8F93\u5165\u8F6C\u6362\u4E3A\u9002\u5F53\u7684\u6846\u67B6\u5F20\u91CF\uFF0C\u4F46\u4E3A\u4E86\u5E2E\u52A9\u60A8\u4E86\u89E3\u53D1\u751F\u4E86\u4EC0\u4E48\uFF0C\u6211\u4EEC\u5C06\u5FEB\u901F\u4E86\u89E3\u5728\u5C06\u8F93\u5165\u53D1\u9001\u5230\u6A21\u578B\u4E4B\u524D\u5FC5\u987B\u505A\u4EC0\u4E48\u3002"),rl.forEach(l),gt=u(e),xe=d(e,"P",{});var ll=$(xe);kr=m(ll,"\u5047\u8BBE\u6211\u4EEC\u6709\u51E0\u4E2A\u5E8F\u5217\uFF1A"),ll.forEach(l),Mt=u(e),g(fe.$$.fragment,e),Ct=u(e),De=d(e,"P",{});var sl=$(De);hr=m(sl,`\u5206\u8BCD\u5668\u5C06\u8FD9\u4E9B\u8F6C\u6362\u4E3A\u8BCD\u6C47\u8868\u7D22\u5F15\uFF0C\u901A\u5E38\u79F0\u4E3A
input IDs
. \u6BCF\u4E2A\u5E8F\u5217\u73B0\u5728\u90FD\u662F\u4E00\u4E2A\u6570\u5B57\u5217\u8868\uFF01\u7ED3\u679C\u662F\uFF1A`),sl.forEach(l),Tt=u(e),g(ie.$$.fragment,e),Pt=u(e),Ge=d(e,"P",{});var ol=$(Ge);yr=m(ol,"\u8FD9\u662F\u4E00\u4E2A\u7F16\u7801\u5E8F\u5217\u5217\u8868\uFF1A\u4E00\u4E2A\u5217\u8868\u5217\u8868\u3002\u5F20\u91CF\u53EA\u63A5\u53D7\u77E9\u5F62\uFF08\u60F3\u60F3\u77E9\u9635\uFF09\u3002\u6B64\u201C\u6570\u7EC4\u201D\u5DF2\u4E3A\u77E9\u5F62\uFF0C\u56E0\u6B64\u5C06\u5176\u8F6C\u6362\u4E3A\u5F20\u91CF\u5F88\u5BB9\u6613\uFF1A"),ol.forEach(l),qt=u(e),D.l(e),Je=u(e),pe=d(e,"H3",{id:!0});var nl=$(pe);vr=m(nl,"\u4F7F\u7528\u5F20\u91CF\u4F5C\u4E3A\u6A21\u578B\u7684\u8F93\u5165"),nl.forEach(l),At=u(e),Le=d(e,"P",{});var fl=$(Le);Br=m(fl,"\u5728\u6A21\u578B\u4E2D\u4F7F\u7528\u5F20\u91CF\u975E\u5E38\u7B80\u5355-\u6211\u4EEC\u53EA\u9700\u5C06\u8F93\u5165\u79F0\u4E3A\u6A21\u578B\uFF1A"),fl.forEach(l),Nt=u(e),g(ae.$$.fragment,e),Ft=u(e),Ye=d(e,"P",{});var il=$(Ye);wr=m(il,`\u867D\u7136\u6A21\u578B\u63A5\u53D7\u8BB8\u591A\u4E0D\u540C\u7684\u53C2\u6570\uFF0C\u4F46\u53EA\u9700\u8981
input IDs\u3002\u6211\u4EEC\u7A0D\u540E\u5C06\u89E3\u91CA\u5176\u4ED6\u53C2\u6570\u7684\u4F5C\u7528\u4EE5\u53CA\u4F55\u65F6\u9700\u8981\u5B83\u4EEC\uFF0C\u4F46\u9996\u5148\u6211\u4EEC\u9700\u8981\u66F4\u4ED4\u7EC6\u5730\u4E86\u89E3
Transformer\u6A21\u578B\u53EF\u4EE5\u7406\u89E3\u7684\u8F93\u5165\u7684\u6807\u8BB0`),il.forEach(l),this.h()},h(){q(r,"name","hf:doc:metadata"),q(r,"content",JSON.stringify(Rl)),q(v,"id",""),q(X,"id",""),q(te,"id",""),q(Ce,"href","/course/chapter1"),q(re,"href","https://huggingface.co/bert-base-cased"),q(re,"rel","nofollow"),q(le,"href","https://huggingface.co/models?filter=bert"),q(le,"rel","nofollow"),q(se,"id",""),q(Q,"id","transformers"),q(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"),q(Q,"href","#transformers"),q(G,"class","relative group"),q(pe,"id","")},m(e,s){i(document.head,r),n(e,o,s),M(t,e,s),n(e,p,s),n(e,v,s),i(v,f),n(e,b,s),me[B].m(e,s),n(e,w,s),ce[T].m(e,s),n(e,ye,s),J.m(e,s),n(e,ve,s),n(e,Be,s),i(Be,Dt),n(e,lt,s),n(e,X,s),i(X,Gt),n(e,st,s),n(e,we,s),i(we,Jt),n(e,ot,s),ue[N].m(e,s),n(e,Ee,s),n(e,je,s),i(je,Lt),n(e,nt,s),M(Z,e,s),n(e,ft,s),M(ee,e,s),n(e,it,s),n(e,Y,s),i(Y,Yt),i(Y,Ze),i(Ze,Ut),i(Y,Vt),n(e,pt,s),n(e,te,s),i(te,Kt),n(e,at,s),n(e,ge,s),i(ge,Qt),n(e,mt,s),_e[z].m(e,s),n(e,Me,s),n(e,U,s),i(U,Wt),i(U,Ce),i(Ce,Xt),i(U,Zt),n(e,ct,s),n(e,Te,s),i(Te,er),n(e,ut,s),de[R].m(e,s),n(e,Pe,s),n(e,qe,s),i(qe,tr),n(e,_t,s),n(e,V,s),i(V,rr),i(V,re),i(re,lr),i(V,sr),n(e,dt,s),n(e,Ae,s),i(Ae,or),n(e,$t,s),n(e,Ne,s),i(Ne,nr),n(e,bt,s),n(e,K,s),i(K,fr),i(K,le),i(le,ir),i(K,pr),n(e,kt,s),n(e,se,s),i(se,ar),n(e,ht,s),n(e,Fe,s),i(Fe,mr),n(e,yt,s),M(oe,e,s),n(e,vt,s),n(e,ze,s),i(ze,cr),n(e,Bt,s),$e[I].m(e,s),n(e,He,s),n(e,Re,s),i(Re,ur),n(e,wt,s),L.m(e,s),n(e,Se,s),n(e,G,s),i(G,Q),i(Q,et),M(ne,et,null),i(G,_r),i(G,tt),i(tt,dr),n(e,Et,s),n(e,Ie,s),i(Ie,$r),n(e,jt,s),n(e,Oe,s),i(Oe,br),n(e,gt,s),n(e,xe,s),i(xe,kr),n(e,Mt,s),M(fe,e,s),n(e,Ct,s),n(e,De,s),i(De,hr),n(e,Tt,s),M(ie,e,s),n(e,Pt,s),n(e,Ge,s),i(Ge,yr),n(e,qt,s),be[x].m(e,s),n(e,Je,s),n(e,pe,s),i(pe,vr),n(e,At,s),n(e,Le,s),i(Le,Br),n(e,Nt,s),M(ae,e,s),n(e,Ft,s),n(e,Ye,s),i(Ye,wr),zt=!0},p(e,[s]){const rt={};s&1&&(rt.fw=e[0]),t.$set(rt);let Ue=B;B=jr(e),B!==Ue&&(he(),h(me[Ue],1,1,()=>{me[Ue]=null}),ke(),E=me[B],E||(E=me[B]=Er[B](e),E.c()),y(E,1),E.m(w.parentNode,w));let Ve=T;T=Mr(e),T!==Ve&&(he(),h(ce[Ve],1,1,()=>{ce[Ve]=null}),ke(),P=ce[T],P||(P=ce[T]=gr[T](e),P.c()),y(P,1),P.m(ye.parentNode,ye)),Ht!==(Ht=Cr(e))&&(J.d(1),J=Ht(e),J&&(J.c(),J.m(ve.parentNode,ve)));let Ke=N;N=Pr(e),N!==Ke&&(he(),h(ue[Ke],1,1,()=>{ue[Ke]=null}),ke(),F=ue[N],F||(F=ue[N]=Tr[N](e),F.c()),y(F,1),F.m(Ee.parentNode,Ee));let Qe=z;z=Ar(e),z!==Qe&&(he(),h(_e[Qe],1,1,()=>{_e[Qe]=null}),ke(),H=_e[z],H||(H=_e[z]=qr[z](e),H.c()),y(H,1),H.m(Me.parentNode,Me));let W=R;R=Fr(e),R!==W&&(he(),h(de[W],1,1,()=>{de[W]=null}),ke(),S=de[R],S||(S=de[R]=Nr[R](e),S.c()),y(S,1),S.m(Pe.parentNode,Pe));let We=I;I=Hr(e),I!==We&&(he(),h($e[We],1,1,()=>{$e[We]=null}),ke(),O=$e[I],O||(O=$e[I]=zr[I](e),O.c()),y(O,1),O.m(He.parentNode,He)),Rt!==(Rt=Rr(e))&&(L.d(1),L=Rt(e),L&&(L.c(),L.m(Se.parentNode,Se)));let Xe=x;x=Ir(e),x!==Xe&&(he(),h(be[Xe],1,1,()=>{be[Xe]=null}),ke(),D=be[x],D||(D=be[x]=Sr[x](e),D.c()),y(D,1),D.m(Je.parentNode,Je))},i(e){zt||(y(t.$$.fragment,e),y(E),y(P),y(F),y(Z.$$.fragment,e),y(ee.$$.fragment,e),y(H),y(S),y(oe.$$.fragment,e),y(O),y(ne.$$.fragment,e),y(fe.$$.fragment,e),y(ie.$$.fragment,e),y(D),y(ae.$$.fragment,e),zt=!0)},o(e){h(t.$$.fragment,e),h(E),h(P),h(F),h(Z.$$.fragment,e),h(ee.$$.fragment,e),h(H),h(S),h(oe.$$.fragment,e),h(O),h(ne.$$.fragment,e),h(fe.$$.fragment,e),h(ie.$$.fragment,e),h(D),h(ae.$$.fragment,e),zt=!1},d(e){l(r),e&&l(o),C(t,e),e&&l(p),e&&l(v),e&&l(b),me[B].d(e),e&&l(w),ce[T].d(e),e&&l(ye),J.d(e),e&&l(ve),e&&l(Be),e&&l(lt),e&&l(X),e&&l(st),e&&l(we),e&&l(ot),ue[N].d(e),e&&l(Ee),e&&l(je),e&&l(nt),C(Z,e),e&&l(ft),C(ee,e),e&&l(it),e&&l(Y),e&&l(pt),e&&l(te),e&&l(at),e&&l(ge),e&&l(mt),_e[z].d(e),e&&l(Me),e&&l(U),e&&l(ct),e&&l(Te),e&&l(ut),de[R].d(e),e&&l(Pe),e&&l(qe),e&&l(_t),e&&l(V),e&&l(dt),e&&l(Ae),e&&l($t),e&&l(Ne),e&&l(bt),e&&l(K),e&&l(kt),e&&l(se),e&&l(ht),e&&l(Fe),e&&l(yt),C(oe,e),e&&l(vt),e&&l(ze),e&&l(Bt),$e[I].d(e),e&&l(He),e&&l(Re),e&&l(wt),L.d(e),e&&l(Se),e&&l(G),C(ne),e&&l(Et),e&&l(Ie),e&&l(jt),e&&l(Oe),e&&l(gt),e&&l(xe),e&&l(Mt),C(fe,e),e&&l(Ct),e&&l(De),e&&l(Tt),C(ie,e),e&&l(Pt),e&&l(Ge),e&&l(qt),be[x].d(e),e&&l(Je),e&&l(pe),e&&l(At),e&&l(Le),e&&l(Nt),C(ae,e),e&&l(Ft),e&&l(Ye)}}}const Rl={local:"",sections:[{local:"",sections:[{local:"",title:"\u4E0D\u540C\u7684\u52A0\u8F7D\u65B9\u5F0F"},{local:"",title:"\u4FDD\u5B58\u6A21\u578B"},{local:"transformers",title:"\u4F7F\u7528Transformers\u6A21\u578B\u8FDB\u884C\u63A8\u7406"},{local:"",title:"\u4F7F\u7528\u5F20\u91CF\u4F5C\u4E3A\u6A21\u578B\u7684\u8F93\u5165"}],title:"\u521B\u5EFA\u8F6C\u6362\u5668"}],title:"\u6A21\u578B"};function Sl(k,r,o){let t="pt";return dl(()=>{const p=new URLSearchParams(window.location.search);o(0,t=p.get("fw")||"pt")}),[t]}class Yl extends ml{constructor(r){super();cl(this,r,Sl,Hl,ul,{})}}export{Yl as default,Rl as metadata};
