import{s as ht,o as kt,n as ut}from"../chunks/scheduler.9bc65507.js";import{S as vt,i as $t,g as i,s,r as u,A as bt,h as l,f as n,c as a,j as D,u as g,x as d,k as I,y as t,a as p,v as h,d as k,t as v,w as $}from"../chunks/index.707bf1b6.js";import{D as U}from"../chunks/Docstring.17db21ae.js";import{C as gt}from"../chunks/CodeBlock.54a9f38d.js";import{E as _t}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as De}from"../chunks/Heading.342b1fa6.js";function wt(ne){let m,M="sequence pair mask has the following format:",b,c,f;return c=new gt({props:{code:"MCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMEElN0MlMjBmaXJzdCUyMHNlcXVlbmNlJTIwJTIwJTIwJTIwJTdDJTIwc2Vjb25kJTIwc2VxdWVuY2UlMjAlN0M=",highlighted:`0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1 1
| first sequence    | second sequence |`,wrap:!1}}),{c(){m=i("p"),m.textContent=M,b=s(),u(c.$$.fragment)},l(o){m=l(o,"P",{"data-svelte-h":!0}),d(m)!=="svelte-16klr56"&&(m.textContent=M),b=a(o),g(c.$$.fragment,o)},m(o,w){p(o,m,w),p(o,b,w),h(c,o,w),f=!0},p:ut,i(o){f||(k(c.$$.fragment,o),f=!0)},o(o){v(c.$$.fragment,o),f=!1},d(o){o&&(n(m),n(b)),$(c,o)}}}function Ct(ne){let m,M="sequence pair mask has the following format:",b,c,f;return c=new gt({props:{code:"MCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMEElN0MlMjBmaXJzdCUyMHNlcXVlbmNlJTIwJTIwJTIwJTIwJTdDJTIwc2Vjb25kJTIwc2VxdWVuY2UlMjAlN0M=",highlighted:`0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1 1
| first sequence    | second sequence |`,wrap:!1}}),{c(){m=i("p"),m.textContent=M,b=s(),u(c.$$.fragment)},l(o){m=l(o,"P",{"data-svelte-h":!0}),d(m)!=="svelte-16klr56"&&(m.textContent=M),b=a(o),g(c.$$.fragment,o)},m(o,w){p(o,m,w),p(o,b,w),h(c,o,w),f=!0},p:ut,i(o){f||(k(c.$$.fragment,o),f=!0)},o(o){v(c.$$.fragment,o),f=!1},d(o){o&&(n(m),n(b)),$(c,o)}}}function xt(ne){let m,M,b,c,f,o,w,he,F,Re=`The CPM model was proposed in <a href="https://arxiv.org/abs/2012.00413" rel="nofollow">CPM: A Large-scale Generative Chinese Pre-trained Language Model</a> by Zhengyan Zhang, Xu Han, Hao Zhou, Pei Ke, Yuxian Gu, Deming Ye, Yujia Qin,
Yusheng Su, Haozhe Ji, Jian Guan, Fanchao Qi, Xiaozhi Wang, Yanan Zheng, Guoyang Zeng, Huanqi Cao, Shengqi Chen,
Daixuan Li, Zhenbo Sun, Zhiyuan Liu, Minlie Huang, Wentao Han, Jie Tang, Juanzi Li, Xiaoyan Zhu, Maosong Sun.`,ke,V,Qe="The abstract from the paper is the following:",ve,S,Ke=`<em>Pre-trained Language Models (PLMs) have proven to be beneficial for various downstream NLP tasks. Recently, GPT-3,
with 175 billion parameters and 570GB training data, drew a lot of attention due to the capacity of few-shot (even
zero-shot) learning. However, applying GPT-3 to address Chinese NLP tasks is still challenging, as the training corpus
of GPT-3 is primarily English, and the parameters are not publicly available. In this technical report, we release the
Chinese Pre-trained Language Model (CPM) with generative pre-training on large-scale Chinese training data. To the best
of our knowledge, CPM, with 2.6 billion parameters and 100GB Chinese training data, is the largest Chinese pre-trained
language model, which could facilitate several downstream Chinese NLP tasks, such as conversation, essay generation,
cloze test, and language understanding. Extensive experiments demonstrate that CPM achieves strong performance on many
NLP tasks in the settings of few-shot (even zero-shot) learning.</em>`,$e,X,et=`This model was contributed by <a href="https://huggingface.co/canwenxu" rel="nofollow">canwenxu</a>. The original implementation can be found
here: <a href="https://github.com/TsinghuaAI/CPM-Generate" rel="nofollow">https://github.com/TsinghuaAI/CPM-Generate</a>`,be,G,tt="Note: We only have a tokenizer here, since the model architecture is the same as GPT-2.",we,O,Ce,_,B,Ie,se,nt="Runs pre-tokenization with Jieba segmentation tool. It is used in CPM models.",qe,L,Z,Pe,ae,st=`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. An XLNet sequence has the following format:`,je,oe,at="<li>single sequence: <code>X &lt;sep&gt; &lt;cls&gt;</code></li> <li>pair of sequences: <code>A &lt;sep&gt; B &lt;sep&gt; &lt;cls&gt;</code></li>",Ae,P,Y,Je,re,ot="Converts a sequence of tokens (strings for sub-words) in a single string.",Ne,y,W,He,ie,rt="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLNet",Ee,j,Ue,le,it="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",Fe,A,R,Ve,pe,lt=`Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer <code>prepare_for_model</code> method.`,xe,Q,ye,x,K,Se,me,pt="Runs pre-tokenization with Jieba segmentation tool. It is used in CPM models.",Xe,z,ee,Ge,ce,mt=`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. An XLNet sequence has the following format:`,Oe,de,ct="<li>single sequence: <code>X &lt;sep&gt; &lt;cls&gt;</code></li> <li>pair of sequences: <code>A &lt;sep&gt; B &lt;sep&gt; &lt;cls&gt;</code></li>",Be,T,te,Ze,fe,dt="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLNet",Ye,J,We,_e,ft="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",Te,ge,Me;return f=new De({props:{title:"CPM",local:"cpm",headingTag:"h1"}}),w=new De({props:{title:"Overview",local:"overview",headingTag:"h2"}}),O=new De({props:{title:"CpmTokenizer",local:"transformers.CpmTokenizer",headingTag:"h2"}}),B=new U({props:{name:"class transformers.CpmTokenizer",anchor:"transformers.CpmTokenizer",parameters:[{name:"vocab_file",val:""},{name:"do_lower_case",val:" = False"},{name:"remove_space",val:" = True"},{name:"keep_accents",val:" = False"},{name:"bos_token",val:" = '<s>'"},{name:"eos_token",val:" = '</s>'"},{name:"unk_token",val:" = '<unk>'"},{name:"sep_token",val:" = '<sep>'"},{name:"pad_token",val:" = '<pad>'"},{name:"cls_token",val:" = '<cls>'"},{name:"mask_token",val:" = '<mask>'"},{name:"additional_special_tokens",val:" = ['<eop>', '<eod>']"},{name:"sp_model_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm.py#L38"}}),Z=new U({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.CpmTokenizer.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"transformers.CpmTokenizer.build_inputs_with_special_tokens.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs to which the special tokens will be added.`,name:"token_ids_0"},{anchor:"transformers.CpmTokenizer.build_inputs_with_special_tokens.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm.py#L245",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),Y=new U({props:{name:"convert_tokens_to_string",anchor:"transformers.CpmTokenizer.convert_tokens_to_string",parameters:[{name:"tokens",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm.py#L239"}}),W=new U({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.CpmTokenizer.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"transformers.CpmTokenizer.create_token_type_ids_from_sequences.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.CpmTokenizer.create_token_type_ids_from_sequences.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm.py#L300",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),j=new _t({props:{anchor:"transformers.CpmTokenizer.create_token_type_ids_from_sequences.example",$$slots:{default:[wt]},$$scope:{ctx:ne}}}),R=new U({props:{name:"get_special_tokens_mask",anchor:"transformers.CpmTokenizer.get_special_tokens_mask",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"},{name:"already_has_special_tokens",val:": bool = False"}],parametersDescription:[{anchor:"transformers.CpmTokenizer.get_special_tokens_mask.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.CpmTokenizer.get_special_tokens_mask.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"},{anchor:"transformers.CpmTokenizer.get_special_tokens_mask.already_has_special_tokens",description:`<strong>already_has_special_tokens</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the token list is already formatted with special tokens for the model.`,name:"already_has_special_tokens"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm.py#L271",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),Q=new De({props:{title:"CpmTokenizerFast",local:"transformers.CpmTokenizerFast",headingTag:"h2"}}),K=new U({props:{name:"class transformers.CpmTokenizerFast",anchor:"transformers.CpmTokenizerFast",parameters:[{name:"vocab_file",val:" = None"},{name:"tokenizer_file",val:" = None"},{name:"do_lower_case",val:" = False"},{name:"remove_space",val:" = True"},{name:"keep_accents",val:" = False"},{name:"bos_token",val:" = '<s>'"},{name:"eos_token",val:" = '</s>'"},{name:"unk_token",val:" = '<unk>'"},{name:"sep_token",val:" = '<sep>'"},{name:"pad_token",val:" = '<pad>'"},{name:"cls_token",val:" = '<cls>'"},{name:"mask_token",val:" = '<mask>'"},{name:"additional_special_tokens",val:" = ['<eop>', '<eod>']"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm_fast.py#L38"}}),ee=new U({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.CpmTokenizerFast.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"transformers.CpmTokenizerFast.build_inputs_with_special_tokens.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs to which the special tokens will be added.`,name:"token_ids_0"},{anchor:"transformers.CpmTokenizerFast.build_inputs_with_special_tokens.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm_fast.py#L160",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),te=new U({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.CpmTokenizerFast.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = None"}],parametersDescription:[{anchor:"transformers.CpmTokenizerFast.create_token_type_ids_from_sequences.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.CpmTokenizerFast.create_token_type_ids_from_sequences.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm_fast.py#L186",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),J=new _t({props:{anchor:"transformers.CpmTokenizerFast.create_token_type_ids_from_sequences.example",$$slots:{default:[Ct]},$$scope:{ctx:ne}}}),{c(){m=i("meta"),M=s(),b=i("p"),c=s(),u(f.$$.fragment),o=s(),u(w.$$.fragment),he=s(),F=i("p"),F.innerHTML=Re,ke=s(),V=i("p"),V.textContent=Qe,ve=s(),S=i("p"),S.innerHTML=Ke,$e=s(),X=i("p"),X.innerHTML=et,be=s(),G=i("p"),G.textContent=tt,we=s(),u(O.$$.fragment),Ce=s(),_=i("div"),u(B.$$.fragment),Ie=s(),se=i("p"),se.textContent=nt,qe=s(),L=i("div"),u(Z.$$.fragment),Pe=s(),ae=i("p"),ae.textContent=st,je=s(),oe=i("ul"),oe.innerHTML=at,Ae=s(),P=i("div"),u(Y.$$.fragment),Je=s(),re=i("p"),re.textContent=ot,Ne=s(),y=i("div"),u(W.$$.fragment),He=s(),ie=i("p"),ie.textContent=rt,Ee=s(),u(j.$$.fragment),Ue=s(),le=i("p"),le.innerHTML=it,Fe=s(),A=i("div"),u(R.$$.fragment),Ve=s(),pe=i("p"),pe.innerHTML=lt,xe=s(),u(Q.$$.fragment),ye=s(),x=i("div"),u(K.$$.fragment),Se=s(),me=i("p"),me.textContent=pt,Xe=s(),z=i("div"),u(ee.$$.fragment),Ge=s(),ce=i("p"),ce.textContent=mt,Oe=s(),de=i("ul"),de.innerHTML=ct,Be=s(),T=i("div"),u(te.$$.fragment),Ze=s(),fe=i("p"),fe.textContent=dt,Ye=s(),u(J.$$.fragment),We=s(),_e=i("p"),_e.innerHTML=ft,Te=s(),ge=i("p"),this.h()},l(e){const r=bt("svelte-u9bgzb",document.head);m=l(r,"META",{name:!0,content:!0}),r.forEach(n),M=a(e),b=l(e,"P",{}),D(b).forEach(n),c=a(e),g(f.$$.fragment,e),o=a(e),g(w.$$.fragment,e),he=a(e),F=l(e,"P",{"data-svelte-h":!0}),d(F)!=="svelte-pb6aeb"&&(F.innerHTML=Re),ke=a(e),V=l(e,"P",{"data-svelte-h":!0}),d(V)!=="svelte-vfdo9a"&&(V.textContent=Qe),ve=a(e),S=l(e,"P",{"data-svelte-h":!0}),d(S)!=="svelte-2grs0w"&&(S.innerHTML=Ke),$e=a(e),X=l(e,"P",{"data-svelte-h":!0}),d(X)!=="svelte-deid5f"&&(X.innerHTML=et),be=a(e),G=l(e,"P",{"data-svelte-h":!0}),d(G)!=="svelte-pxyeqe"&&(G.textContent=tt),we=a(e),g(O.$$.fragment,e),Ce=a(e),_=l(e,"DIV",{class:!0});var C=D(_);g(B.$$.fragment,C),Ie=a(C),se=l(C,"P",{"data-svelte-h":!0}),d(se)!=="svelte-ejpd0l"&&(se.textContent=nt),qe=a(C),L=l(C,"DIV",{class:!0});var q=D(L);g(Z.$$.fragment,q),Pe=a(q),ae=l(q,"P",{"data-svelte-h":!0}),d(ae)!=="svelte-1dgk30w"&&(ae.textContent=st),je=a(q),oe=l(q,"UL",{"data-svelte-h":!0}),d(oe)!=="svelte-zi1mnq"&&(oe.innerHTML=at),q.forEach(n),Ae=a(C),P=l(C,"DIV",{class:!0});var Le=D(P);g(Y.$$.fragment,Le),Je=a(Le),re=l(Le,"P",{"data-svelte-h":!0}),d(re)!=="svelte-1ne8awa"&&(re.textContent=ot),Le.forEach(n),Ne=a(C),y=l(C,"DIV",{class:!0});var N=D(y);g(W.$$.fragment,N),He=a(N),ie=l(N,"P",{"data-svelte-h":!0}),d(ie)!=="svelte-1nwvqaq"&&(ie.textContent=rt),Ee=a(N),g(j.$$.fragment,N),Ue=a(N),le=l(N,"P",{"data-svelte-h":!0}),d(le)!=="svelte-owoxgn"&&(le.innerHTML=it),N.forEach(n),Fe=a(C),A=l(C,"DIV",{class:!0});var ze=D(A);g(R.$$.fragment,ze),Ve=a(ze),pe=l(ze,"P",{"data-svelte-h":!0}),d(pe)!=="svelte-1f4f5kp"&&(pe.innerHTML=lt),ze.forEach(n),C.forEach(n),xe=a(e),g(Q.$$.fragment,e),ye=a(e),x=l(e,"DIV",{class:!0});var H=D(x);g(K.$$.fragment,H),Se=a(H),me=l(H,"P",{"data-svelte-h":!0}),d(me)!=="svelte-ejpd0l"&&(me.textContent=pt),Xe=a(H),z=l(H,"DIV",{class:!0});var ue=D(z);g(ee.$$.fragment,ue),Ge=a(ue),ce=l(ue,"P",{"data-svelte-h":!0}),d(ce)!=="svelte-1dgk30w"&&(ce.textContent=mt),Oe=a(ue),de=l(ue,"UL",{"data-svelte-h":!0}),d(de)!=="svelte-zi1mnq"&&(de.innerHTML=ct),ue.forEach(n),Be=a(H),T=l(H,"DIV",{class:!0});var E=D(T);g(te.$$.fragment,E),Ze=a(E),fe=l(E,"P",{"data-svelte-h":!0}),d(fe)!=="svelte-1nwvqaq"&&(fe.textContent=dt),Ye=a(E),g(J.$$.fragment,E),We=a(E),_e=l(E,"P",{"data-svelte-h":!0}),d(_e)!=="svelte-owoxgn"&&(_e.innerHTML=ft),E.forEach(n),H.forEach(n),Te=a(e),ge=l(e,"P",{}),D(ge).forEach(n),this.h()},h(){I(m,"name","hf:doc:metadata"),I(m,"content",yt),I(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,r){t(document.head,m),p(e,M,r),p(e,b,r),p(e,c,r),h(f,e,r),p(e,o,r),h(w,e,r),p(e,he,r),p(e,F,r),p(e,ke,r),p(e,V,r),p(e,ve,r),p(e,S,r),p(e,$e,r),p(e,X,r),p(e,be,r),p(e,G,r),p(e,we,r),h(O,e,r),p(e,Ce,r),p(e,_,r),h(B,_,null),t(_,Ie),t(_,se),t(_,qe),t(_,L),h(Z,L,null),t(L,Pe),t(L,ae),t(L,je),t(L,oe),t(_,Ae),t(_,P),h(Y,P,null),t(P,Je),t(P,re),t(_,Ne),t(_,y),h(W,y,null),t(y,He),t(y,ie),t(y,Ee),h(j,y,null),t(y,Ue),t(y,le),t(_,Fe),t(_,A),h(R,A,null),t(A,Ve),t(A,pe),p(e,xe,r),h(Q,e,r),p(e,ye,r),p(e,x,r),h(K,x,null),t(x,Se),t(x,me),t(x,Xe),t(x,z),h(ee,z,null),t(z,Ge),t(z,ce),t(z,Oe),t(z,de),t(x,Be),t(x,T),h(te,T,null),t(T,Ze),t(T,fe),t(T,Ye),h(J,T,null),t(T,We),t(T,_e),p(e,Te,r),p(e,ge,r),Me=!0},p(e,[r]){const C={};r&2&&(C.$$scope={dirty:r,ctx:e}),j.$set(C);const q={};r&2&&(q.$$scope={dirty:r,ctx:e}),J.$set(q)},i(e){Me||(k(f.$$.fragment,e),k(w.$$.fragment,e),k(O.$$.fragment,e),k(B.$$.fragment,e),k(Z.$$.fragment,e),k(Y.$$.fragment,e),k(W.$$.fragment,e),k(j.$$.fragment,e),k(R.$$.fragment,e),k(Q.$$.fragment,e),k(K.$$.fragment,e),k(ee.$$.fragment,e),k(te.$$.fragment,e),k(J.$$.fragment,e),Me=!0)},o(e){v(f.$$.fragment,e),v(w.$$.fragment,e),v(O.$$.fragment,e),v(B.$$.fragment,e),v(Z.$$.fragment,e),v(Y.$$.fragment,e),v(W.$$.fragment,e),v(j.$$.fragment,e),v(R.$$.fragment,e),v(Q.$$.fragment,e),v(K.$$.fragment,e),v(ee.$$.fragment,e),v(te.$$.fragment,e),v(J.$$.fragment,e),Me=!1},d(e){e&&(n(M),n(b),n(c),n(o),n(he),n(F),n(ke),n(V),n(ve),n(S),n($e),n(X),n(be),n(G),n(we),n(Ce),n(_),n(xe),n(ye),n(x),n(Te),n(ge)),n(m),$(f,e),$(w,e),$(O,e),$(B),$(Z),$(Y),$(W),$(j),$(R),$(Q,e),$(K),$(ee),$(te),$(J)}}}const yt='{"title":"CPM","local":"cpm","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"CpmTokenizer","local":"transformers.CpmTokenizer","sections":[],"depth":2},{"title":"CpmTokenizerFast","local":"transformers.CpmTokenizerFast","sections":[],"depth":2}],"depth":1}';function Tt(ne){return kt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pt extends vt{constructor(m){super(),$t(this,m,Tt,xt,ht,{})}}export{Pt as component};
