import{s as gt,o as ht,n as We}from"../chunks/scheduler.9bc65507.js";import{S as kt,i as $t,g as l,s as a,r as g,A as vt,h as p,f as n,c as o,j as I,u as h,x as f,k as D,y as t,a as m,v as k,d as $,t as v,w as b}from"../chunks/index.707bf1b6.js";import{T as bt}from"../chunks/Tip.c2ecdbf4.js";import{D as V}from"../chunks/Docstring.17db21ae.js";import{C as ut}from"../chunks/CodeBlock.54a9f38d.js";import{E as _t}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as Ie}from"../chunks/Heading.342b1fa6.js";function wt(P){let i,x=`CPM’s architecture is the same as GPT-2, except for tokenization method. Refer to <a href="gpt2">GPT-2 documentation</a> for
API reference information.`;return{c(){i=l("p"),i.innerHTML=x},l(d){i=p(d,"P",{"data-svelte-h":!0}),f(i)!=="svelte-fdozrf"&&(i.innerHTML=x)},m(d,c){m(d,i,c)},p:We,d(d){d&&n(i)}}}function Ct(P){let i,x="sequence pair mask has the following format:",d,c,_;return c=new ut({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(){i=l("p"),i.textContent=x,d=a(),g(c.$$.fragment)},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-16klr56"&&(i.textContent=x),d=o(r),h(c.$$.fragment,r)},m(r,w){m(r,i,w),m(r,d,w),k(c,r,w),_=!0},p:We,i(r){_||($(c.$$.fragment,r),_=!0)},o(r){v(c.$$.fragment,r),_=!1},d(r){r&&(n(i),n(d)),b(c,r)}}}function xt(P){let i,x="sequence pair mask has the following format:",d,c,_;return c=new ut({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(){i=l("p"),i.textContent=x,d=a(),g(c.$$.fragment)},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-16klr56"&&(i.textContent=x),d=o(r),h(c.$$.fragment,r)},m(r,w){m(r,i,w),m(r,d,w),k(c,r,w),_=!0},p:We,i(r){_||($(c.$$.fragment,r),_=!0)},o(r){v(c.$$.fragment,r),_=!1},d(r){r&&(n(i),n(d)),b(c,r)}}}function Tt(P){let i,x,d,c,_,r,w,ke,G,Qe=`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.`,$e,O,Ke="The abstract from the paper is the following:",ve,S,et=`<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>`,be,X,tt=`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>`,we,j,Ce,B,xe,u,Z,De,ae,nt="Runs pre-tokenization with Jieba segmentation tool. It is used in CPM models.",qe,L,Y,Pe,oe,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,re,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,A,R,Je,ie,ot="Converts a sequence of tokens (strings for sub-words) in a single string.",He,M,W,Ee,le,rt="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLNet",Ne,J,Ue,pe,it="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",Fe,H,Q,Ve,me,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.`,Te,K,Me,T,ee,Ge,ce,pt="Runs pre-tokenization with Jieba segmentation tool. It is used in CPM models.",Oe,z,te,Se,de,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:`,Xe,fe,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,y,ne,Ze,_e,dt="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLNet",Ye,E,Re,ue,ft="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",ye,he,Le;return _=new Ie({props:{title:"CPM",local:"cpm",headingTag:"h1"}}),w=new Ie({props:{title:"Overview",local:"overview",headingTag:"h2"}}),j=new bt({props:{$$slots:{default:[wt]},$$scope:{ctx:P}}}),B=new Ie({props:{title:"CpmTokenizer",local:"transformers.CpmTokenizer",headingTag:"h2"}}),Z=new V({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:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/cpm/tokenization_cpm.py#L38"}}),Y=new V({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.CpmTokenizer.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = 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>
`}}),R=new V({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 V({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.CpmTokenizer.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = 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:[Ct]},$$scope:{ctx:P}}}),Q=new V({props:{name:"get_special_tokens_mask",anchor:"transformers.CpmTokenizer.get_special_tokens_mask",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = 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>
`}}),K=new Ie({props:{title:"CpmTokenizerFast",local:"transformers.CpmTokenizerFast",headingTag:"h2"}}),ee=new V({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"}}),te=new V({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.CpmTokenizerFast.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = 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>
`}}),ne=new V({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.CpmTokenizerFast.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = 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>
`}}),E=new _t({props:{anchor:"transformers.CpmTokenizerFast.create_token_type_ids_from_sequences.example",$$slots:{default:[xt]},$$scope:{ctx:P}}}),{c(){i=l("meta"),x=a(),d=l("p"),c=a(),g(_.$$.fragment),r=a(),g(w.$$.fragment),ke=a(),G=l("p"),G.innerHTML=Qe,$e=a(),O=l("p"),O.textContent=Ke,ve=a(),S=l("p"),S.innerHTML=et,be=a(),X=l("p"),X.innerHTML=tt,we=a(),g(j.$$.fragment),Ce=a(),g(B.$$.fragment),xe=a(),u=l("div"),g(Z.$$.fragment),De=a(),ae=l("p"),ae.textContent=nt,qe=a(),L=l("div"),g(Y.$$.fragment),Pe=a(),oe=l("p"),oe.textContent=st,je=a(),re=l("ul"),re.innerHTML=at,Ae=a(),A=l("div"),g(R.$$.fragment),Je=a(),ie=l("p"),ie.textContent=ot,He=a(),M=l("div"),g(W.$$.fragment),Ee=a(),le=l("p"),le.textContent=rt,Ne=a(),g(J.$$.fragment),Ue=a(),pe=l("p"),pe.innerHTML=it,Fe=a(),H=l("div"),g(Q.$$.fragment),Ve=a(),me=l("p"),me.innerHTML=lt,Te=a(),g(K.$$.fragment),Me=a(),T=l("div"),g(ee.$$.fragment),Ge=a(),ce=l("p"),ce.textContent=pt,Oe=a(),z=l("div"),g(te.$$.fragment),Se=a(),de=l("p"),de.textContent=mt,Xe=a(),fe=l("ul"),fe.innerHTML=ct,Be=a(),y=l("div"),g(ne.$$.fragment),Ze=a(),_e=l("p"),_e.textContent=dt,Ye=a(),g(E.$$.fragment),Re=a(),ue=l("p"),ue.innerHTML=ft,ye=a(),he=l("p"),this.h()},l(e){const s=vt("svelte-u9bgzb",document.head);i=p(s,"META",{name:!0,content:!0}),s.forEach(n),x=o(e),d=p(e,"P",{}),I(d).forEach(n),c=o(e),h(_.$$.fragment,e),r=o(e),h(w.$$.fragment,e),ke=o(e),G=p(e,"P",{"data-svelte-h":!0}),f(G)!=="svelte-pb6aeb"&&(G.innerHTML=Qe),$e=o(e),O=p(e,"P",{"data-svelte-h":!0}),f(O)!=="svelte-vfdo9a"&&(O.textContent=Ke),ve=o(e),S=p(e,"P",{"data-svelte-h":!0}),f(S)!=="svelte-2grs0w"&&(S.innerHTML=et),be=o(e),X=p(e,"P",{"data-svelte-h":!0}),f(X)!=="svelte-deid5f"&&(X.innerHTML=tt),we=o(e),h(j.$$.fragment,e),Ce=o(e),h(B.$$.fragment,e),xe=o(e),u=p(e,"DIV",{class:!0});var C=I(u);h(Z.$$.fragment,C),De=o(C),ae=p(C,"P",{"data-svelte-h":!0}),f(ae)!=="svelte-ejpd0l"&&(ae.textContent=nt),qe=o(C),L=p(C,"DIV",{class:!0});var q=I(L);h(Y.$$.fragment,q),Pe=o(q),oe=p(q,"P",{"data-svelte-h":!0}),f(oe)!=="svelte-1dgk30w"&&(oe.textContent=st),je=o(q),re=p(q,"UL",{"data-svelte-h":!0}),f(re)!=="svelte-zi1mnq"&&(re.innerHTML=at),q.forEach(n),Ae=o(C),A=p(C,"DIV",{class:!0});var se=I(A);h(R.$$.fragment,se),Je=o(se),ie=p(se,"P",{"data-svelte-h":!0}),f(ie)!=="svelte-1ne8awa"&&(ie.textContent=ot),se.forEach(n),He=o(C),M=p(C,"DIV",{class:!0});var N=I(M);h(W.$$.fragment,N),Ee=o(N),le=p(N,"P",{"data-svelte-h":!0}),f(le)!=="svelte-1nwvqaq"&&(le.textContent=rt),Ne=o(N),h(J.$$.fragment,N),Ue=o(N),pe=p(N,"P",{"data-svelte-h":!0}),f(pe)!=="svelte-owoxgn"&&(pe.innerHTML=it),N.forEach(n),Fe=o(C),H=p(C,"DIV",{class:!0});var ze=I(H);h(Q.$$.fragment,ze),Ve=o(ze),me=p(ze,"P",{"data-svelte-h":!0}),f(me)!=="svelte-1f4f5kp"&&(me.innerHTML=lt),ze.forEach(n),C.forEach(n),Te=o(e),h(K.$$.fragment,e),Me=o(e),T=p(e,"DIV",{class:!0});var U=I(T);h(ee.$$.fragment,U),Ge=o(U),ce=p(U,"P",{"data-svelte-h":!0}),f(ce)!=="svelte-ejpd0l"&&(ce.textContent=pt),Oe=o(U),z=p(U,"DIV",{class:!0});var ge=I(z);h(te.$$.fragment,ge),Se=o(ge),de=p(ge,"P",{"data-svelte-h":!0}),f(de)!=="svelte-1dgk30w"&&(de.textContent=mt),Xe=o(ge),fe=p(ge,"UL",{"data-svelte-h":!0}),f(fe)!=="svelte-zi1mnq"&&(fe.innerHTML=ct),ge.forEach(n),Be=o(U),y=p(U,"DIV",{class:!0});var F=I(y);h(ne.$$.fragment,F),Ze=o(F),_e=p(F,"P",{"data-svelte-h":!0}),f(_e)!=="svelte-1nwvqaq"&&(_e.textContent=dt),Ye=o(F),h(E.$$.fragment,F),Re=o(F),ue=p(F,"P",{"data-svelte-h":!0}),f(ue)!=="svelte-owoxgn"&&(ue.innerHTML=ft),F.forEach(n),U.forEach(n),ye=o(e),he=p(e,"P",{}),I(he).forEach(n),this.h()},h(){D(i,"name","hf:doc:metadata"),D(i,"content",Mt),D(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(u,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(T,"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,s){t(document.head,i),m(e,x,s),m(e,d,s),m(e,c,s),k(_,e,s),m(e,r,s),k(w,e,s),m(e,ke,s),m(e,G,s),m(e,$e,s),m(e,O,s),m(e,ve,s),m(e,S,s),m(e,be,s),m(e,X,s),m(e,we,s),k(j,e,s),m(e,Ce,s),k(B,e,s),m(e,xe,s),m(e,u,s),k(Z,u,null),t(u,De),t(u,ae),t(u,qe),t(u,L),k(Y,L,null),t(L,Pe),t(L,oe),t(L,je),t(L,re),t(u,Ae),t(u,A),k(R,A,null),t(A,Je),t(A,ie),t(u,He),t(u,M),k(W,M,null),t(M,Ee),t(M,le),t(M,Ne),k(J,M,null),t(M,Ue),t(M,pe),t(u,Fe),t(u,H),k(Q,H,null),t(H,Ve),t(H,me),m(e,Te,s),k(K,e,s),m(e,Me,s),m(e,T,s),k(ee,T,null),t(T,Ge),t(T,ce),t(T,Oe),t(T,z),k(te,z,null),t(z,Se),t(z,de),t(z,Xe),t(z,fe),t(T,Be),t(T,y),k(ne,y,null),t(y,Ze),t(y,_e),t(y,Ye),k(E,y,null),t(y,Re),t(y,ue),m(e,ye,s),m(e,he,s),Le=!0},p(e,[s]){const C={};s&2&&(C.$$scope={dirty:s,ctx:e}),j.$set(C);const q={};s&2&&(q.$$scope={dirty:s,ctx:e}),J.$set(q);const se={};s&2&&(se.$$scope={dirty:s,ctx:e}),E.$set(se)},i(e){Le||($(_.$$.fragment,e),$(w.$$.fragment,e),$(j.$$.fragment,e),$(B.$$.fragment,e),$(Z.$$.fragment,e),$(Y.$$.fragment,e),$(R.$$.fragment,e),$(W.$$.fragment,e),$(J.$$.fragment,e),$(Q.$$.fragment,e),$(K.$$.fragment,e),$(ee.$$.fragment,e),$(te.$$.fragment,e),$(ne.$$.fragment,e),$(E.$$.fragment,e),Le=!0)},o(e){v(_.$$.fragment,e),v(w.$$.fragment,e),v(j.$$.fragment,e),v(B.$$.fragment,e),v(Z.$$.fragment,e),v(Y.$$.fragment,e),v(R.$$.fragment,e),v(W.$$.fragment,e),v(J.$$.fragment,e),v(Q.$$.fragment,e),v(K.$$.fragment,e),v(ee.$$.fragment,e),v(te.$$.fragment,e),v(ne.$$.fragment,e),v(E.$$.fragment,e),Le=!1},d(e){e&&(n(x),n(d),n(c),n(r),n(ke),n(G),n($e),n(O),n(ve),n(S),n(be),n(X),n(we),n(Ce),n(xe),n(u),n(Te),n(Me),n(T),n(ye),n(he)),n(i),b(_,e),b(w,e),b(j,e),b(B,e),b(Z),b(Y),b(R),b(W),b(J),b(Q),b(K,e),b(ee),b(te),b(ne),b(E)}}}const Mt='{"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 yt(P){return ht(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class At extends kt{constructor(i){super(),$t(this,i,yt,Tt,gt,{})}}export{At as component};
