Buckets:
hf-doc-build/doc-dev / transformers /pr_33913 /hi /_app /immutable /chunks /EditOnGithub.65ad9db6.js
| import{s as M,n as T,f as Y,r as Z}from"./scheduler.b108d059.js";import{S as V,i as B,B as O,C as x,j as p,f as d,k as i,a as y,y as m,g,s as k,m as I,h as v,c as E,n as D,l as j,o as R,r as C,u as H,v as S,D as L,d as N,t as A,w as P,H as q,E as F,e as G,p as J,b as K,x as U}from"./index.008de539.js";function Q(s){let e,t;return{c(){e=O("svg"),t=O("path"),this.h()},l(n){e=x(n,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var l=p(e);t=x(l,"path",{d:!0,fill:!0}),p(t).forEach(d),l.forEach(d),this.h()},h(){i(t,"d","M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z"),i(t,"fill","currentColor"),i(e,"class",s[0]),i(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),i(e,"aria-hidden","true"),i(e,"role","img"),i(e,"width","1em"),i(e,"height","1em"),i(e,"preserveAspectRatio","xMidYMid meet"),i(e,"viewBox","0 0 256 256")},m(n,l){y(n,e,l),m(e,t)},p(n,[l]){l&1&&i(e,"class",n[0])},i:T,o:T,d(n){n&&d(e)}}}function W(s,e,t){let{classNames:n=""}=e;return s.$$set=l=>{"classNames"in l&&t(0,n=l.classNames)},[n]}class z extends V{constructor(e){super(),B(this,e,W,Q,M,{classNames:0})}}function X(s){const e=document.createElement("textarea");document.body.appendChild(e),e.value=s,e.select(),document.execCommand("copy"),document.body.removeChild(e)}function $(s){let e,t,n,l;return{c(){e=O("svg"),t=O("path"),n=O("path"),l=O("rect"),this.h()},l(h){e=x(h,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,fill:!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var o=p(e);t=x(o,"path",{d:!0,transform:!0}),p(t).forEach(d),n=x(o,"path",{d:!0,transform:!0}),p(n).forEach(d),l=x(o,"rect",{fill:!0,width:!0,height:!0}),p(l).forEach(d),o.forEach(d),this.h()},h(){i(t,"d","M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"),i(t,"transform","translate(0)"),i(n,"d","M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"),i(n,"transform","translate(0)"),i(l,"fill","none"),i(l,"width","32"),i(l,"height","32"),i(e,"class",s[0]),i(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"aria-hidden","true"),i(e,"fill","currentColor"),i(e,"focusable","false"),i(e,"role","img"),i(e,"width","1em"),i(e,"height","1em"),i(e,"preserveAspectRatio","xMidYMid meet"),i(e,"viewBox","0 0 32 32")},m(h,o){y(h,e,o),m(e,t),m(e,n),m(e,l)},p(h,[o]){o&1&&i(e,"class",h[0])},i:T,o:T,d(h){h&&d(e)}}}function ee(s,e,t){let{classNames:n=""}=e;return s.$$set=l=>{"classNames"in l&&t(0,n=l.classNames)},[n]}class te extends V{constructor(e){super(),B(this,e,ee,$,M,{classNames:0})}}function ae(s){let e,t,n,l,h;return{c(){e=g("div"),t=g("div"),n=k(),l=I(s[1]),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=p(e);t=v(c,"DIV",{class:!0,style:!0}),p(t).forEach(d),n=E(c),l=D(c,s[1]),c.forEach(d),this.h()},h(){i(t,"class","absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0"),j(t,"border-left-color","transparent"),j(t,"border-right-color","transparent"),i(e,"class",h="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow "+s[2]+" "+s[0])},m(o,c){y(o,e,c),m(e,t),m(e,n),m(e,l)},p(o,[c]){c&2&&R(l,o[1]),c&5&&h!==(h="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow "+o[2]+" "+o[0])&&i(e,"class",h)},i:T,o:T,d(o){o&&d(e)}}}function re(s,e,t){let{classNames:n=""}=e,{label:l="Copied"}=e,{position:h="left-1/2 top-full transform -translate-x-1/2 translate-y-2"}=e;return s.$$set=o=>{"classNames"in o&&t(0,n=o.classNames),"label"in o&&t(1,l=o.label),"position"in o&&t(2,h=o.position)},[n,l,h]}class le extends V{constructor(e){super(),B(this,e,re,ae,M,{classNames:0,label:1,position:2})}}function ne(s){let e,t,n,l,h,o,c,f,u;return t=new te({}),l=new le({props:{classNames:s[4]?"opacity-100":"opacity-0"}}),{c(){e=g("button"),C(t.$$.fragment),n=k(),C(l.$$.fragment),this.h()},l(a){e=v(a,"BUTTON",{class:!0,title:!0,type:!0});var r=p(e);H(t.$$.fragment,r),n=E(r),H(l.$$.fragment,r),r.forEach(d),this.h()},h(){i(e,"class",h="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none "+s[0]+" "+(s[2]==="text"?"mx-0.5":"")+" "+(s[2]==="button"?"btn":"")+" "+(s[2]==="button-clear"?"py-1 px-2 border rounded-lg shadow-sm":"")+" "+(!s[4]&&["button-clear","text"].includes(s[2])?"text-gray-600":"")+" "+(s[4]?"text-green-500":"")),i(e,"title",o=s[3]||s[1]||"Copy to clipboard"),i(e,"type","button")},m(a,r){y(a,e,r),S(t,e,null),m(e,n),S(l,e,null),c=!0,f||(u=L(e,"click",s[5]),f=!0)},p(a,[r]){const _={};r&16&&(_.classNames=a[4]?"opacity-100":"opacity-0"),l.$set(_),(!c||r&21&&h!==(h="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none "+a[0]+" "+(a[2]==="text"?"mx-0.5":"")+" "+(a[2]==="button"?"btn":"")+" "+(a[2]==="button-clear"?"py-1 px-2 border rounded-lg shadow-sm":"")+" "+(!a[4]&&["button-clear","text"].includes(a[2])?"text-gray-600":"")+" "+(a[4]?"text-green-500":"")))&&i(e,"class",h),(!c||r&10&&o!==(o=a[3]||a[1]||"Copy to clipboard"))&&i(e,"title",o)},i(a){c||(N(t.$$.fragment,a),N(l.$$.fragment,a),c=!0)},o(a){A(t.$$.fragment,a),A(l.$$.fragment,a),c=!1},d(a){a&&d(e),P(t),P(l),f=!1,u()}}}function se(s,e,t){let{classNames:n=""}=e,{label:l=""}=e,{style:h="text"}=e,{title:o=""}=e,{value:c}=e,f=!1,u;Y(()=>{u&&clearTimeout(u)});function a(){X(decodeURIComponent(atob(c))),t(4,f=!0),u&&clearTimeout(u),u=setTimeout(()=>{t(4,f=!1)},1e3)}return s.$$set=r=>{"classNames"in r&&t(0,n=r.classNames),"label"in r&&t(1,l=r.label),"style"in r&&t(2,h=r.style),"title"in r&&t(3,o=r.title),"value"in r&&t(6,c=r.value)},[n,l,h,o,f,a,c]}class oe extends V{constructor(e){super(),B(this,e,se,ne,M,{classNames:0,label:1,style:2,title:3,value:6})}}function ie(s){let e,t,n,l,h,o,c,f,u,a;return n=new oe({props:{classNames:"transition duration-200 ease-in-out "+(s[3]&&"opacity-0"),label:"code excerpt",value:s[0]}}),{c(){e=g("div"),t=g("div"),C(n.$$.fragment),l=k(),h=g("pre"),o=new q(!1),this.h()},l(r){e=v(r,"DIV",{class:!0});var _=p(e);t=v(_,"DIV",{class:!0});var b=p(t);H(n.$$.fragment,b),b.forEach(d),l=E(_),h=v(_,"PRE",{class:!0});var w=p(h);o=F(w,!1),w.forEach(d),_.forEach(d),this.h()},h(){i(t,"class","absolute top-2.5 right-4"),o.a=null,i(h,"class",c=s[2]?"whitespace-pre-wrap":""),i(e,"class","code-block relative")},m(r,_){y(r,e,_),m(e,t),S(n,t,null),m(e,l),m(e,h),o.m(s[1],h),f=!0,u||(a=[L(e,"mouseover",s[4]),L(e,"focus",s[4]),L(e,"mouseout",s[5]),L(e,"blur",s[5])],u=!0)},p(r,[_]){const b={};_&8&&(b.classNames="transition duration-200 ease-in-out "+(r[3]&&"opacity-0")),_&1&&(b.value=r[0]),n.$set(b),(!f||_&2)&&o.p(r[1]),(!f||_&4&&c!==(c=r[2]?"whitespace-pre-wrap":""))&&i(h,"class",c)},i(r){f||(N(n.$$.fragment,r),f=!0)},o(r){A(n.$$.fragment,r),f=!1},d(r){r&&d(e),P(n),u=!1,Z(a)}}}function he(s,e,t){let n=!0,{code:l=""}=e,{highlighted:h=""}=e,{wrap:o=!1}=e;function c(){t(3,n=!1)}function f(){t(3,n=!0)}return s.$$set=u=>{"code"in u&&t(0,l=u.code),"highlighted"in u&&t(1,h=u.highlighted),"wrap"in u&&t(2,o=u.wrap)},[l,h,o,n,c,f]}class ke extends V{constructor(e){super(),B(this,e,he,ie,M,{code:0,highlighted:1,wrap:2})}}function ue(s){let e,t,n,l,h,o,c,f,u;return l=new z({}),{c(){e=g("h6"),t=g("a"),n=g("span"),C(l.$$.fragment),o=k(),c=g("span"),f=I(s[0]),this.h()},l(a){e=v(a,"H6",{class:!0});var r=p(e);t=v(r,"A",{id:!0,class:!0,href:!0});var _=p(t);n=v(_,"SPAN",{});var b=p(n);H(l.$$.fragment,b),b.forEach(d),_.forEach(d),o=E(r),c=v(r,"SPAN",{});var w=p(c);f=D(w,s[0]),w.forEach(d),r.forEach(d),this.h()},h(){i(t,"id",s[1]),i(t,"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"),i(t,"href",h="#"+s[1]),i(e,"class","relative group")},m(a,r){y(a,e,r),m(e,t),m(t,n),S(l,n,null),m(e,o),m(e,c),m(c,f),u=!0},p(a,r){(!u||r&2)&&i(t,"id",a[1]),(!u||r&2&&h!==(h="#"+a[1]))&&i(t,"href",h),(!u||r&1)&&R(f,a[0])},i(a){u||(N(l.$$.fragment,a),u=!0)},o(a){A(l.$$.fragment,a),u=!1},d(a){a&&d(e),P(l)}}}function fe(s){let e,t,n,l,h,o,c,f,u;return l=new z({}),{c(){e=g("h5"),t=g("a"),n=g("span"),C(l.$$.fragment),o=k(),c=g("span"),f=I(s[0]),this.h()},l(a){e=v(a,"H5",{class:!0});var r=p(e);t=v(r,"A",{id:!0,class:!0,href:!0});var _=p(t);n=v(_,"SPAN",{});var b=p(n);H(l.$$.fragment,b),b.forEach(d),_.forEach(d),o=E(r),c=v(r,"SPAN",{});var w=p(c);f=D(w,s[0]),w.forEach(d),r.forEach(d),this.h()},h(){i(t,"id",s[1]),i(t,"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"),i(t,"href",h="#"+s[1]),i(e,"class","relative group")},m(a,r){y(a,e,r),m(e,t),m(t,n),S(l,n,null),m(e,o),m(e,c),m(c,f),u=!0},p(a,r){(!u||r&2)&&i(t,"id",a[1]),(!u||r&2&&h!==(h="#"+a[1]))&&i(t,"href",h),(!u||r&1)&&R(f,a[0])},i(a){u||(N(l.$$.fragment,a),u=!0)},o(a){A(l.$$.fragment,a),u=!1},d(a){a&&d(e),P(l)}}}function ce(s){let e,t,n,l,h,o,c,f,u;return l=new z({}),{c(){e=g("h4"),t=g("a"),n=g("span"),C(l.$$.fragment),o=k(),c=g("span"),f=I(s[0]),this.h()},l(a){e=v(a,"H4",{class:!0});var r=p(e);t=v(r,"A",{id:!0,class:!0,href:!0});var _=p(t);n=v(_,"SPAN",{});var b=p(n);H(l.$$.fragment,b),b.forEach(d),_.forEach(d),o=E(r),c=v(r,"SPAN",{});var w=p(c);f=D(w,s[0]),w.forEach(d),r.forEach(d),this.h()},h(){i(t,"id",s[1]),i(t,"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"),i(t,"href",h="#"+s[1]),i(e,"class","relative group")},m(a,r){y(a,e,r),m(e,t),m(t,n),S(l,n,null),m(e,o),m(e,c),m(c,f),u=!0},p(a,r){(!u||r&2)&&i(t,"id",a[1]),(!u||r&2&&h!==(h="#"+a[1]))&&i(t,"href",h),(!u||r&1)&&R(f,a[0])},i(a){u||(N(l.$$.fragment,a),u=!0)},o(a){A(l.$$.fragment,a),u=!1},d(a){a&&d(e),P(l)}}}function de(s){let e,t,n,l,h,o,c,f,u;return l=new z({}),{c(){e=g("h3"),t=g("a"),n=g("span"),C(l.$$.fragment),o=k(),c=g("span"),f=I(s[0]),this.h()},l(a){e=v(a,"H3",{class:!0});var r=p(e);t=v(r,"A",{id:!0,class:!0,href:!0});var _=p(t);n=v(_,"SPAN",{});var b=p(n);H(l.$$.fragment,b),b.forEach(d),_.forEach(d),o=E(r),c=v(r,"SPAN",{});var w=p(c);f=D(w,s[0]),w.forEach(d),r.forEach(d),this.h()},h(){i(t,"id",s[1]),i(t,"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"),i(t,"href",h="#"+s[1]),i(e,"class","relative group")},m(a,r){y(a,e,r),m(e,t),m(t,n),S(l,n,null),m(e,o),m(e,c),m(c,f),u=!0},p(a,r){(!u||r&2)&&i(t,"id",a[1]),(!u||r&2&&h!==(h="#"+a[1]))&&i(t,"href",h),(!u||r&1)&&R(f,a[0])},i(a){u||(N(l.$$.fragment,a),u=!0)},o(a){A(l.$$.fragment,a),u=!1},d(a){a&&d(e),P(l)}}}function me(s){let e,t,n,l,h,o,c,f,u;return l=new z({}),{c(){e=g("h2"),t=g("a"),n=g("span"),C(l.$$.fragment),o=k(),c=g("span"),f=I(s[0]),this.h()},l(a){e=v(a,"H2",{class:!0});var r=p(e);t=v(r,"A",{id:!0,class:!0,href:!0});var _=p(t);n=v(_,"SPAN",{});var b=p(n);H(l.$$.fragment,b),b.forEach(d),_.forEach(d),o=E(r),c=v(r,"SPAN",{});var w=p(c);f=D(w,s[0]),w.forEach(d),r.forEach(d),this.h()},h(){i(t,"id",s[1]),i(t,"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"),i(t,"href",h="#"+s[1]),i(e,"class","relative group")},m(a,r){y(a,e,r),m(e,t),m(t,n),S(l,n,null),m(e,o),m(e,c),m(c,f),u=!0},p(a,r){(!u||r&2)&&i(t,"id",a[1]),(!u||r&2&&h!==(h="#"+a[1]))&&i(t,"href",h),(!u||r&1)&&R(f,a[0])},i(a){u||(N(l.$$.fragment,a),u=!0)},o(a){A(l.$$.fragment,a),u=!1},d(a){a&&d(e),P(l)}}}function pe(s){let e,t,n,l,h,o,c,f,u;return l=new z({}),{c(){e=g("h1"),t=g("a"),n=g("span"),C(l.$$.fragment),o=k(),c=g("span"),f=I(s[0]),this.h()},l(a){e=v(a,"H1",{class:!0});var r=p(e);t=v(r,"A",{id:!0,class:!0,href:!0});var _=p(t);n=v(_,"SPAN",{});var b=p(n);H(l.$$.fragment,b),b.forEach(d),_.forEach(d),o=E(r),c=v(r,"SPAN",{});var w=p(c);f=D(w,s[0]),w.forEach(d),r.forEach(d),this.h()},h(){i(t,"id",s[1]),i(t,"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"),i(t,"href",h="#"+s[1]),i(e,"class","relative group")},m(a,r){y(a,e,r),m(e,t),m(t,n),S(l,n,null),m(e,o),m(e,c),m(c,f),u=!0},p(a,r){(!u||r&2)&&i(t,"id",a[1]),(!u||r&2&&h!==(h="#"+a[1]))&&i(t,"href",h),(!u||r&1)&&R(f,a[0])},i(a){u||(N(l.$$.fragment,a),u=!0)},o(a){A(l.$$.fragment,a),u=!1},d(a){a&&d(e),P(l)}}}function ge(s){let e,t,n,l;const h=[pe,me,de,ce,fe,ue],o=[];function c(f,u){return f[2]==="h1"?0:f[2]==="h2"?1:f[2]==="h3"?2:f[2]==="h4"?3:f[2]==="h5"?4:5}return e=c(s),t=o[e]=h[e](s),{c(){t.c(),n=G()},l(f){t.l(f),n=G()},m(f,u){o[e].m(f,u),y(f,n,u),l=!0},p(f,[u]){let a=e;e=c(f),e===a?o[e].p(f,u):(J(),A(o[a],1,1,()=>{o[a]=null}),K(),t=o[e],t?t.p(f,u):(t=o[e]=h[e](f),t.c()),N(t,1),t.m(n.parentNode,n))},i(f){l||(N(t),l=!0)},o(f){A(t),l=!1},d(f){f&&d(n),o[e].d(f)}}}function ve(s,e,t){let{title:n}=e,{local:l}=e,{headingTag:h}=e;return s.$$set=o=>{"title"in o&&t(0,n=o.title),"local"in o&&t(1,l=o.local),"headingTag"in o&&t(2,h=o.headingTag)},[n,l,h]}class Ee extends V{constructor(e){super(),B(this,e,ve,ge,M,{title:0,local:1,headingTag:2})}}function _e(s){let e,t,n="<",l,h,o=">",c,f,u='<span class="underline ml-1.5">Update</span> on GitHub';return{c(){e=g("a"),t=g("span"),t.textContent=n,l=k(),h=g("span"),h.textContent=o,c=k(),f=g("span"),f.innerHTML=u,this.h()},l(a){e=v(a,"A",{class:!0,href:!0,target:!0});var r=p(e);t=v(r,"SPAN",{"data-svelte-h":!0}),U(t)!=="svelte-1kd6by1"&&(t.textContent=n),l=E(r),h=v(r,"SPAN",{"data-svelte-h":!0}),U(h)!=="svelte-x0xyl0"&&(h.textContent=o),c=E(r),f=v(r,"SPAN",{"data-svelte-h":!0}),U(f)!=="svelte-1dajgef"&&(f.innerHTML=u),r.forEach(d),this.h()},h(){i(e,"class","!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4"),i(e,"href",s[0]),i(e,"target","_blank")},m(a,r){y(a,e,r),m(e,t),m(e,l),m(e,h),m(e,c),m(e,f)},p(a,[r]){r&1&&i(e,"href",a[0])},i:T,o:T,d(a){a&&d(e)}}}function be(s,e,t){let{source:n=""}=e;return s.$$set=l=>{"source"in l&&t(0,n=l.source)},[n]}class Ne extends V{constructor(e){super(),B(this,e,be,_e,M,{source:0})}}export{ke as C,Ne as E,Ee as H}; | |
Xet Storage Details
- Size:
- 14.7 kB
- Xet hash:
- 69cd08faaf989bae47a55613c7f2cc26c3cf0f5ba1331ed6d3751de5e5d88771
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.