import{S as uo,i as po,s as co,e as a,k as u,w as U,t as s,N as ho,c as o,d as l,m as p,a as r,x as $,h as i,b as d,P as _e,G as t,g as f,y as J,L as mo,q as G,o as T,B as I,v as vo}from"../chunks/vendor-hf-doc-builder.js";import{I as be}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as aa}from"../chunks/CodeBlock-hf-doc-builder.js";function yo(oa){let _,ol,he,me,ra,rl,b,A,Pe,x,Cl,Ee,Hl,sl,v,zl,C,Xl,Bl,H,Me,Ql,Dl,il,P,j,ke,z,ql,Ze,Yl,nl,y,Ol,Ue,Kl,et,X,lt,tt,dl,ve,at,fl,B,$e,sa,ul,N,Je,ot,rt,Ge,st,pl,Q,Te,ia,cl,D,Ie,it,hl,q,Ae,na,ml,Y,je,nt,vl,O,Ne,da,yl,E,L,Le,K,dt,Se,ft,gl,S,ut,ee,pt,ct,wl,le,We,ht,mt,_l,te,bl,M,W,Fe,ae,vt,Re,yt,Pl,c,gt,Ve,wt,_t,xe,bt,Pt,Ce,Et,Mt,He,kt,Zt,ze,Ut,$t,Xe,Jt,Gt,El,oe,Ml,F,Tt,Be,It,At,kl,re,Qe,fa,Zl,k,R,De,se,jt,qe,Nt,Ul,h,Lt,Ye,St,Wt,Oe,Ft,Rt,Ke,Vt,xt,el,Ct,Ht,$l,ie,Jl,Z,V,ll,ne,zt,tl,Xt,Gl,g,de,Bt,fe,Qt,Dt,qt,ue,Yt,pe,Ot,Kt,ea,al,ce,la,Tl;return x=new be({}),z=new be({}),K=new be({}),te=new aa({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1VJTIwcGFkZGxlbmxw",highlighted:'pip <span class="hljs-keyword">install</span> -U paddlenlp'}}),ae=new be({}),oe=new aa({props:{code:"JTIzJTIwVGFza2Zsb3clMjBwcm92aWRlcyUyMGElMjBzaW1wbGUlMjBlbmQtdG8tZW5kJTIwY2FwYWJpbGl0eSUyMGFuZCUyMGElMjBtb3JlJTIwb3B0aW1pemVkJTIwZXhwZXJpZW5jZSUyMGZvciUyMGluZmVyZW5jZSUwQWZyb20lMjBwYWRkbGVubHAudHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwVGFza2Zsb3clMEF0YXNrZmxvdyUyMCUzRCUyMFRhc2tmbG93KCUyMmZpbGwtbWFzayUyMiUyQyUyMHRhc2tfcGF0aCUzRCUyMlBhZGRsZVBhZGRsZSUyRmVybmllLTEuMC1iYXNlLXpoJTIyJTJDJTIwZnJvbV9oZl9odWIlM0RUcnVlKSUwQSUwQSUyMyUyMElmJTIweW91JTIwd2FudCUyMG1vcmUlMjBjb250cm9sJTJDJTIweW91JTIwd2lsbCUyMG5lZWQlMjB0byUyMGRlZmluZSUyMHRoZSUyMHRva2VuaXplciUyMGFuZCUyMG1vZGVsLiUwQWZyb20lMjBwYWRkbGVubHAudHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUyQyUyMEF1dG9Nb2RlbEZvck1hc2tlZExNJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyUGFkZGxlUGFkZGxlJTJGZXJuaWUtMS4wLWJhc2UtemglMjIlMkMlMjBmcm9tX2hmX2h1YiUzRFRydWUpJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JNYXNrZWRMTS5mcm9tX3ByZXRyYWluZWQoJTIyUGFkZGxlUGFkZGxlJTJGZXJuaWUtMS4wLWJhc2UtemglMjIlMkMlMjBmcm9tX2hmX2h1YiUzRFRydWUp",highlighted:`<span class="hljs-comment"># Taskflow provides a simple end-to-end capability and a more optimized experience for inference</span>
<span class="hljs-keyword">from</span> paddlenlp.transformers <span class="hljs-keyword">import</span> Taskflow
taskflow = Taskflow(<span class="hljs-string">&quot;fill-mask&quot;</span>, task_path=<span class="hljs-string">&quot;PaddlePaddle/ernie-1.0-base-zh&quot;</span>, from_hf_hub=<span class="hljs-literal">True</span>)

<span class="hljs-comment"># If you want more control, you will need to define the tokenizer and model.</span>
<span class="hljs-keyword">from</span> paddlenlp.transformers <span class="hljs-keyword">import</span> AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;PaddlePaddle/ernie-1.0-base-zh&quot;</span>, from_hf_hub=<span class="hljs-literal">True</span>)
model = AutoModelForMaskedLM.from_pretrained(<span class="hljs-string">&quot;PaddlePaddle/ernie-1.0-base-zh&quot;</span>, from_hf_hub=<span class="hljs-literal">True</span>)`}}),se=new be({}),ie=new aa({props:{code:"ZnJvbSUyMHBhZGRsZW5scC50cmFuc2Zvcm1lcnMlMjBpbXBvcnQlMjBBdXRvVG9rZW5pemVyJTJDJTIwQXV0b01vZGVsRm9yTWFza2VkTE0lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJQYWRkbGVQYWRkbGUlMkZlcm5pZS0xLjAtYmFzZS16aCUyMiUyQyUyMGZyb21faGZfaHViJTNEVHJ1ZSklMEFtb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvck1hc2tlZExNLmZyb21fcHJldHJhaW5lZCglMjJQYWRkbGVQYWRkbGUlMkZlcm5pZS0xLjAtYmFzZS16aCUyMiUyQyUyMGZyb21faGZfaHViJTNEVHJ1ZSklMEElMEF0b2tlbml6ZXIuc2F2ZV90b19oZl9odWIocmVwb19pZCUzRCUyMiUzQ215X29yZ19uYW1lJTNFJTJGJTNDbXlfcmVwb19uYW1lJTNFJTIyKSUwQW1vZGVsLnNhdmVfdG9faGZfaHViKHJlcG9faWQlM0QlMjIlM0NteV9vcmdfbmFtZSUzRSUyRiUzQ215X3JlcG9fbmFtZSUzRSUyMik=",highlighted:`<span class="hljs-keyword">from</span> paddlenlp.transformers <span class="hljs-keyword">import</span> AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;PaddlePaddle/ernie-1.0-base-zh&quot;</span>, from_hf_hub=<span class="hljs-literal">True</span>)
model = AutoModelForMaskedLM.from_pretrained(<span class="hljs-string">&quot;PaddlePaddle/ernie-1.0-base-zh&quot;</span>, from_hf_hub=<span class="hljs-literal">True</span>)

tokenizer.save_to_hf_hub(repo_id=<span class="hljs-string">&quot;&lt;my_org_name&gt;/&lt;my_repo_name&gt;&quot;</span>)
model.save_to_hf_hub(repo_id=<span class="hljs-string">&quot;&lt;my_org_name&gt;/&lt;my_repo_name&gt;&quot;</span>)`}}),ne=new be({}),{c(){_=a("meta"),ol=u(),he=a("p"),me=a("img"),rl=u(),b=a("h1"),A=a("a"),Pe=a("span"),U(x.$$.fragment),Cl=u(),Ee=a("span"),Hl=s("Using PaddleNLP at Hugging Face"),sl=u(),v=a("p"),zl=s("Leveraging the "),C=a("a"),Xl=s("PaddlePaddle"),Bl=s(" framework, "),H=a("a"),Me=a("code"),Ql=s("PaddleNLP"),Dl=s(" is an easy-to-use and powerful NLP library with awesome pre-trained model zoo, supporting wide-range of NLP tasks from research to industrial applications."),il=u(),P=a("h2"),j=a("a"),ke=a("span"),U(z.$$.fragment),ql=u(),Ze=a("span"),Yl=s("Exploring PaddleNLP in the Hub"),nl=u(),y=a("p"),Ol=s("You can find "),Ue=a("code"),Kl=s("PaddleNLP"),et=s(" models by filtering at the left of the "),X=a("a"),lt=s("models page"),tt=s("."),dl=u(),ve=a("p"),at=s("All models on the Hub come up with the following features:"),fl=u(),B=a("div"),$e=a("img"),ul=u(),N=a("ol"),Je=a("li"),ot=s("An automatically generated model card with a brief description and metadata tags that help for discoverability."),rt=u(),Ge=a("li"),st=s("An interactive widget you can use to play out with the model directly in the browser."),pl=u(),Q=a("div"),Te=a("img"),cl=u(),D=a("ol"),Ie=a("li"),it=s("An Inference API that allows to make inference requests."),hl=u(),q=a("div"),Ae=a("img"),ml=u(),Y=a("ol"),je=a("li"),nt=s("Easiliy deploy your model as a Gradio app on Spaces."),vl=u(),O=a("div"),Ne=a("img"),yl=u(),E=a("h2"),L=a("a"),Le=a("span"),U(K.$$.fragment),dt=u(),Se=a("span"),ft=s("Installation"),gl=u(),S=a("p"),ut=s("To get started, you can follow "),ee=a("a"),pt=s("PaddlePaddle Quick Start"),ct=s(" to install the PaddlePaddle Framework with your favorite OS, Package Manager and Compute Platform."),wl=u(),le=a("p"),We=a("code"),ht=s("paddlenlp"),mt=s(" offers a quick one-line install through pip:"),_l=u(),U(te.$$.fragment),bl=u(),M=a("h2"),W=a("a"),Fe=a("span"),U(ae.$$.fragment),vt=u(),Re=a("span"),yt=s("Using existing models"),Pl=u(),c=a("p"),gt=s("Similar to "),Ve=a("code"),wt=s("transformer"),_t=s(" models, the "),xe=a("code"),bt=s("paddlenlp"),Pt=s(" library provides a simple one-liner to load models from the Hugging Face Hub by setting "),Ce=a("code"),Et=s("from_hf_hub=True"),Mt=s("! Depending on how you want to use them, you can use the high-level API using the "),He=a("code"),kt=s("Taskflow"),Zt=s(" function or you can use "),ze=a("code"),Ut=s("AutoModel"),$t=s(" and "),Xe=a("code"),Jt=s("AutoTokenizer"),Gt=s(" for more control."),El=u(),U(oe.$$.fragment),Ml=u(),F=a("p"),Tt=s("If you want to see how to load a specific model, you can click "),Be=a("code"),It=s("Use in paddlenlp"),At=s(" and you will be given a working snippet that you can load it!"),kl=u(),re=a("div"),Qe=a("img"),Zl=u(),k=a("h2"),R=a("a"),De=a("span"),U(se.$$.fragment),jt=u(),qe=a("span"),Nt=s("Sharing your models"),Ul=u(),h=a("p"),Lt=s("You can share your "),Ye=a("code"),St=s("PaddleNLP"),Wt=s(" models by using the "),Oe=a("code"),Ft=s("save_to_hf_hub"),Rt=s(" method under all "),Ke=a("code"),Vt=s("Model"),xt=s(" and "),el=a("code"),Ct=s("Tokenizer"),Ht=s(" classes."),$l=u(),U(ie.$$.fragment),Jl=u(),Z=a("h2"),V=a("a"),ll=a("span"),U(ne.$$.fragment),zt=u(),tl=a("span"),Xt=s("Additional resources"),Gl=u(),g=a("ul"),de=a("li"),Bt=s("PaddlePaddle Installation "),fe=a("a"),Qt=s("guide"),Dt=s("."),qt=u(),ue=a("li"),Yt=s("PaddleNLP "),pe=a("a"),Ot=s("GitHub Repo"),Kt=s("."),ea=u(),al=a("li"),ce=a("a"),la=s("PaddlePaddle on the Hugging Face Hub"),this.h()},l(e){const n=ho('[data-svelte="svelte-1phssyn"]',document.head);_=o(n,"META",{name:!0,content:!0}),n.forEach(l),ol=p(e),he=o(e,"P",{});var ua=r(he);me=o(ua,"IMG",{src:!0,alt:!0}),ua.forEach(l),rl=p(e),b=o(e,"H1",{class:!0});var Il=r(b);A=o(Il,"A",{id:!0,class:!0,href:!0});var pa=r(A);Pe=o(pa,"SPAN",{});var ca=r(Pe);$(x.$$.fragment,ca),ca.forEach(l),pa.forEach(l),Cl=p(Il),Ee=o(Il,"SPAN",{});var ha=r(Ee);Hl=i(ha,"Using PaddleNLP at Hugging Face"),ha.forEach(l),Il.forEach(l),sl=p(e),v=o(e,"P",{});var ye=r(v);zl=i(ye,"Leveraging the "),C=o(ye,"A",{href:!0,rel:!0});var ma=r(C);Xl=i(ma,"PaddlePaddle"),ma.forEach(l),Bl=i(ye," framework, "),H=o(ye,"A",{href:!0,rel:!0});var va=r(H);Me=o(va,"CODE",{});var ya=r(Me);Ql=i(ya,"PaddleNLP"),ya.forEach(l),va.forEach(l),Dl=i(ye," is an easy-to-use and powerful NLP library with awesome pre-trained model zoo, supporting wide-range of NLP tasks from research to industrial applications."),ye.forEach(l),il=p(e),P=o(e,"H2",{class:!0});var Al=r(P);j=o(Al,"A",{id:!0,class:!0,href:!0});var ga=r(j);ke=o(ga,"SPAN",{});var wa=r(ke);$(z.$$.fragment,wa),wa.forEach(l),ga.forEach(l),ql=p(Al),Ze=o(Al,"SPAN",{});var _a=r(Ze);Yl=i(_a,"Exploring PaddleNLP in the Hub"),_a.forEach(l),Al.forEach(l),nl=p(e),y=o(e,"P",{});var ge=r(y);Ol=i(ge,"You can find "),Ue=o(ge,"CODE",{});var ba=r(Ue);Kl=i(ba,"PaddleNLP"),ba.forEach(l),et=i(ge," models by filtering at the left of the "),X=o(ge,"A",{href:!0,rel:!0});var Pa=r(X);lt=i(Pa,"models page"),Pa.forEach(l),tt=i(ge,"."),ge.forEach(l),dl=p(e),ve=o(e,"P",{});var Ea=r(ve);at=i(Ea,"All models on the Hub come up with the following features:"),Ea.forEach(l),fl=p(e),B=o(e,"DIV",{class:!0});var Ma=r(B);$e=o(Ma,"IMG",{src:!0}),Ma.forEach(l),ul=p(e),N=o(e,"OL",{});var jl=r(N);Je=o(jl,"LI",{});var ka=r(Je);ot=i(ka,"An automatically generated model card with a brief description and metadata tags that help for discoverability."),ka.forEach(l),rt=p(jl),Ge=o(jl,"LI",{});var Za=r(Ge);st=i(Za,"An interactive widget you can use to play out with the model directly in the browser."),Za.forEach(l),jl.forEach(l),pl=p(e),Q=o(e,"DIV",{class:!0});var Ua=r(Q);Te=o(Ua,"IMG",{src:!0}),Ua.forEach(l),cl=p(e),D=o(e,"OL",{start:!0});var $a=r(D);Ie=o($a,"LI",{});var Ja=r(Ie);it=i(Ja,"An Inference API that allows to make inference requests."),Ja.forEach(l),$a.forEach(l),hl=p(e),q=o(e,"DIV",{class:!0});var Ga=r(q);Ae=o(Ga,"IMG",{src:!0}),Ga.forEach(l),ml=p(e),Y=o(e,"OL",{start:!0});var Ta=r(Y);je=o(Ta,"LI",{});var Ia=r(je);nt=i(Ia,"Easiliy deploy your model as a Gradio app on Spaces."),Ia.forEach(l),Ta.forEach(l),vl=p(e),O=o(e,"DIV",{class:!0});var Aa=r(O);Ne=o(Aa,"IMG",{src:!0}),Aa.forEach(l),yl=p(e),E=o(e,"H2",{class:!0});var Nl=r(E);L=o(Nl,"A",{id:!0,class:!0,href:!0});var ja=r(L);Le=o(ja,"SPAN",{});var Na=r(Le);$(K.$$.fragment,Na),Na.forEach(l),ja.forEach(l),dt=p(Nl),Se=o(Nl,"SPAN",{});var La=r(Se);ft=i(La,"Installation"),La.forEach(l),Nl.forEach(l),gl=p(e),S=o(e,"P",{});var Ll=r(S);ut=i(Ll,"To get started, you can follow "),ee=o(Ll,"A",{href:!0,rel:!0});var Sa=r(ee);pt=i(Sa,"PaddlePaddle Quick Start"),Sa.forEach(l),ct=i(Ll," to install the PaddlePaddle Framework with your favorite OS, Package Manager and Compute Platform."),Ll.forEach(l),wl=p(e),le=o(e,"P",{});var ta=r(le);We=o(ta,"CODE",{});var Wa=r(We);ht=i(Wa,"paddlenlp"),Wa.forEach(l),mt=i(ta," offers a quick one-line install through pip:"),ta.forEach(l),_l=p(e),$(te.$$.fragment,e),bl=p(e),M=o(e,"H2",{class:!0});var Sl=r(M);W=o(Sl,"A",{id:!0,class:!0,href:!0});var Fa=r(W);Fe=o(Fa,"SPAN",{});var Ra=r(Fe);$(ae.$$.fragment,Ra),Ra.forEach(l),Fa.forEach(l),vt=p(Sl),Re=o(Sl,"SPAN",{});var Va=r(Re);yt=i(Va,"Using existing models"),Va.forEach(l),Sl.forEach(l),Pl=p(e),c=o(e,"P",{});var m=r(c);gt=i(m,"Similar to "),Ve=o(m,"CODE",{});var xa=r(Ve);wt=i(xa,"transformer"),xa.forEach(l),_t=i(m," models, the "),xe=o(m,"CODE",{});var Ca=r(xe);bt=i(Ca,"paddlenlp"),Ca.forEach(l),Pt=i(m," library provides a simple one-liner to load models from the Hugging Face Hub by setting "),Ce=o(m,"CODE",{});var Ha=r(Ce);Et=i(Ha,"from_hf_hub=True"),Ha.forEach(l),Mt=i(m,"! Depending on how you want to use them, you can use the high-level API using the "),He=o(m,"CODE",{});var za=r(He);kt=i(za,"Taskflow"),za.forEach(l),Zt=i(m," function or you can use "),ze=o(m,"CODE",{});var Xa=r(ze);Ut=i(Xa,"AutoModel"),Xa.forEach(l),$t=i(m," and "),Xe=o(m,"CODE",{});var Ba=r(Xe);Jt=i(Ba,"AutoTokenizer"),Ba.forEach(l),Gt=i(m," for more control."),m.forEach(l),El=p(e),$(oe.$$.fragment,e),Ml=p(e),F=o(e,"P",{});var Wl=r(F);Tt=i(Wl,"If you want to see how to load a specific model, you can click "),Be=o(Wl,"CODE",{});var Qa=r(Be);It=i(Qa,"Use in paddlenlp"),Qa.forEach(l),At=i(Wl," and you will be given a working snippet that you can load it!"),Wl.forEach(l),kl=p(e),re=o(e,"DIV",{class:!0});var Da=r(re);Qe=o(Da,"IMG",{src:!0}),Da.forEach(l),Zl=p(e),k=o(e,"H2",{class:!0});var Fl=r(k);R=o(Fl,"A",{id:!0,class:!0,href:!0});var qa=r(R);De=o(qa,"SPAN",{});var Ya=r(De);$(se.$$.fragment,Ya),Ya.forEach(l),qa.forEach(l),jt=p(Fl),qe=o(Fl,"SPAN",{});var Oa=r(qe);Nt=i(Oa,"Sharing your models"),Oa.forEach(l),Fl.forEach(l),Ul=p(e),h=o(e,"P",{});var w=r(h);Lt=i(w,"You can share your "),Ye=o(w,"CODE",{});var Ka=r(Ye);St=i(Ka,"PaddleNLP"),Ka.forEach(l),Wt=i(w," models by using the "),Oe=o(w,"CODE",{});var eo=r(Oe);Ft=i(eo,"save_to_hf_hub"),eo.forEach(l),Rt=i(w," method under all "),Ke=o(w,"CODE",{});var lo=r(Ke);Vt=i(lo,"Model"),lo.forEach(l),xt=i(w," and "),el=o(w,"CODE",{});var to=r(el);Ct=i(to,"Tokenizer"),to.forEach(l),Ht=i(w," classes."),w.forEach(l),$l=p(e),$(ie.$$.fragment,e),Jl=p(e),Z=o(e,"H2",{class:!0});var Rl=r(Z);V=o(Rl,"A",{id:!0,class:!0,href:!0});var ao=r(V);ll=o(ao,"SPAN",{});var oo=r(ll);$(ne.$$.fragment,oo),oo.forEach(l),ao.forEach(l),zt=p(Rl),tl=o(Rl,"SPAN",{});var ro=r(tl);Xt=i(ro,"Additional resources"),ro.forEach(l),Rl.forEach(l),Gl=p(e),g=o(e,"UL",{});var we=r(g);de=o(we,"LI",{});var Vl=r(de);Bt=i(Vl,"PaddlePaddle Installation "),fe=o(Vl,"A",{href:!0,rel:!0});var so=r(fe);Qt=i(so,"guide"),so.forEach(l),Dt=i(Vl,"."),Vl.forEach(l),qt=p(we),ue=o(we,"LI",{});var xl=r(ue);Yt=i(xl,"PaddleNLP "),pe=o(xl,"A",{href:!0,rel:!0});var io=r(pe);Ot=i(io,"GitHub Repo"),io.forEach(l),Kt=i(xl,"."),xl.forEach(l),ea=p(we),al=o(we,"LI",{});var no=r(al);ce=o(no,"A",{href:!0,rel:!0});var fo=r(ce);la=i(fo,"PaddlePaddle on the Hugging Face Hub"),fo.forEach(l),no.forEach(l),we.forEach(l),this.h()},h(){d(_,"name","hf:doc:metadata"),d(_,"content",JSON.stringify(go)),_e(me.src,ra="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/PaddleNLP-logo.png")||d(me,"src",ra),d(me,"alt","paddlenlp-banner"),d(A,"id","using-paddlenlp-at-hugging-face"),d(A,"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"),d(A,"href","#using-paddlenlp-at-hugging-face"),d(b,"class","relative group"),d(C,"href","https://github.com/PaddlePaddle/Paddle"),d(C,"rel","nofollow"),d(H,"href","https://github.com/PaddlePaddle/PaddleNLP"),d(H,"rel","nofollow"),d(j,"id","exploring-paddlenlp-in-the-hub"),d(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"),d(j,"href","#exploring-paddlenlp-in-the-hub"),d(P,"class","relative group"),d(X,"href","https://huggingface.co/models?library=paddlenlp&sort=downloads"),d(X,"rel","nofollow"),_e($e.src,sa="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/PaddleNLP-5.jpg")||d($e,"src",sa),d(B,"class","flex justify-center"),_e(Te.src,ia="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/PaddleNLP.jpg")||d(Te,"src",ia),d(Q,"class","flex justify-center"),d(D,"start","3"),_e(Ae.src,na="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/PaddleNLP-3.jpg")||d(Ae,"src",na),d(q,"class","flex justify-center"),d(Y,"start","4"),_e(Ne.src,da="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/PaddleNLP-4.jpg")||d(Ne,"src",da),d(O,"class","flex justify-center"),d(L,"id","installation"),d(L,"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"),d(L,"href","#installation"),d(E,"class","relative group"),d(ee,"href","https://www.paddlepaddle.org.cn/en/install"),d(ee,"rel","nofollow"),d(W,"id","using-existing-models"),d(W,"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"),d(W,"href","#using-existing-models"),d(M,"class","relative group"),_e(Qe.src,fa="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/PaddleNLP-1.jpg")||d(Qe,"src",fa),d(re,"class","flex justify-center"),d(R,"id","sharing-your-models"),d(R,"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"),d(R,"href","#sharing-your-models"),d(k,"class","relative group"),d(V,"id","additional-resources"),d(V,"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"),d(V,"href","#additional-resources"),d(Z,"class","relative group"),d(fe,"href","https://www.paddlepaddle.org.cn/en/install"),d(fe,"rel","nofollow"),d(pe,"href","https://github.com/PaddlePaddle/PaddleNLP"),d(pe,"rel","nofollow"),d(ce,"href","https://huggingface.co/PaddlePaddle"),d(ce,"rel","nofollow")},m(e,n){t(document.head,_),f(e,ol,n),f(e,he,n),t(he,me),f(e,rl,n),f(e,b,n),t(b,A),t(A,Pe),J(x,Pe,null),t(b,Cl),t(b,Ee),t(Ee,Hl),f(e,sl,n),f(e,v,n),t(v,zl),t(v,C),t(C,Xl),t(v,Bl),t(v,H),t(H,Me),t(Me,Ql),t(v,Dl),f(e,il,n),f(e,P,n),t(P,j),t(j,ke),J(z,ke,null),t(P,ql),t(P,Ze),t(Ze,Yl),f(e,nl,n),f(e,y,n),t(y,Ol),t(y,Ue),t(Ue,Kl),t(y,et),t(y,X),t(X,lt),t(y,tt),f(e,dl,n),f(e,ve,n),t(ve,at),f(e,fl,n),f(e,B,n),t(B,$e),f(e,ul,n),f(e,N,n),t(N,Je),t(Je,ot),t(N,rt),t(N,Ge),t(Ge,st),f(e,pl,n),f(e,Q,n),t(Q,Te),f(e,cl,n),f(e,D,n),t(D,Ie),t(Ie,it),f(e,hl,n),f(e,q,n),t(q,Ae),f(e,ml,n),f(e,Y,n),t(Y,je),t(je,nt),f(e,vl,n),f(e,O,n),t(O,Ne),f(e,yl,n),f(e,E,n),t(E,L),t(L,Le),J(K,Le,null),t(E,dt),t(E,Se),t(Se,ft),f(e,gl,n),f(e,S,n),t(S,ut),t(S,ee),t(ee,pt),t(S,ct),f(e,wl,n),f(e,le,n),t(le,We),t(We,ht),t(le,mt),f(e,_l,n),J(te,e,n),f(e,bl,n),f(e,M,n),t(M,W),t(W,Fe),J(ae,Fe,null),t(M,vt),t(M,Re),t(Re,yt),f(e,Pl,n),f(e,c,n),t(c,gt),t(c,Ve),t(Ve,wt),t(c,_t),t(c,xe),t(xe,bt),t(c,Pt),t(c,Ce),t(Ce,Et),t(c,Mt),t(c,He),t(He,kt),t(c,Zt),t(c,ze),t(ze,Ut),t(c,$t),t(c,Xe),t(Xe,Jt),t(c,Gt),f(e,El,n),J(oe,e,n),f(e,Ml,n),f(e,F,n),t(F,Tt),t(F,Be),t(Be,It),t(F,At),f(e,kl,n),f(e,re,n),t(re,Qe),f(e,Zl,n),f(e,k,n),t(k,R),t(R,De),J(se,De,null),t(k,jt),t(k,qe),t(qe,Nt),f(e,Ul,n),f(e,h,n),t(h,Lt),t(h,Ye),t(Ye,St),t(h,Wt),t(h,Oe),t(Oe,Ft),t(h,Rt),t(h,Ke),t(Ke,Vt),t(h,xt),t(h,el),t(el,Ct),t(h,Ht),f(e,$l,n),J(ie,e,n),f(e,Jl,n),f(e,Z,n),t(Z,V),t(V,ll),J(ne,ll,null),t(Z,zt),t(Z,tl),t(tl,Xt),f(e,Gl,n),f(e,g,n),t(g,de),t(de,Bt),t(de,fe),t(fe,Qt),t(de,Dt),t(g,qt),t(g,ue),t(ue,Yt),t(ue,pe),t(pe,Ot),t(ue,Kt),t(g,ea),t(g,al),t(al,ce),t(ce,la),Tl=!0},p:mo,i(e){Tl||(G(x.$$.fragment,e),G(z.$$.fragment,e),G(K.$$.fragment,e),G(te.$$.fragment,e),G(ae.$$.fragment,e),G(oe.$$.fragment,e),G(se.$$.fragment,e),G(ie.$$.fragment,e),G(ne.$$.fragment,e),Tl=!0)},o(e){T(x.$$.fragment,e),T(z.$$.fragment,e),T(K.$$.fragment,e),T(te.$$.fragment,e),T(ae.$$.fragment,e),T(oe.$$.fragment,e),T(se.$$.fragment,e),T(ie.$$.fragment,e),T(ne.$$.fragment,e),Tl=!1},d(e){l(_),e&&l(ol),e&&l(he),e&&l(rl),e&&l(b),I(x),e&&l(sl),e&&l(v),e&&l(il),e&&l(P),I(z),e&&l(nl),e&&l(y),e&&l(dl),e&&l(ve),e&&l(fl),e&&l(B),e&&l(ul),e&&l(N),e&&l(pl),e&&l(Q),e&&l(cl),e&&l(D),e&&l(hl),e&&l(q),e&&l(ml),e&&l(Y),e&&l(vl),e&&l(O),e&&l(yl),e&&l(E),I(K),e&&l(gl),e&&l(S),e&&l(wl),e&&l(le),e&&l(_l),I(te,e),e&&l(bl),e&&l(M),I(ae),e&&l(Pl),e&&l(c),e&&l(El),I(oe,e),e&&l(Ml),e&&l(F),e&&l(kl),e&&l(re),e&&l(Zl),e&&l(k),I(se),e&&l(Ul),e&&l(h),e&&l($l),I(ie,e),e&&l(Jl),e&&l(Z),I(ne),e&&l(Gl),e&&l(g)}}}const go={local:"using-paddlenlp-at-hugging-face",sections:[{local:"exploring-paddlenlp-in-the-hub",title:"Exploring PaddleNLP in the Hub"},{local:"installation",title:"Installation"},{local:"using-existing-models",title:"Using existing models"},{local:"sharing-your-models",title:"Sharing your models"},{local:"additional-resources",title:"Additional resources"}],title:"Using PaddleNLP at Hugging Face"};function wo(oa){return vo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Eo extends uo{constructor(_){super();po(this,_,wo,yo,co,{})}}export{Eo as default,go as metadata};
