import{s as Kt,o as en,n as Rt}from"../chunks/scheduler.9bc65507.js";import{S as tn,i as nn,g as s,s as o,u as g,A as sn,h as a,f as n,c as r,j as h,v as k,y as d,k as c,o as t,a as p,w as v,d as $,t as b,x as w}from"../chunks/index.78c82d43.js";import{D as X}from"../chunks/Docstring.f3d04bd2.js";import{C as Qt}from"../chunks/CodeBlock.48618ec2.js";import{I as Re}from"../chunks/IconCopyLink.bedaa44d.js";import{E as Wt}from"../chunks/ExampleCodeBlock.872b014d.js";function an(ce){let m,z="sequence pair mask has the following format:",C,f,_;return f=new Qt({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 |`}}),{c(){m=s("p"),m.textContent=z,C=o(),g(f.$$.fragment)},l(i){m=a(i,"P",{"data-svelte-h":!0}),d(m)!=="svelte-16klr56"&&(m.textContent=z),C=r(i),k(f.$$.fragment,i)},m(i,y){p(i,m,y),p(i,C,y),v(f,i,y),_=!0},p:Rt,i(i){_||($(f.$$.fragment,i),_=!0)},o(i){b(f.$$.fragment,i),_=!1},d(i){i&&(n(m),n(C)),w(f,i)}}}function on(ce){let m,z="sequence pair mask has the following format:",C,f,_;return f=new Qt({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 |`}}),{c(){m=s("p"),m.textContent=z,C=o(),g(f.$$.fragment)},l(i){m=a(i,"P",{"data-svelte-h":!0}),d(m)!=="svelte-16klr56"&&(m.textContent=z),C=r(i),k(f.$$.fragment,i)},m(i,y){p(i,m,y),p(i,C,y),v(f,i,y),_=!0},p:Rt,i(i){_||($(f.$$.fragment,i),_=!0)},o(i){b(f.$$.fragment,i),_=!1},d(i){i&&(n(m),n(C)),w(f,i)}}}function rn(ce){let m,z,C,f,_,i,y,G,Qe,me,wt="CPM",Ae,D,j,ze,B,Ke,de,Ct="Overview",je,Z,yt=`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.`,Ee,Y,xt="The abstract from the paper is the following:",Ne,W,Tt=`<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>`,Je,R,Mt=`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>`,He,Q,Lt="Note: We only have a tokenizer here, since the model architecture is the same as GPT-2.",Se,q,E,Ie,K,et,he,zt="CpmTokenizer",Ue,u,ee,tt,fe,It="Runs pre-tokenization with Jieba segmentation tool. It is used in CPM models.",nt,I,te,st,_e,Pt=`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:`,at,ue,Dt="<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>",ot,N,ne,rt,ge,qt="Converts a sequence of tokens (strings for sub-words) in a single string.",it,T,se,lt,ke,At="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLNet",pt,J,ct,ve,jt="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",mt,H,ae,dt,$e,Et=`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.`,Fe,A,S,Pe,oe,ht,be,Nt="CpmTokenizerFast",Ve,x,re,ft,we,Jt="Runs pre-tokenization with Jieba segmentation tool. It is used in CPM models.",_t,P,ie,ut,Ce,Ht=`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:`,gt,ye,St="<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>",kt,M,le,vt,xe,Ut="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLNet",$t,U,bt,Te,Ft="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",Oe,De,Xe;return G=new Re({}),B=new Re({}),K=new Re({}),ee=new X({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/v4.33.3/src/transformers/models/cpm/tokenization_cpm.py#L38"}}),te=new X({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/v4.33.3/src/transformers/models/cpm/tokenization_cpm.py#L242",returnDescription:`
<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),ne=new X({props:{name:"convert_tokens_to_string",anchor:"transformers.CpmTokenizer.convert_tokens_to_string",parameters:[{name:"tokens",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/cpm/tokenization_cpm.py#L236"}}),se=new X({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/v4.33.3/src/transformers/models/cpm/tokenization_cpm.py#L297",returnDescription:`
<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),J=new Wt({props:{anchor:"transformers.CpmTokenizer.create_token_type_ids_from_sequences.example",$$slots:{default:[an]},$$scope:{ctx:ce}}}),ae=new X({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/v4.33.3/src/transformers/models/cpm/tokenization_cpm.py#L268",returnDescription:`
<p>A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),oe=new Re({}),re=new X({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/v4.33.3/src/transformers/models/cpm/tokenization_cpm_fast.py#L38"}}),ie=new X({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/v4.33.3/src/transformers/models/cpm/tokenization_cpm_fast.py#L160",returnDescription:`
<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),le=new X({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/v4.33.3/src/transformers/models/cpm/tokenization_cpm_fast.py#L186",returnDescription:`
<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),U=new Wt({props:{anchor:"transformers.CpmTokenizerFast.create_token_type_ids_from_sequences.example",$$slots:{default:[on]},$$scope:{ctx:ce}}}),{c(){m=s("meta"),z=o(),C=s("p"),f=o(),_=s("h1"),i=s("a"),y=s("span"),g(G.$$.fragment),Qe=o(),me=s("span"),me.textContent=wt,Ae=o(),D=s("h2"),j=s("a"),ze=s("span"),g(B.$$.fragment),Ke=o(),de=s("span"),de.textContent=Ct,je=o(),Z=s("p"),Z.innerHTML=yt,Ee=o(),Y=s("p"),Y.textContent=xt,Ne=o(),W=s("p"),W.innerHTML=Tt,Je=o(),R=s("p"),R.innerHTML=Mt,He=o(),Q=s("p"),Q.textContent=Lt,Se=o(),q=s("h2"),E=s("a"),Ie=s("span"),g(K.$$.fragment),et=o(),he=s("span"),he.textContent=zt,Ue=o(),u=s("div"),g(ee.$$.fragment),tt=o(),fe=s("p"),fe.textContent=It,nt=o(),I=s("div"),g(te.$$.fragment),st=o(),_e=s("p"),_e.textContent=Pt,at=o(),ue=s("ul"),ue.innerHTML=Dt,ot=o(),N=s("div"),g(ne.$$.fragment),rt=o(),ge=s("p"),ge.textContent=qt,it=o(),T=s("div"),g(se.$$.fragment),lt=o(),ke=s("p"),ke.textContent=At,pt=o(),g(J.$$.fragment),ct=o(),ve=s("p"),ve.innerHTML=jt,mt=o(),H=s("div"),g(ae.$$.fragment),dt=o(),$e=s("p"),$e.innerHTML=Et,Fe=o(),A=s("h2"),S=s("a"),Pe=s("span"),g(oe.$$.fragment),ht=o(),be=s("span"),be.textContent=Nt,Ve=o(),x=s("div"),g(re.$$.fragment),ft=o(),we=s("p"),we.textContent=Jt,_t=o(),P=s("div"),g(ie.$$.fragment),ut=o(),Ce=s("p"),Ce.textContent=Ht,gt=o(),ye=s("ul"),ye.innerHTML=St,kt=o(),M=s("div"),g(le.$$.fragment),vt=o(),xe=s("p"),xe.textContent=Ut,$t=o(),g(U.$$.fragment),bt=o(),Te=s("p"),Te.innerHTML=Ft,Oe=o(),De=s("p"),this.h()},l(e){const l=sn("svelte-1phssyn",document.head);m=a(l,"META",{name:!0,content:!0}),l.forEach(n),z=r(e),C=a(e,"P",{}),h(C).forEach(n),f=r(e),_=a(e,"H1",{class:!0});var pe=h(_);i=a(pe,"A",{id:!0,class:!0,href:!0});var qe=h(i);y=a(qe,"SPAN",{});var Vt=h(y);k(G.$$.fragment,Vt),Vt.forEach(n),qe.forEach(n),Qe=r(pe),me=a(pe,"SPAN",{"data-svelte-h":!0}),d(me)!=="svelte-i5z6bt"&&(me.textContent=wt),pe.forEach(n),Ae=r(e),D=a(e,"H2",{class:!0});var Ge=h(D);j=a(Ge,"A",{id:!0,class:!0,href:!0});var Ot=h(j);ze=a(Ot,"SPAN",{});var Xt=h(ze);k(B.$$.fragment,Xt),Xt.forEach(n),Ot.forEach(n),Ke=r(Ge),de=a(Ge,"SPAN",{"data-svelte-h":!0}),d(de)!=="svelte-1jsw1pg"&&(de.textContent=Ct),Ge.forEach(n),je=r(e),Z=a(e,"P",{"data-svelte-h":!0}),d(Z)!=="svelte-pb6aeb"&&(Z.innerHTML=yt),Ee=r(e),Y=a(e,"P",{"data-svelte-h":!0}),d(Y)!=="svelte-vfdo9a"&&(Y.textContent=xt),Ne=r(e),W=a(e,"P",{"data-svelte-h":!0}),d(W)!=="svelte-2grs0w"&&(W.innerHTML=Tt),Je=r(e),R=a(e,"P",{"data-svelte-h":!0}),d(R)!=="svelte-deid5f"&&(R.innerHTML=Mt),He=r(e),Q=a(e,"P",{"data-svelte-h":!0}),d(Q)!=="svelte-pxyeqe"&&(Q.textContent=Lt),Se=r(e),q=a(e,"H2",{class:!0});var Be=h(q);E=a(Be,"A",{id:!0,class:!0,href:!0});var Gt=h(E);Ie=a(Gt,"SPAN",{});var Bt=h(Ie);k(K.$$.fragment,Bt),Bt.forEach(n),Gt.forEach(n),et=r(Be),he=a(Be,"SPAN",{"data-svelte-h":!0}),d(he)!=="svelte-oyr9ko"&&(he.textContent=zt),Be.forEach(n),Ue=r(e),u=a(e,"DIV",{class:!0});var L=h(u);k(ee.$$.fragment,L),tt=r(L),fe=a(L,"P",{"data-svelte-h":!0}),d(fe)!=="svelte-ejpd0l"&&(fe.textContent=It),nt=r(L),I=a(L,"DIV",{class:!0});var Me=h(I);k(te.$$.fragment,Me),st=r(Me),_e=a(Me,"P",{"data-svelte-h":!0}),d(_e)!=="svelte-1dgk30w"&&(_e.textContent=Pt),at=r(Me),ue=a(Me,"UL",{"data-svelte-h":!0}),d(ue)!=="svelte-zi1mnq"&&(ue.innerHTML=Dt),Me.forEach(n),ot=r(L),N=a(L,"DIV",{class:!0});var Ze=h(N);k(ne.$$.fragment,Ze),rt=r(Ze),ge=a(Ze,"P",{"data-svelte-h":!0}),d(ge)!=="svelte-1ne8awa"&&(ge.textContent=qt),Ze.forEach(n),it=r(L),T=a(L,"DIV",{class:!0});var F=h(T);k(se.$$.fragment,F),lt=r(F),ke=a(F,"P",{"data-svelte-h":!0}),d(ke)!=="svelte-1nwvqaq"&&(ke.textContent=At),pt=r(F),k(J.$$.fragment,F),ct=r(F),ve=a(F,"P",{"data-svelte-h":!0}),d(ve)!=="svelte-owoxgn"&&(ve.innerHTML=jt),F.forEach(n),mt=r(L),H=a(L,"DIV",{class:!0});var Ye=h(H);k(ae.$$.fragment,Ye),dt=r(Ye),$e=a(Ye,"P",{"data-svelte-h":!0}),d($e)!=="svelte-1f4f5kp"&&($e.innerHTML=Et),Ye.forEach(n),L.forEach(n),Fe=r(e),A=a(e,"H2",{class:!0});var We=h(A);S=a(We,"A",{id:!0,class:!0,href:!0});var Zt=h(S);Pe=a(Zt,"SPAN",{});var Yt=h(Pe);k(oe.$$.fragment,Yt),Yt.forEach(n),Zt.forEach(n),ht=r(We),be=a(We,"SPAN",{"data-svelte-h":!0}),d(be)!=="svelte-1bg8tdi"&&(be.textContent=Nt),We.forEach(n),Ve=r(e),x=a(e,"DIV",{class:!0});var V=h(x);k(re.$$.fragment,V),ft=r(V),we=a(V,"P",{"data-svelte-h":!0}),d(we)!=="svelte-ejpd0l"&&(we.textContent=Jt),_t=r(V),P=a(V,"DIV",{class:!0});var Le=h(P);k(ie.$$.fragment,Le),ut=r(Le),Ce=a(Le,"P",{"data-svelte-h":!0}),d(Ce)!=="svelte-1dgk30w"&&(Ce.textContent=Ht),gt=r(Le),ye=a(Le,"UL",{"data-svelte-h":!0}),d(ye)!=="svelte-zi1mnq"&&(ye.innerHTML=St),Le.forEach(n),kt=r(V),M=a(V,"DIV",{class:!0});var O=h(M);k(le.$$.fragment,O),vt=r(O),xe=a(O,"P",{"data-svelte-h":!0}),d(xe)!=="svelte-1nwvqaq"&&(xe.textContent=Ut),$t=r(O),k(U.$$.fragment,O),bt=r(O),Te=a(O,"P",{"data-svelte-h":!0}),d(Te)!=="svelte-owoxgn"&&(Te.innerHTML=Ft),O.forEach(n),V.forEach(n),Oe=r(e),De=a(e,"P",{}),h(De).forEach(n),this.h()},h(){c(m,"name","hf:doc:metadata"),c(m,"content",JSON.stringify(ln)),c(i,"id","cpm"),c(i,"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(i,"href","#cpm"),c(_,"class","relative group"),c(j,"id","overview"),c(j,"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(j,"href","#overview"),c(D,"class","relative group"),c(E,"id","transformers.CpmTokenizer"),c(E,"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(E,"href","#transformers.CpmTokenizer"),c(q,"class","relative group"),c(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(u,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(S,"id","transformers.CpmTokenizerFast"),c(S,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(S,"href","#transformers.CpmTokenizerFast"),c(A,"class","relative group"),c(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(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,l){t(document.head,m),p(e,z,l),p(e,C,l),p(e,f,l),p(e,_,l),t(_,i),t(i,y),v(G,y,null),t(_,Qe),t(_,me),p(e,Ae,l),p(e,D,l),t(D,j),t(j,ze),v(B,ze,null),t(D,Ke),t(D,de),p(e,je,l),p(e,Z,l),p(e,Ee,l),p(e,Y,l),p(e,Ne,l),p(e,W,l),p(e,Je,l),p(e,R,l),p(e,He,l),p(e,Q,l),p(e,Se,l),p(e,q,l),t(q,E),t(E,Ie),v(K,Ie,null),t(q,et),t(q,he),p(e,Ue,l),p(e,u,l),v(ee,u,null),t(u,tt),t(u,fe),t(u,nt),t(u,I),v(te,I,null),t(I,st),t(I,_e),t(I,at),t(I,ue),t(u,ot),t(u,N),v(ne,N,null),t(N,rt),t(N,ge),t(u,it),t(u,T),v(se,T,null),t(T,lt),t(T,ke),t(T,pt),v(J,T,null),t(T,ct),t(T,ve),t(u,mt),t(u,H),v(ae,H,null),t(H,dt),t(H,$e),p(e,Fe,l),p(e,A,l),t(A,S),t(S,Pe),v(oe,Pe,null),t(A,ht),t(A,be),p(e,Ve,l),p(e,x,l),v(re,x,null),t(x,ft),t(x,we),t(x,_t),t(x,P),v(ie,P,null),t(P,ut),t(P,Ce),t(P,gt),t(P,ye),t(x,kt),t(x,M),v(le,M,null),t(M,vt),t(M,xe),t(M,$t),v(U,M,null),t(M,bt),t(M,Te),p(e,Oe,l),p(e,De,l),Xe=!0},p(e,[l]){const pe={};l&2&&(pe.$$scope={dirty:l,ctx:e}),J.$set(pe);const qe={};l&2&&(qe.$$scope={dirty:l,ctx:e}),U.$set(qe)},i(e){Xe||($(G.$$.fragment,e),$(B.$$.fragment,e),$(K.$$.fragment,e),$(ee.$$.fragment,e),$(te.$$.fragment,e),$(ne.$$.fragment,e),$(se.$$.fragment,e),$(J.$$.fragment,e),$(ae.$$.fragment,e),$(oe.$$.fragment,e),$(re.$$.fragment,e),$(ie.$$.fragment,e),$(le.$$.fragment,e),$(U.$$.fragment,e),Xe=!0)},o(e){b(G.$$.fragment,e),b(B.$$.fragment,e),b(K.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),b(ne.$$.fragment,e),b(se.$$.fragment,e),b(J.$$.fragment,e),b(ae.$$.fragment,e),b(oe.$$.fragment,e),b(re.$$.fragment,e),b(ie.$$.fragment,e),b(le.$$.fragment,e),b(U.$$.fragment,e),Xe=!1},d(e){e&&(n(z),n(C),n(f),n(_),n(Ae),n(D),n(je),n(Z),n(Ee),n(Y),n(Ne),n(W),n(Je),n(R),n(He),n(Q),n(Se),n(q),n(Ue),n(u),n(Fe),n(A),n(Ve),n(x),n(Oe),n(De)),n(m),w(G),w(B),w(K),w(ee),w(te),w(ne),w(se),w(J),w(ae),w(oe),w(re),w(ie),w(le),w(U)}}}const ln={local:"cpm",sections:[{local:"overview",title:"Overview"},{local:"transformers.CpmTokenizer",title:"CpmTokenizer"},{local:"transformers.CpmTokenizerFast",title:"CpmTokenizerFast"}],title:"CPM"};function pn(ce){return en(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class un extends tn{constructor(m){super(),nn(this,m,pn,rn,Kt,{})}}export{un as component};
