import{s as kt,o as $t,n as Ke}from"../chunks/scheduler.25b97de1.js";import{S as vt,i as bt,g as l,s as a,r as _,A as wt,h as p,f as n,c as o,j as I,u,x as f,k as D,y as t,a as m,v as g,d as h,t as k,w as $}from"../chunks/index.d9030fc9.js";import{T as Ct}from"../chunks/Tip.baa67368.js";import{D as V}from"../chunks/Docstring.e257edda.js";import{C as ht}from"../chunks/CodeBlock.e6cd0d95.js";import{E as gt}from"../chunks/ExampleCodeBlock.20db4b6e.js";import{H as qe,E as xt}from"../chunks/EditOnGithub.91d95064.js";function Tt(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:Ke,d(d){d&&n(i)}}}function Mt(P){let i,x="sequence pair mask has the following format:",d,c,v;return c=new ht({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(),_(c.$$.fragment)},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-16klr56"&&(i.textContent=x),d=o(r),u(c.$$.fragment,r)},m(r,w){m(r,i,w),m(r,d,w),g(c,r,w),v=!0},p:Ke,i(r){v||(h(c.$$.fragment,r),v=!0)},o(r){k(c.$$.fragment,r),v=!1},d(r){r&&(n(i),n(d)),$(c,r)}}}function yt(P){let i,x="sequence pair mask has the following format:",d,c,v;return c=new ht({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(),_(c.$$.fragment)},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-16klr56"&&(i.textContent=x),d=o(r),u(c.$$.fragment,r)},m(r,w){m(r,i,w),m(r,d,w),g(c,r,w),v=!0},p:Ke,i(r){v||(h(c.$$.fragment,r),v=!0)},o(r){k(c.$$.fragment,r),v=!1},d(r){r&&(n(i),n(d)),$(c,r)}}}function Lt(P){let i,x,d,c,v,r,w,$e,G,et=`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.`,ve,O,tt="The abstract from the paper is the following:",be,S,nt=`<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>`,we,X,st=`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>`,Ce,j,xe,B,Te,b,Z,Pe,oe,at="Runs pre-tokenization with Jieba segmentation tool. It is used in CPM models.",je,L,Y,Ae,re,ot=`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,ie,rt="<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>",He,A,R,Ee,le,it="Converts a sequence of tokens (strings for sub-words) in a single string.",Ne,M,W,Ue,pe,lt="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLNet",Fe,J,Ve,me,pt="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",Ge,H,Q,Oe,ce,mt=`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.`,Me,K,ye,T,ee,Se,de,ct="Runs pre-tokenization with Jieba segmentation tool. It is used in CPM models.",Xe,z,te,Be,fe,dt=`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:`,Ze,_e,ft="<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>",Ye,y,ne,Re,ue,_t="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLNet",We,E,Qe,ge,ut="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",Le,se,ze,ke,Ie;return v=new qe({props:{title:"CPM",local:"cpm",headingTag:"h1"}}),w=new qe({props:{title:"Overview",local:"overview",headingTag:"h2"}}),j=new Ct({props:{$$slots:{default:[Tt]},$$scope:{ctx:P}}}),B=new qe({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/vr_30929/src/transformers/models/cpm/tokenization_cpm.py#L33"}}),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/vr_30929/src/transformers/models/cpm/tokenization_cpm.py#L239",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/vr_30929/src/transformers/models/cpm/tokenization_cpm.py#L233"}}),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/vr_30929/src/transformers/models/cpm/tokenization_cpm.py#L294",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 gt({props:{anchor:"transformers.CpmTokenizer.create_token_type_ids_from_sequences.example",$$slots:{default:[Mt]},$$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/vr_30929/src/transformers/models/cpm/tokenization_cpm.py#L265",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 qe({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/vr_30929/src/transformers/models/cpm/tokenization_cpm_fast.py#L30"}}),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/vr_30929/src/transformers/models/cpm/tokenization_cpm_fast.py#L152",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/vr_30929/src/transformers/models/cpm/tokenization_cpm_fast.py#L178",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 gt({props:{anchor:"transformers.CpmTokenizerFast.create_token_type_ids_from_sequences.example",$$slots:{default:[yt]},$$scope:{ctx:P}}}),se=new xt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/cpm.md"}}),{c(){i=l("meta"),x=a(),d=l("p"),c=a(),_(v.$$.fragment),r=a(),_(w.$$.fragment),$e=a(),G=l("p"),G.innerHTML=et,ve=a(),O=l("p"),O.textContent=tt,be=a(),S=l("p"),S.innerHTML=nt,we=a(),X=l("p"),X.innerHTML=st,Ce=a(),_(j.$$.fragment),xe=a(),_(B.$$.fragment),Te=a(),b=l("div"),_(Z.$$.fragment),Pe=a(),oe=l("p"),oe.textContent=at,je=a(),L=l("div"),_(Y.$$.fragment),Ae=a(),re=l("p"),re.textContent=ot,Je=a(),ie=l("ul"),ie.innerHTML=rt,He=a(),A=l("div"),_(R.$$.fragment),Ee=a(),le=l("p"),le.textContent=it,Ne=a(),M=l("div"),_(W.$$.fragment),Ue=a(),pe=l("p"),pe.textContent=lt,Fe=a(),_(J.$$.fragment),Ve=a(),me=l("p"),me.innerHTML=pt,Ge=a(),H=l("div"),_(Q.$$.fragment),Oe=a(),ce=l("p"),ce.innerHTML=mt,Me=a(),_(K.$$.fragment),ye=a(),T=l("div"),_(ee.$$.fragment),Se=a(),de=l("p"),de.textContent=ct,Xe=a(),z=l("div"),_(te.$$.fragment),Be=a(),fe=l("p"),fe.textContent=dt,Ze=a(),_e=l("ul"),_e.innerHTML=ft,Ye=a(),y=l("div"),_(ne.$$.fragment),Re=a(),ue=l("p"),ue.textContent=_t,We=a(),_(E.$$.fragment),Qe=a(),ge=l("p"),ge.innerHTML=ut,Le=a(),_(se.$$.fragment),ze=a(),ke=l("p"),this.h()},l(e){const s=wt("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),u(v.$$.fragment,e),r=o(e),u(w.$$.fragment,e),$e=o(e),G=p(e,"P",{"data-svelte-h":!0}),f(G)!=="svelte-pb6aeb"&&(G.innerHTML=et),ve=o(e),O=p(e,"P",{"data-svelte-h":!0}),f(O)!=="svelte-vfdo9a"&&(O.textContent=tt),be=o(e),S=p(e,"P",{"data-svelte-h":!0}),f(S)!=="svelte-2grs0w"&&(S.innerHTML=nt),we=o(e),X=p(e,"P",{"data-svelte-h":!0}),f(X)!=="svelte-deid5f"&&(X.innerHTML=st),Ce=o(e),u(j.$$.fragment,e),xe=o(e),u(B.$$.fragment,e),Te=o(e),b=p(e,"DIV",{class:!0});var C=I(b);u(Z.$$.fragment,C),Pe=o(C),oe=p(C,"P",{"data-svelte-h":!0}),f(oe)!=="svelte-ejpd0l"&&(oe.textContent=at),je=o(C),L=p(C,"DIV",{class:!0});var q=I(L);u(Y.$$.fragment,q),Ae=o(q),re=p(q,"P",{"data-svelte-h":!0}),f(re)!=="svelte-1dgk30w"&&(re.textContent=ot),Je=o(q),ie=p(q,"UL",{"data-svelte-h":!0}),f(ie)!=="svelte-zi1mnq"&&(ie.innerHTML=rt),q.forEach(n),He=o(C),A=p(C,"DIV",{class:!0});var ae=I(A);u(R.$$.fragment,ae),Ee=o(ae),le=p(ae,"P",{"data-svelte-h":!0}),f(le)!=="svelte-1ne8awa"&&(le.textContent=it),ae.forEach(n),Ne=o(C),M=p(C,"DIV",{class:!0});var N=I(M);u(W.$$.fragment,N),Ue=o(N),pe=p(N,"P",{"data-svelte-h":!0}),f(pe)!=="svelte-1nwvqaq"&&(pe.textContent=lt),Fe=o(N),u(J.$$.fragment,N),Ve=o(N),me=p(N,"P",{"data-svelte-h":!0}),f(me)!=="svelte-owoxgn"&&(me.innerHTML=pt),N.forEach(n),Ge=o(C),H=p(C,"DIV",{class:!0});var De=I(H);u(Q.$$.fragment,De),Oe=o(De),ce=p(De,"P",{"data-svelte-h":!0}),f(ce)!=="svelte-1f4f5kp"&&(ce.innerHTML=mt),De.forEach(n),C.forEach(n),Me=o(e),u(K.$$.fragment,e),ye=o(e),T=p(e,"DIV",{class:!0});var U=I(T);u(ee.$$.fragment,U),Se=o(U),de=p(U,"P",{"data-svelte-h":!0}),f(de)!=="svelte-ejpd0l"&&(de.textContent=ct),Xe=o(U),z=p(U,"DIV",{class:!0});var he=I(z);u(te.$$.fragment,he),Be=o(he),fe=p(he,"P",{"data-svelte-h":!0}),f(fe)!=="svelte-1dgk30w"&&(fe.textContent=dt),Ze=o(he),_e=p(he,"UL",{"data-svelte-h":!0}),f(_e)!=="svelte-zi1mnq"&&(_e.innerHTML=ft),he.forEach(n),Ye=o(U),y=p(U,"DIV",{class:!0});var F=I(y);u(ne.$$.fragment,F),Re=o(F),ue=p(F,"P",{"data-svelte-h":!0}),f(ue)!=="svelte-1nwvqaq"&&(ue.textContent=_t),We=o(F),u(E.$$.fragment,F),Qe=o(F),ge=p(F,"P",{"data-svelte-h":!0}),f(ge)!=="svelte-owoxgn"&&(ge.innerHTML=ut),F.forEach(n),U.forEach(n),Le=o(e),u(se.$$.fragment,e),ze=o(e),ke=p(e,"P",{}),I(ke).forEach(n),this.h()},h(){D(i,"name","hf:doc:metadata"),D(i,"content",zt),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(b,"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),g(v,e,s),m(e,r,s),g(w,e,s),m(e,$e,s),m(e,G,s),m(e,ve,s),m(e,O,s),m(e,be,s),m(e,S,s),m(e,we,s),m(e,X,s),m(e,Ce,s),g(j,e,s),m(e,xe,s),g(B,e,s),m(e,Te,s),m(e,b,s),g(Z,b,null),t(b,Pe),t(b,oe),t(b,je),t(b,L),g(Y,L,null),t(L,Ae),t(L,re),t(L,Je),t(L,ie),t(b,He),t(b,A),g(R,A,null),t(A,Ee),t(A,le),t(b,Ne),t(b,M),g(W,M,null),t(M,Ue),t(M,pe),t(M,Fe),g(J,M,null),t(M,Ve),t(M,me),t(b,Ge),t(b,H),g(Q,H,null),t(H,Oe),t(H,ce),m(e,Me,s),g(K,e,s),m(e,ye,s),m(e,T,s),g(ee,T,null),t(T,Se),t(T,de),t(T,Xe),t(T,z),g(te,z,null),t(z,Be),t(z,fe),t(z,Ze),t(z,_e),t(T,Ye),t(T,y),g(ne,y,null),t(y,Re),t(y,ue),t(y,We),g(E,y,null),t(y,Qe),t(y,ge),m(e,Le,s),g(se,e,s),m(e,ze,s),m(e,ke,s),Ie=!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 ae={};s&2&&(ae.$$scope={dirty:s,ctx:e}),E.$set(ae)},i(e){Ie||(h(v.$$.fragment,e),h(w.$$.fragment,e),h(j.$$.fragment,e),h(B.$$.fragment,e),h(Z.$$.fragment,e),h(Y.$$.fragment,e),h(R.$$.fragment,e),h(W.$$.fragment,e),h(J.$$.fragment,e),h(Q.$$.fragment,e),h(K.$$.fragment,e),h(ee.$$.fragment,e),h(te.$$.fragment,e),h(ne.$$.fragment,e),h(E.$$.fragment,e),h(se.$$.fragment,e),Ie=!0)},o(e){k(v.$$.fragment,e),k(w.$$.fragment,e),k(j.$$.fragment,e),k(B.$$.fragment,e),k(Z.$$.fragment,e),k(Y.$$.fragment,e),k(R.$$.fragment,e),k(W.$$.fragment,e),k(J.$$.fragment,e),k(Q.$$.fragment,e),k(K.$$.fragment,e),k(ee.$$.fragment,e),k(te.$$.fragment,e),k(ne.$$.fragment,e),k(E.$$.fragment,e),k(se.$$.fragment,e),Ie=!1},d(e){e&&(n(x),n(d),n(c),n(r),n($e),n(G),n(ve),n(O),n(be),n(S),n(we),n(X),n(Ce),n(xe),n(Te),n(b),n(Me),n(ye),n(T),n(Le),n(ze),n(ke)),n(i),$(v,e),$(w,e),$(j,e),$(B,e),$(Z),$(Y),$(R),$(W),$(J),$(Q),$(K,e),$(ee),$(te),$(ne),$(E),$(se,e)}}}const zt='{"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 It(P){return $t(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Et extends vt{constructor(i){super(),bt(this,i,It,Lt,kt,{})}}export{Et as component};
