import{s as pi,o as ui,n as di}from"../chunks/scheduler.36a0863c.js";import{S as ci,i as mi,g as o,s as a,u as m,A as fi,h as n,f as t,c as s,j as d,v as f,y as u,k as r,o as p,a as l,w as h,d as b,t as v,x as g}from"../chunks/index.d0f7a4c4.js";import{T as hi}from"../chunks/Tip.4c7d7eb1.js";import{I as me}from"../chunks/IconCopyLink.bc5fad79.js";import{C as ht}from"../chunks/CodeBlock.69433f87.js";function bi(ke){let c,I="Nota che questa funzione può essere utilizzata anche nelle configurazioni multi GPU.";return{c(){c=o("p"),c.textContent=I},l(y){c=n(y,"P",{"data-svelte-h":!0}),u(c)!=="svelte-vzcdbv"&&(c.textContent=I)},m(y,fe){l(y,c,fe)},p:di,d(y){y&&t(c)}}}function vi(ke){let c,I,y,fe,M,C,xe,j,bt,he,_t="Inferenza efficiente su GPU singola",Ge,R,$t='Questo documento sarà presto completato con informazioni su come effetture l’inferenza su una singola GPU. Nel frattempo è possibile consultare <a href="perf_train_gpu_one">la guida per l’addestramento su una singola GPU</a> e <a href="perf_infer_cpu">la guida per l’inferenza su CPU</a>.',Pe,z,U,_e,Z,vt,be,Tt="<code>BetterTransformer</code> per l&#39;inferenza più veloce",Ee,F,wt='Abbiamo recentemente integrato <code>BetterTransformer</code> per velocizzare l’inferenza su GPU per modelli di testo, immagini e audio. Per maggiori dettagli, consultare la documentazione su questa integrazione <a href="https://huggingface.co/docs/optimum/bettertransformer/overview" rel="nofollow">qui</a>.',We,x,J,$e,q,gt,ve,Ct="Integrazione di <code>bitsandbytes</code> per Int8 mixed-precision matrix decomposition",Ie,k,je,N,Ut=`Dal paper <a href="https://arxiv.org/abs/2208.07339" rel="nofollow"><code>LLM.int8() : 8-bit Matrix Multiplication for Transformers at Scale</code></a>, noi supportiamo l’integrazione di Hugging Face per tutti i modelli dell’Hub con poche righe di codice.
Il metodo <code>nn.Linear</code> riduce la dimensione di 2 per i pesi <code>float16</code> e <code>bfloat16</code> e di 4 per i pesi <code>float32</code>, con un impatto quasi nullo sulla qualità, operando sugli outlier in half-precision.`,Re,H,Jt='<img src="https://cdn-uploads.huggingface.co/production/uploads/1659861207959-62441d1d9fdefb55a0b7d12c.png" alt="HFxbitsandbytes.png"/>',Ze,V,kt=`Il metodo Int8 mixed-precision matrix decomposition funziona separando la moltiplicazione tra matrici in due flussi: (1) una matrice di flusso di outlier di caratteristiche sistematiche moltiplicata in fp16, (2) in flusso regolare di moltiplicazione di matrici int8 (99,9%). Con questo metodo, è possibile effettutare inferenza int8 per modelli molto grandi senza degrado predittivo.
Per maggiori dettagli sul metodo, consultare il <a href="https://arxiv.org/abs/2208.07339" rel="nofollow">paper</a> o il nostro <a href="https://huggingface.co/blog/hf-bitsandbytes-integration" rel="nofollow">blogpost sull’integrazione</a>.`,Fe,L,Gt='<img src="https://cdn-uploads.huggingface.co/production/uploads/1660567469965-62441d1d9fdefb55a0b7d12c.gif" alt="MixedInt8.gif"/>',qe,A,Pt=`Nota che è necessaria una GPU per eseguire modelli di tipo mixed-8bit, poiché i kernel sono stati compilati solo per le GPU. Prima di utilizzare questa funzione, assicurarsi di disporre di memoria sufficiente sulla GPU per memorizzare un quarto del modello (o la metà se i pesi del modello sono in mezza precisione).
Di seguito sono riportate alcune note per aiutarvi a utilizzare questo modulo, oppure seguite le dimostrazioni su <a href="#colab-demos">Google colab</a>.`,Ne,_,G,Te,X,yt,ge,Et="Requisiti",He,S,Wt=`<li>Se si dispone di <code>bitsandbytes&lt;0.37.0</code>, assicurarsi di eseguire su GPU NVIDIA che supportano tensor cores a 8 bit (Turing, Ampere o architetture più recenti - ad esempio T4, RTX20s RTX30s, A40-A100). Per <code>bitsandbytes&gt;=0.37.0</code>, tutte le GPU dovrebbero essere supportate.</li> <li>Installare la versione corretta di <code>bitsandbytes</code> eseguendo:
<code>pip install bitsandbytes&gt;=0.31.5</code>.</li> <li>Installare <code>accelerate</code> <code>pip install accelerate&gt;=0.12.0</code></li>`,Ve,$,P,we,B,Mt,ye,It="Esecuzione di modelli mixed-Int8 - configurazione per singola GPU",Le,Y,jt="Dopo aver installato le librerie necessarie, per caricare il tuo modello mixed 8-bit è il seguente:",Ae,Q,Xe,O,Rt="Per la generazione di testo, si consiglia di:",Se,D,Zt="<li>utilizzare il metodo <code>generate()</code> del modello invece della funzione <code>pipeline()</code>. Sebbene l’inferenza sia possibile con la funzione <code>pipeline()</code>, essa non è ottimizzata per i modelli mixed-8bit e sarà più lenta rispetto all’uso del metodo <code>generate()</code>. Inoltre, alcune strategie di campionamento, come il campionamento nucleaus, non sono supportate dalla funzione <code>pipeline()</code> per i modelli mixed-8bit.</li> <li>collocare tutti gli ingressi sullo stesso dispositivo del modello.</li>",Be,K,Ft="Ecco un semplice esempio:",Ye,ee,Qe,T,E,Ce,te,zt,Me,qt="Esecuzione di modelli mixed-8bit - configurazione multi GPU",Oe,ie,Nt="Usare il seguente modo caricare il modello mixed-8bit su più GPU (stesso comando della configurazione a GPU singola):",De,le,Ke,oe,Ht="Puoi controllare la RAM della GPU che si vuole allocare su ogni GPU usando <code>accelerate</code>. Utilizzare l’argomento <code>max_memory</code> come segue:",et,ne,tt,ae,Vt="In questo esempio, la prima GPU utilizzerà 1 GB di memoria e la seconda 2 GB.",it,w,W,Ue,se,xt,ze,Lt="Colab demos",lt,re,At=`Con questo metodo è possibile inferire modelli che prima non era possibile inferire su Google Colab.
Guardate la demo per l’esecuzione di T5-11b (42GB in fp32)! Utilizzo la quantizzazione a 8 bit su Google Colab:`,ot,pe,Xt='<a href="https://colab.research.google.com/drive/1YORPWx4okIHXnjW7MSAidXN29mPVNT7F?usp=sharing" rel="nofollow"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab: T5-11b demo"/></a>',nt,ue,St="Oppure questa demo di BLOOM-3B:",at,de,Bt='<a href="https://colab.research.google.com/drive/1qOjXfQIAULfKvZqwCen8-MoWKGdSatZ4?usp=sharing" rel="nofollow"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab: BLOOM-3b demo"/></a>',st,Je,rt;return j=new me({}),Z=new me({}),q=new me({}),k=new hi({props:{$$slots:{default:[bi]},$$scope:{ctx:ke}}}),X=new me({}),B=new me({}),Q=new ht({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNJTBBJTBBbW9kZWxfbmFtZSUyMCUzRCUyMCUyMmJpZ3NjaWVuY2UlMkZibG9vbS0yYjUlMjIlMEFtb2RlbF84Yml0JTIwJTNEJTIwQXV0b01vZGVsRm9yQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX25hbWUlMkMlMjBkZXZpY2VfbWFwJTNEJTIyYXV0byUyMiUyQyUyMGxvYWRfaW5fOGJpdCUzRFRydWUp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForCausalLM

model_name = <span class="hljs-string">&quot;bigscience/bloom-2b5&quot;</span>
model_8bit = AutoModelForCausalLM.from_pretrained(model_name, device_map=<span class="hljs-string">&quot;auto&quot;</span>, load_in_8bit=<span class="hljs-literal">True</span>)`}}),ee=new ht({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNJTJDJTIwQXV0b1Rva2VuaXplciUwQSUwQW1vZGVsX25hbWUlMjAlM0QlMjAlMjJiaWdzY2llbmNlJTJGYmxvb20tMmI1JTIyJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQobW9kZWxfbmFtZSklMEFtb2RlbF84Yml0JTIwJTNEJTIwQXV0b01vZGVsRm9yQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX25hbWUlMkMlMjBkZXZpY2VfbWFwJTNEJTIyYXV0byUyMiUyQyUyMGxvYWRfaW5fOGJpdCUzRFRydWUpJTBBJTBBdGV4dCUyMCUzRCUyMCUyMkhlbGxvJTJDJTIwbXklMjBsbGFtYSUyMGlzJTIwY3V0ZSUyMiUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplcihwcm9tcHQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKS50byglMjJjdWRhJTIyKSUwQWdlbmVyYXRlZF9pZHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZSgqKmlucHV0cyklMEFvdXRwdXRzJTIwJTNEJTIwdG9rZW5pemVyLmJhdGNoX2RlY29kZShnZW5lcmF0ZWRfaWRzJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForCausalLM, AutoTokenizer

model_name = <span class="hljs-string">&quot;bigscience/bloom-2b5&quot;</span>
tokenizer = AutoTokenizer.from_pretrained(model_name)
model_8bit = AutoModelForCausalLM.from_pretrained(model_name, device_map=<span class="hljs-string">&quot;auto&quot;</span>, load_in_8bit=<span class="hljs-literal">True</span>)

text = <span class="hljs-string">&quot;Hello, my llama is cute&quot;</span>
inputs = tokenizer(prompt, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).to(<span class="hljs-string">&quot;cuda&quot;</span>)
generated_ids = model.generate(**inputs)
outputs = tokenizer.batch_decode(generated_ids, skip_special_tokens=<span class="hljs-literal">True</span>)`}}),te=new me({}),le=new ht({props:{code:"bW9kZWxfbmFtZSUyMCUzRCUyMCUyMmJpZ3NjaWVuY2UlMkZibG9vbS0yYjUlMjIlMEFtb2RlbF84Yml0JTIwJTNEJTIwQXV0b01vZGVsRm9yQ2F1c2FsTE0uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX25hbWUlMkMlMjBkZXZpY2VfbWFwJTNEJTIyYXV0byUyMiUyQyUyMGxvYWRfaW5fOGJpdCUzRFRydWUp",highlighted:`model_name = <span class="hljs-string">&quot;bigscience/bloom-2b5&quot;</span>
model_8bit = AutoModelForCausalLM.from_pretrained(model_name, device_map=<span class="hljs-string">&quot;auto&quot;</span>, load_in_8bit=<span class="hljs-literal">True</span>)`}}),ne=new ht({props:{code:"bWF4X21lbW9yeV9tYXBwaW5nJTIwJTNEJTIwJTdCMCUzQSUyMCUyMjFHQiUyMiUyQyUyMDElM0ElMjAlMjIyR0IlMjIlN0QlMEFtb2RlbF9uYW1lJTIwJTNEJTIwJTIyYmlnc2NpZW5jZSUyRmJsb29tLTNiJTIyJTBBbW9kZWxfOGJpdCUyMCUzRCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjBtb2RlbF9uYW1lJTJDJTIwZGV2aWNlX21hcCUzRCUyMmF1dG8lMjIlMkMlMjBsb2FkX2luXzhiaXQlM0RUcnVlJTJDJTIwbWF4X21lbW9yeSUzRG1heF9tZW1vcnlfbWFwcGluZyUwQSk=",highlighted:`max_memory_mapping = {<span class="hljs-number">0</span>: <span class="hljs-string">&quot;1GB&quot;</span>, <span class="hljs-number">1</span>: <span class="hljs-string">&quot;2GB&quot;</span>}
model_name = <span class="hljs-string">&quot;bigscience/bloom-3b&quot;</span>
model_8bit = AutoModelForCausalLM.from_pretrained(
    model_name, device_map=<span class="hljs-string">&quot;auto&quot;</span>, load_in_8bit=<span class="hljs-literal">True</span>, max_memory=max_memory_mapping
)`}}),se=new me({}),{c(){c=o("meta"),I=a(),y=o("p"),fe=a(),M=o("h1"),C=o("a"),xe=o("span"),m(j.$$.fragment),bt=a(),he=o("span"),he.textContent=_t,Ge=a(),R=o("p"),R.innerHTML=$t,Pe=a(),z=o("h2"),U=o("a"),_e=o("span"),m(Z.$$.fragment),vt=a(),be=o("span"),be.innerHTML=Tt,Ee=a(),F=o("p"),F.innerHTML=wt,We=a(),x=o("h2"),J=o("a"),$e=o("span"),m(q.$$.fragment),gt=a(),ve=o("span"),ve.innerHTML=Ct,Ie=a(),m(k.$$.fragment),je=a(),N=o("p"),N.innerHTML=Ut,Re=a(),H=o("p"),H.innerHTML=Jt,Ze=a(),V=o("p"),V.innerHTML=kt,Fe=a(),L=o("p"),L.innerHTML=Gt,qe=a(),A=o("p"),A.innerHTML=Pt,Ne=a(),_=o("h3"),G=o("a"),Te=o("span"),m(X.$$.fragment),yt=a(),ge=o("span"),ge.textContent=Et,He=a(),S=o("ul"),S.innerHTML=Wt,Ve=a(),$=o("h3"),P=o("a"),we=o("span"),m(B.$$.fragment),Mt=a(),ye=o("span"),ye.textContent=It,Le=a(),Y=o("p"),Y.textContent=jt,Ae=a(),m(Q.$$.fragment),Xe=a(),O=o("p"),O.textContent=Rt,Se=a(),D=o("ul"),D.innerHTML=Zt,Be=a(),K=o("p"),K.textContent=Ft,Ye=a(),m(ee.$$.fragment),Qe=a(),T=o("h3"),E=o("a"),Ce=o("span"),m(te.$$.fragment),zt=a(),Me=o("span"),Me.textContent=qt,Oe=a(),ie=o("p"),ie.textContent=Nt,De=a(),m(le.$$.fragment),Ke=a(),oe=o("p"),oe.innerHTML=Ht,et=a(),m(ne.$$.fragment),tt=a(),ae=o("p"),ae.textContent=Vt,it=a(),w=o("h3"),W=o("a"),Ue=o("span"),m(se.$$.fragment),xt=a(),ze=o("span"),ze.textContent=Lt,lt=a(),re=o("p"),re.textContent=At,ot=a(),pe=o("p"),pe.innerHTML=Xt,nt=a(),ue=o("p"),ue.textContent=St,at=a(),de=o("p"),de.innerHTML=Bt,st=a(),Je=o("p"),this.h()},l(e){const i=fi("svelte-1phssyn",document.head);c=n(i,"META",{name:!0,content:!0}),i.forEach(t),I=s(e),y=n(e,"P",{}),d(y).forEach(t),fe=s(e),M=n(e,"H1",{class:!0});var ce=d(M);C=n(ce,"A",{id:!0,class:!0,href:!0});var Yt=d(C);xe=n(Yt,"SPAN",{});var Qt=d(xe);f(j.$$.fragment,Qt),Qt.forEach(t),Yt.forEach(t),bt=s(ce),he=n(ce,"SPAN",{"data-svelte-h":!0}),u(he)!=="svelte-13dy7wm"&&(he.textContent=_t),ce.forEach(t),Ge=s(e),R=n(e,"P",{"data-svelte-h":!0}),u(R)!=="svelte-nhozkm"&&(R.innerHTML=$t),Pe=s(e),z=n(e,"H2",{class:!0});var pt=d(z);U=n(pt,"A",{id:!0,class:!0,href:!0});var Ot=d(U);_e=n(Ot,"SPAN",{});var Dt=d(_e);f(Z.$$.fragment,Dt),Dt.forEach(t),Ot.forEach(t),vt=s(pt),be=n(pt,"SPAN",{"data-svelte-h":!0}),u(be)!=="svelte-1mzm73r"&&(be.innerHTML=Tt),pt.forEach(t),Ee=s(e),F=n(e,"P",{"data-svelte-h":!0}),u(F)!=="svelte-1z110ap"&&(F.innerHTML=wt),We=s(e),x=n(e,"H2",{class:!0});var ut=d(x);J=n(ut,"A",{id:!0,class:!0,href:!0});var Kt=d(J);$e=n(Kt,"SPAN",{});var ei=d($e);f(q.$$.fragment,ei),ei.forEach(t),Kt.forEach(t),gt=s(ut),ve=n(ut,"SPAN",{"data-svelte-h":!0}),u(ve)!=="svelte-wf96fi"&&(ve.innerHTML=Ct),ut.forEach(t),Ie=s(e),f(k.$$.fragment,e),je=s(e),N=n(e,"P",{"data-svelte-h":!0}),u(N)!=="svelte-om1tv8"&&(N.innerHTML=Ut),Re=s(e),H=n(e,"P",{"data-svelte-h":!0}),u(H)!=="svelte-1tsrdqi"&&(H.innerHTML=Jt),Ze=s(e),V=n(e,"P",{"data-svelte-h":!0}),u(V)!=="svelte-1hgrk11"&&(V.innerHTML=kt),Fe=s(e),L=n(e,"P",{"data-svelte-h":!0}),u(L)!=="svelte-y2mgdg"&&(L.innerHTML=Gt),qe=s(e),A=n(e,"P",{"data-svelte-h":!0}),u(A)!=="svelte-1b4hp8z"&&(A.innerHTML=Pt),Ne=s(e),_=n(e,"H3",{class:!0});var dt=d(_);G=n(dt,"A",{id:!0,class:!0,href:!0});var ti=d(G);Te=n(ti,"SPAN",{});var ii=d(Te);f(X.$$.fragment,ii),ii.forEach(t),ti.forEach(t),yt=s(dt),ge=n(dt,"SPAN",{"data-svelte-h":!0}),u(ge)!=="svelte-7zsh56"&&(ge.textContent=Et),dt.forEach(t),He=s(e),S=n(e,"UL",{"data-svelte-h":!0}),u(S)!=="svelte-50hzsq"&&(S.innerHTML=Wt),Ve=s(e),$=n(e,"H3",{class:!0});var ct=d($);P=n(ct,"A",{id:!0,class:!0,href:!0});var li=d(P);we=n(li,"SPAN",{});var oi=d(we);f(B.$$.fragment,oi),oi.forEach(t),li.forEach(t),Mt=s(ct),ye=n(ct,"SPAN",{"data-svelte-h":!0}),u(ye)!=="svelte-mo48y3"&&(ye.textContent=It),ct.forEach(t),Le=s(e),Y=n(e,"P",{"data-svelte-h":!0}),u(Y)!=="svelte-14t427w"&&(Y.textContent=jt),Ae=s(e),f(Q.$$.fragment,e),Xe=s(e),O=n(e,"P",{"data-svelte-h":!0}),u(O)!=="svelte-7gz38r"&&(O.textContent=Rt),Se=s(e),D=n(e,"UL",{"data-svelte-h":!0}),u(D)!=="svelte-drw5lu"&&(D.innerHTML=Zt),Be=s(e),K=n(e,"P",{"data-svelte-h":!0}),u(K)!=="svelte-1s7g1s7"&&(K.textContent=Ft),Ye=s(e),f(ee.$$.fragment,e),Qe=s(e),T=n(e,"H3",{class:!0});var mt=d(T);E=n(mt,"A",{id:!0,class:!0,href:!0});var ni=d(E);Ce=n(ni,"SPAN",{});var ai=d(Ce);f(te.$$.fragment,ai),ai.forEach(t),ni.forEach(t),zt=s(mt),Me=n(mt,"SPAN",{"data-svelte-h":!0}),u(Me)!=="svelte-1g4u2oy"&&(Me.textContent=qt),mt.forEach(t),Oe=s(e),ie=n(e,"P",{"data-svelte-h":!0}),u(ie)!=="svelte-df9yha"&&(ie.textContent=Nt),De=s(e),f(le.$$.fragment,e),Ke=s(e),oe=n(e,"P",{"data-svelte-h":!0}),u(oe)!=="svelte-1qhnznq"&&(oe.innerHTML=Ht),et=s(e),f(ne.$$.fragment,e),tt=s(e),ae=n(e,"P",{"data-svelte-h":!0}),u(ae)!=="svelte-80anhf"&&(ae.textContent=Vt),it=s(e),w=n(e,"H3",{class:!0});var ft=d(w);W=n(ft,"A",{id:!0,class:!0,href:!0});var si=d(W);Ue=n(si,"SPAN",{});var ri=d(Ue);f(se.$$.fragment,ri),ri.forEach(t),si.forEach(t),xt=s(ft),ze=n(ft,"SPAN",{"data-svelte-h":!0}),u(ze)!=="svelte-bukvua"&&(ze.textContent=Lt),ft.forEach(t),lt=s(e),re=n(e,"P",{"data-svelte-h":!0}),u(re)!=="svelte-e4lo0z"&&(re.textContent=At),ot=s(e),pe=n(e,"P",{"data-svelte-h":!0}),u(pe)!=="svelte-1yb5ek4"&&(pe.innerHTML=Xt),nt=s(e),ue=n(e,"P",{"data-svelte-h":!0}),u(ue)!=="svelte-1u8p947"&&(ue.textContent=St),at=s(e),de=n(e,"P",{"data-svelte-h":!0}),u(de)!=="svelte-6z7881"&&(de.innerHTML=Bt),st=s(e),Je=n(e,"P",{}),d(Je).forEach(t),this.h()},h(){r(c,"name","hf:doc:metadata"),r(c,"content",JSON.stringify(gi)),r(C,"id","inferenza-efficiente-su-gpu-singola"),r(C,"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"),r(C,"href","#inferenza-efficiente-su-gpu-singola"),r(M,"class","relative group"),r(U,"id","bettertransformer-per-linferenza-pi-veloce"),r(U,"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"),r(U,"href","#bettertransformer-per-linferenza-pi-veloce"),r(z,"class","relative group"),r(J,"id","integrazione-di-bitsandbytes-per-int8-mixedprecision-matrix-decomposition"),r(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"),r(J,"href","#integrazione-di-bitsandbytes-per-int8-mixedprecision-matrix-decomposition"),r(x,"class","relative group"),r(G,"id","requisiti"),r(G,"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"),r(G,"href","#requisiti"),r(_,"class","relative group"),r(P,"id","esecuzione-di-modelli-mixedint8-configurazione-per-singola-gpu"),r(P,"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"),r(P,"href","#esecuzione-di-modelli-mixedint8-configurazione-per-singola-gpu"),r($,"class","relative group"),r(E,"id","esecuzione-di-modelli-mixed8bit-configurazione-multi-gpu"),r(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"),r(E,"href","#esecuzione-di-modelli-mixed8bit-configurazione-multi-gpu"),r(T,"class","relative group"),r(W,"id","colab-demos"),r(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"),r(W,"href","#colab-demos"),r(w,"class","relative group")},m(e,i){p(document.head,c),l(e,I,i),l(e,y,i),l(e,fe,i),l(e,M,i),p(M,C),p(C,xe),h(j,xe,null),p(M,bt),p(M,he),l(e,Ge,i),l(e,R,i),l(e,Pe,i),l(e,z,i),p(z,U),p(U,_e),h(Z,_e,null),p(z,vt),p(z,be),l(e,Ee,i),l(e,F,i),l(e,We,i),l(e,x,i),p(x,J),p(J,$e),h(q,$e,null),p(x,gt),p(x,ve),l(e,Ie,i),h(k,e,i),l(e,je,i),l(e,N,i),l(e,Re,i),l(e,H,i),l(e,Ze,i),l(e,V,i),l(e,Fe,i),l(e,L,i),l(e,qe,i),l(e,A,i),l(e,Ne,i),l(e,_,i),p(_,G),p(G,Te),h(X,Te,null),p(_,yt),p(_,ge),l(e,He,i),l(e,S,i),l(e,Ve,i),l(e,$,i),p($,P),p(P,we),h(B,we,null),p($,Mt),p($,ye),l(e,Le,i),l(e,Y,i),l(e,Ae,i),h(Q,e,i),l(e,Xe,i),l(e,O,i),l(e,Se,i),l(e,D,i),l(e,Be,i),l(e,K,i),l(e,Ye,i),h(ee,e,i),l(e,Qe,i),l(e,T,i),p(T,E),p(E,Ce),h(te,Ce,null),p(T,zt),p(T,Me),l(e,Oe,i),l(e,ie,i),l(e,De,i),h(le,e,i),l(e,Ke,i),l(e,oe,i),l(e,et,i),h(ne,e,i),l(e,tt,i),l(e,ae,i),l(e,it,i),l(e,w,i),p(w,W),p(W,Ue),h(se,Ue,null),p(w,xt),p(w,ze),l(e,lt,i),l(e,re,i),l(e,ot,i),l(e,pe,i),l(e,nt,i),l(e,ue,i),l(e,at,i),l(e,de,i),l(e,st,i),l(e,Je,i),rt=!0},p(e,[i]){const ce={};i&2&&(ce.$$scope={dirty:i,ctx:e}),k.$set(ce)},i(e){rt||(b(j.$$.fragment,e),b(Z.$$.fragment,e),b(q.$$.fragment,e),b(k.$$.fragment,e),b(X.$$.fragment,e),b(B.$$.fragment,e),b(Q.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),b(le.$$.fragment,e),b(ne.$$.fragment,e),b(se.$$.fragment,e),rt=!0)},o(e){v(j.$$.fragment,e),v(Z.$$.fragment,e),v(q.$$.fragment,e),v(k.$$.fragment,e),v(X.$$.fragment,e),v(B.$$.fragment,e),v(Q.$$.fragment,e),v(ee.$$.fragment,e),v(te.$$.fragment,e),v(le.$$.fragment,e),v(ne.$$.fragment,e),v(se.$$.fragment,e),rt=!1},d(e){e&&(t(I),t(y),t(fe),t(M),t(Ge),t(R),t(Pe),t(z),t(Ee),t(F),t(We),t(x),t(Ie),t(je),t(N),t(Re),t(H),t(Ze),t(V),t(Fe),t(L),t(qe),t(A),t(Ne),t(_),t(He),t(S),t(Ve),t($),t(Le),t(Y),t(Ae),t(Xe),t(O),t(Se),t(D),t(Be),t(K),t(Ye),t(Qe),t(T),t(Oe),t(ie),t(De),t(Ke),t(oe),t(et),t(tt),t(ae),t(it),t(w),t(lt),t(re),t(ot),t(pe),t(nt),t(ue),t(at),t(de),t(st),t(Je)),t(c),g(j),g(Z),g(q),g(k,e),g(X),g(B),g(Q,e),g(ee,e),g(te),g(le,e),g(ne,e),g(se)}}}const gi={local:"inferenza-efficiente-su-gpu-singola",sections:[{local:"bettertransformer-per-linferenza-pi-veloce",title:"`BetterTransformer` per l'inferenza più veloce"},{local:"integrazione-di-bitsandbytes-per-int8-mixedprecision-matrix-decomposition",sections:[{local:"requisiti",title:"Requisiti"},{local:"esecuzione-di-modelli-mixedint8-configurazione-per-singola-gpu",title:"Esecuzione di modelli mixed-Int8 - configurazione per singola GPU"},{local:"esecuzione-di-modelli-mixed8bit-configurazione-multi-gpu",title:"Esecuzione di modelli mixed-8bit - configurazione multi GPU"},{local:"colab-demos",title:"Colab demos"}],title:"Integrazione di `bitsandbytes` per Int8 mixed-precision matrix decomposition"}],title:"Inferenza efficiente su GPU singola"};function yi(ke){return ui(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ti extends ci{constructor(c){super(),mi(this,c,yi,vi,pi,{})}}export{Ti as component};
