import{S as ml,i as cl,s as _l,e as u,k as c,w as j,t as a,M as ul,c as d,d as l,m as _,x as g,a as $,h as m,b as C,G as i,g as n,y as M,o as h,p as ke,q as y,B as T,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{D as al}from"../../chunks/DocNotebookDropdown-hf-doc-builder.js";import{F as bl}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";function kl(k){let r,o;return r=new al({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter2/section3_tf.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/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){T(r,t)}}}function hl(k){let r,o;return r=new al({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter2/section3_pt.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/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){T(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){T(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){T(r,t)}}}function wl(k){let r,o,t,p,v;return{c(){r=u("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=u("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=_(f),p=d(f,"P",{});var w=$(p);v=m(w,"\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"),w.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 Bl(k){let r,o,t,p,v;return{c(){r=u("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=u("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=_(f),p=d(f,"P",{});var w=$(p);v=m(w,"\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"),w.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){T(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){T(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){T(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){T(r,t)}}}function Tl(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=u("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=_(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){T(r,f),f&&l(o),f&&l(t)}}}function Pl(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=u("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=_(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){T(r,f),f&&l(o),f&&l(t)}}}function ql(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){T(r,t)}}}function Cl(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){T(r,t)}}}function Al(k){let r,o,t,p,v,f,b,w;return{c(){r=u("p"),o=a("\u8FD9\u4E2A "),t=u("em"),p=a("pytorch_model.bin"),v=a(" \u6587\u4EF6\u5C31\u662F\u4F17\u6240\u5468\u77E5\u7684"),f=u("em"),b=a("state dictionary"),w=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 B=$(r);o=m(B,"\u8FD9\u4E2A "),t=d(B,"EM",{});var P=$(t);p=m(P,"pytorch_model.bin"),P.forEach(l),v=m(B," \u6587\u4EF6\u5C31\u662F\u4F17\u6240\u5468\u77E5\u7684"),f=d(B,"EM",{});var q=$(f);b=m(q,"state dictionary"),q.forEach(l),w=m(B,"; \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"),B.forEach(l)},m(E,B){n(E,r,B),i(r,o),i(r,t),i(t,p),i(r,v),i(r,f),i(f,b),i(r,w)},d(E){E&&l(r)}}}function Fl(k){let r,o,t,p,v,f,b,w;return{c(){r=u("p"),o=a("\u8FD9\u4E2A "),t=u("em"),p=a("pytorch_model.bin"),v=a(" \u6587\u4EF6\u5C31\u662F\u4F17\u6240\u5468\u77E5\u7684"),f=u("em"),b=a("state dictionary"),w=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 B=$(r);o=m(B,"\u8FD9\u4E2A "),t=d(B,"EM",{});var P=$(t);p=m(P,"pytorch_model.bin"),P.forEach(l),v=m(B," \u6587\u4EF6\u5C31\u662F\u4F17\u6240\u5468\u77E5\u7684"),f=d(B,"EM",{});var q=$(f);b=m(q,"state dictionary"),q.forEach(l),w=m(B,"; \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"),B.forEach(l)},m(E,B){n(E,r,B),i(r,o),i(r,t),i(t,p),i(r,v),i(r,f),i(f,b),i(r,w)},d(E){E&&l(r)}}}function Nl(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){T(r,t)}}}function Hl(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){T(r,t)}}}function zl(k){let r,o,t,p,v,f,b,w,E,B,P,q,ye,ve,we,xt,lt,X,Gt,st,Be,Jt,ot,F,N,Ee,je,Lt,nt,Z,ft,ee,it,Y,Yt,Ze,Ut,Vt,pt,te,Kt,at,ge,Qt,mt,H,z,Me,U,Wt,Te,Xt,Zt,ct,Pe,er,_t,R,S,qe,Ce,tr,ut,V,rr,re,lr,sr,dt,Ae,or,$t,Fe,nr,bt,K,fr,le,ir,pr,kt,se,ar,ht,Ne,mr,yt,oe,vt,He,cr,wt,D,I,ze,Re,_r,Bt,Se,G,Q,et,ne,ur,tt,dr,Et,De,$r,jt,Ie,br,gt,Oe,kr,Mt,fe,Tt,xe,hr,Pt,ie,qt,Ge,yr,Ct,O,x,Je,pe,vr,At,Le,wr,Ft,ae,Nt,Ye,Br,Ht;t=new bl({props:{fw:k[0]}});const Er=[hl,kl],me=[];function jr(e,s){return e[0]==="pt"?0:1}w=jr(k),E=me[w]=Er[w](k);const gr=[vl,yl],ce=[];function Mr(e,s){return e[0]==="pt"?0:1}P=Mr(k),q=ce[P]=gr[P](k);function Tr(e,s){return e[0]==="pt"?Bl:wl}let zt=Tr(k),J=zt(k);const Pr=[jl,El],_e=[];function qr(e,s){return e[0]==="pt"?0:1}F=qr(k),N=_e[F]=Pr[F](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 Cr=[Ml,gl],ue=[];function Ar(e,s){return e[0]==="pt"?0:1}H=Ar(k),z=ue[H]=Cr[H](k);const Fr=[Pl,Tl],de=[];function Nr(e,s){return e[0]==="pt"?0:1}R=Nr(k),S=de[R]=Fr[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 Hr=[Cl,ql],$e=[];function zr(e,s){return e[0]==="pt"?0:1}D=zr(k),I=$e[D]=Hr[D](k);function Rr(e,s){return e[0]==="pt"?Fl: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=[Hl,Nl],be=[];function Dr(e,s){return e[0]==="pt"?0:1}return O=Dr(k),x=be[O]=Sr[O](k),ae=new A({props:{code:"output = model(model_inputs)",highlighted:"output = model(model_inputs)"}}),{c(){r=u("meta"),o=c(),j(t.$$.fragment),p=c(),v=u("h1"),f=a("\u6A21\u578B"),b=c(),E.c(),B=c(),q.c(),ye=c(),J.c(),ve=c(),we=u("p"),xt=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=u("h2"),Gt=a("\u521B\u5EFA\u8F6C\u6362\u5668"),st=c(),Be=u("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(),N.c(),Ee=c(),je=u("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=u("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=u("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=u("h3"),Kt=a("\u4E0D\u540C\u7684\u52A0\u8F7D\u65B9\u5F0F"),at=c(),ge=u("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(),z.c(),Me=c(),U=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
`),Te=u("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(),Pe=u("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`),_t=c(),S.c(),qe=c(),Ce=u("p"),tr=a("\u5728\u4E0A\u9762\u7684\u4EE3\u7801\u793A\u4F8B\u4E2D\uFF0C\u6211\u4EEC\u6CA1\u6709\u4F7F\u7528BertConfig"),ut=c(),V=u("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=u("a"),lr=a("model card"),sr=a("\u4E2D\u627E\u5230\u66F4\u591A\u7EC6\u8282."),dt=c(),Ae=u("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(),Fe=u("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=u("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=u("a"),ir=a("here"),pr=a(`
.`),kt=c(),se=u("h3"),ar=a("\u4FDD\u5B58\u6A21\u578B"),ht=c(),Ne=u("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(),He=u("p"),cr=a("\u8FD9\u4F1A\u5C06\u4E24\u4E2A\u6587\u4EF6\u4FDD\u5B58\u5230\u78C1\u76D8\uFF1A"),wt=c(),I.c(),ze=c(),Re=u("p"),_r=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`),Bt=c(),L.c(),Se=c(),G=u("h3"),Q=u("a"),et=u("span"),j(ne.$$.fragment),ur=c(),tt=u("span"),dr=a("\u4F7F\u7528Transformers\u6A21\u578B\u8FDB\u884C\u63A8\u7406"),Et=c(),De=u("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(),Ie=u("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(),Oe=u("p"),kr=a("\u5047\u8BBE\u6211\u4EEC\u6709\u51E0\u4E2A\u5E8F\u5217\uFF1A"),Mt=c(),j(fe.$$.fragment),Tt=c(),xe=u("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`),Pt=c(),j(ie.$$.fragment),qt=c(),Ge=u("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"),Ct=c(),x.c(),Je=c(),pe=u("h3"),vr=a("\u4F7F\u7528\u5F20\u91CF\u4F5C\u4E3A\u6A21\u578B\u7684\u8F93\u5165"),At=c(),Le=u("p"),wr=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"),Ft=c(),j(ae.$$.fragment),Nt=c(),Ye=u("p"),Br=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=ul('[data-svelte="svelte-1phssyn"]',document.head);r=d(s,"META",{name:!0,content:!0}),s.forEach(l),o=_(e),g(t.$$.fragment,e),p=_(e),v=d(e,"H1",{id:!0});var rt=$(v);f=m(rt,"\u6A21\u578B"),rt.forEach(l),b=_(e),E.l(e),B=_(e),q.l(e),ye=_(e),J.l(e),ve=_(e),we=d(e,"P",{});var Ue=$(we);xt=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=_(e),X=d(e,"H2",{id:!0});var Ve=$(X);Gt=m(Ve,"\u521B\u5EFA\u8F6C\u6362\u5668"),Ve.forEach(l),st=_(e),Be=d(e,"P",{});var Ke=$(Be);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=_(e),N.l(e),Ee=_(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=_(e),g(Z.$$.fragment,e),ft=_(e),g(ee.$$.fragment,e),it=_(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=_(e),te=d(e,"H3",{id:!0});var Xe=$(te);Kt=m(Xe,"\u4E0D\u540C\u7684\u52A0\u8F7D\u65B9\u5F0F"),Xe.forEach(l),at=_(e),ge=d(e,"P",{});var Ir=$(ge);Qt=m(Ir,"\u4ECE\u9ED8\u8BA4\u914D\u7F6E\u521B\u5EFA\u6A21\u578B\u4F1A\u4F7F\u7528\u968F\u673A\u503C\u5BF9\u5176\u8FDB\u884C\u521D\u59CB\u5316\uFF1A"),Ir.forEach(l),mt=_(e),z.l(e),Me=_(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
`),Te=d(St,"A",{href:!0});var Or=$(Te);Xt=m(Or,"Chapter 1"),Or.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=_(e),Pe=d(e,"P",{});var xr=$(Pe);er=m(xr,`\u52A0\u8F7D\u5DF2\u7ECF\u8BAD\u7EC3\u8FC7\u7684Transformers\u6A21\u578B\u5F88\u7B80\u5355-\u6211\u4EEC\u53EF\u4EE5\u4F7F\u7528from_pretrained()
\u65B9\u6CD5\uFF1A`),xr.forEach(l),_t=_(e),S.l(e),qe=_(e),Ce=d(e,"P",{});var Gr=$(Ce);tr=m(Gr,"\u5728\u4E0A\u9762\u7684\u4EE3\u7801\u793A\u4F8B\u4E2D\uFF0C\u6211\u4EEC\u6CA1\u6709\u4F7F\u7528BertConfig"),Gr.forEach(l),ut=_(e),V=d(e,"P",{});var Dt=$(V);rr=m(Dt,`\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(Dt,"A",{href:!0,rel:!0});var Jr=$(re);lr=m(Jr,"model card"),Jr.forEach(l),sr=m(Dt,"\u4E2D\u627E\u5230\u66F4\u591A\u7EC6\u8282."),Dt.forEach(l),dt=_(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=_(e),Fe=d(e,"P",{});var Yr=$(Fe);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=_(e),K=d(e,"P",{});var It=$(K);fr=m(It,`\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(It,"A",{href:!0,rel:!0});var Ur=$(le);ir=m(Ur,"here"),Ur.forEach(l),pr=m(It,`
.`),It.forEach(l),kt=_(e),se=d(e,"H3",{id:!0});var Vr=$(se);ar=m(Vr,"\u4FDD\u5B58\u6A21\u578B"),Vr.forEach(l),ht=_(e),Ne=d(e,"P",{});var Kr=$(Ne);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=_(e),g(oe.$$.fragment,e),vt=_(e),He=d(e,"P",{});var Qr=$(He);cr=m(Qr,"\u8FD9\u4F1A\u5C06\u4E24\u4E2A\u6587\u4EF6\u4FDD\u5B58\u5230\u78C1\u76D8\uFF1A"),Qr.forEach(l),wt=_(e),I.l(e),ze=_(e),Re=d(e,"P",{});var Wr=$(Re);_r=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),Bt=_(e),L.l(e),Se=_(e),G=d(e,"H3",{class:!0});var Ot=$(G);Q=d(Ot,"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),ur=_(Ot),tt=d(Ot,"SPAN",{});var el=$(tt);dr=m(el,"\u4F7F\u7528Transformers\u6A21\u578B\u8FDB\u884C\u63A8\u7406"),el.forEach(l),Ot.forEach(l),Et=_(e),De=d(e,"P",{});var tl=$(De);$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=_(e),Ie=d(e,"P",{});var rl=$(Ie);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=_(e),Oe=d(e,"P",{});var ll=$(Oe);kr=m(ll,"\u5047\u8BBE\u6211\u4EEC\u6709\u51E0\u4E2A\u5E8F\u5217\uFF1A"),ll.forEach(l),Mt=_(e),g(fe.$$.fragment,e),Tt=_(e),xe=d(e,"P",{});var sl=$(xe);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),Pt=_(e),g(ie.$$.fragment,e),qt=_(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),Ct=_(e),x.l(e),Je=_(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=_(e),Le=d(e,"P",{});var fl=$(Le);wr=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),Ft=_(e),g(ae.$$.fragment,e),Nt=_(e),Ye=d(e,"P",{});var il=$(Ye);Br=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(){C(r,"name","hf:doc:metadata"),C(r,"content",JSON.stringify(Rl)),C(v,"id",""),C(X,"id",""),C(te,"id",""),C(Te,"href","/course/chapter1"),C(re,"href","https://huggingface.co/bert-base-cased"),C(re,"rel","nofollow"),C(le,"href","https://huggingface.co/models?filter=bert"),C(le,"rel","nofollow"),C(se,"id",""),C(Q,"id","transformers"),C(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"),C(Q,"href","#transformers"),C(G,"class","relative group"),C(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[w].m(e,s),n(e,B,s),ce[P].m(e,s),n(e,ye,s),J.m(e,s),n(e,ve,s),n(e,we,s),i(we,xt),n(e,lt,s),n(e,X,s),i(X,Gt),n(e,st,s),n(e,Be,s),i(Be,Jt),n(e,ot,s),_e[F].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),ue[H].m(e,s),n(e,Me,s),n(e,U,s),i(U,Wt),i(U,Te),i(Te,Xt),i(U,Zt),n(e,ct,s),n(e,Pe,s),i(Pe,er),n(e,_t,s),de[R].m(e,s),n(e,qe,s),n(e,Ce,s),i(Ce,tr),n(e,ut,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,Fe,s),i(Fe,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,Ne,s),i(Ne,mr),n(e,yt,s),M(oe,e,s),n(e,vt,s),n(e,He,s),i(He,cr),n(e,wt,s),$e[D].m(e,s),n(e,ze,s),n(e,Re,s),i(Re,_r),n(e,Bt,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,ur),i(G,tt),i(tt,dr),n(e,Et,s),n(e,De,s),i(De,$r),n(e,jt,s),n(e,Ie,s),i(Ie,br),n(e,gt,s),n(e,Oe,s),i(Oe,kr),n(e,Mt,s),M(fe,e,s),n(e,Tt,s),n(e,xe,s),i(xe,hr),n(e,Pt,s),M(ie,e,s),n(e,qt,s),n(e,Ge,s),i(Ge,yr),n(e,Ct,s),be[O].m(e,s),n(e,Je,s),n(e,pe,s),i(pe,vr),n(e,At,s),n(e,Le,s),i(Le,wr),n(e,Ft,s),M(ae,e,s),n(e,Nt,s),n(e,Ye,s),i(Ye,Br),Ht=!0},p(e,[s]){const rt={};s&1&&(rt.fw=e[0]),t.$set(rt);let Ue=w;w=jr(e),w!==Ue&&(he(),h(me[Ue],1,1,()=>{me[Ue]=null}),ke(),E=me[w],E||(E=me[w]=Er[w](e),E.c()),y(E,1),E.m(B.parentNode,B));let Ve=P;P=Mr(e),P!==Ve&&(he(),h(ce[Ve],1,1,()=>{ce[Ve]=null}),ke(),q=ce[P],q||(q=ce[P]=gr[P](e),q.c()),y(q,1),q.m(ye.parentNode,ye)),zt!==(zt=Tr(e))&&(J.d(1),J=zt(e),J&&(J.c(),J.m(ve.parentNode,ve)));let Ke=F;F=qr(e),F!==Ke&&(he(),h(_e[Ke],1,1,()=>{_e[Ke]=null}),ke(),N=_e[F],N||(N=_e[F]=Pr[F](e),N.c()),y(N,1),N.m(Ee.parentNode,Ee));let Qe=H;H=Ar(e),H!==Qe&&(he(),h(ue[Qe],1,1,()=>{ue[Qe]=null}),ke(),z=ue[H],z||(z=ue[H]=Cr[H](e),z.c()),y(z,1),z.m(Me.parentNode,Me));let W=R;R=Nr(e),R!==W&&(he(),h(de[W],1,1,()=>{de[W]=null}),ke(),S=de[R],S||(S=de[R]=Fr[R](e),S.c()),y(S,1),S.m(qe.parentNode,qe));let We=D;D=zr(e),D!==We&&(he(),h($e[We],1,1,()=>{$e[We]=null}),ke(),I=$e[D],I||(I=$e[D]=Hr[D](e),I.c()),y(I,1),I.m(ze.parentNode,ze)),Rt!==(Rt=Rr(e))&&(L.d(1),L=Rt(e),L&&(L.c(),L.m(Se.parentNode,Se)));let Xe=O;O=Dr(e),O!==Xe&&(he(),h(be[Xe],1,1,()=>{be[Xe]=null}),ke(),x=be[O],x||(x=be[O]=Sr[O](e),x.c()),y(x,1),x.m(Je.parentNode,Je))},i(e){Ht||(y(t.$$.fragment,e),y(E),y(q),y(N),y(Z.$$.fragment,e),y(ee.$$.fragment,e),y(z),y(S),y(oe.$$.fragment,e),y(I),y(ne.$$.fragment,e),y(fe.$$.fragment,e),y(ie.$$.fragment,e),y(x),y(ae.$$.fragment,e),Ht=!0)},o(e){h(t.$$.fragment,e),h(E),h(q),h(N),h(Z.$$.fragment,e),h(ee.$$.fragment,e),h(z),h(S),h(oe.$$.fragment,e),h(I),h(ne.$$.fragment,e),h(fe.$$.fragment,e),h(ie.$$.fragment,e),h(x),h(ae.$$.fragment,e),Ht=!1},d(e){l(r),e&&l(o),T(t,e),e&&l(p),e&&l(v),e&&l(b),me[w].d(e),e&&l(B),ce[P].d(e),e&&l(ye),J.d(e),e&&l(ve),e&&l(we),e&&l(lt),e&&l(X),e&&l(st),e&&l(Be),e&&l(ot),_e[F].d(e),e&&l(Ee),e&&l(je),e&&l(nt),T(Z,e),e&&l(ft),T(ee,e),e&&l(it),e&&l(Y),e&&l(pt),e&&l(te),e&&l(at),e&&l(ge),e&&l(mt),ue[H].d(e),e&&l(Me),e&&l(U),e&&l(ct),e&&l(Pe),e&&l(_t),de[R].d(e),e&&l(qe),e&&l(Ce),e&&l(ut),e&&l(V),e&&l(dt),e&&l(Ae),e&&l($t),e&&l(Fe),e&&l(bt),e&&l(K),e&&l(kt),e&&l(se),e&&l(ht),e&&l(Ne),e&&l(yt),T(oe,e),e&&l(vt),e&&l(He),e&&l(wt),$e[D].d(e),e&&l(ze),e&&l(Re),e&&l(Bt),L.d(e),e&&l(Se),e&&l(G),T(ne),e&&l(Et),e&&l(De),e&&l(jt),e&&l(Ie),e&&l(gt),e&&l(Oe),e&&l(Mt),T(fe,e),e&&l(Tt),e&&l(xe),e&&l(Pt),T(ie,e),e&&l(qt),e&&l(Ge),e&&l(Ct),be[O].d(e),e&&l(Je),e&&l(pe),e&&l(At),e&&l(Le),e&&l(Ft),T(ae,e),e&&l(Nt),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 Ll extends ml{constructor(r){super();cl(this,r,Sl,zl,_l,{})}}export{Ll as default,Rl as metadata};
