import{s as ge,o as ue,n as ce}from"../chunks/scheduler.01eeda35.js";import{S as fe,i as he,g as i,s as n,r as U,A as Ae,h as r,f as a,c as o,j as me,u as E,x as m,k as B,y as be,a as l,v as G,d as k,t as S,w as j}from"../chunks/index.6dd51b66.js";import{T as ve}from"../chunks/Tip.de9bae2b.js";import{C as Me}from"../chunks/CodeBlock.864da1b0.js";import{H as de,E as Te}from"../chunks/EditOnGithub.7faefd25.js";function we(P){let s,u='Refer to <a href="t5">T5’s documentation page</a> for all API references, code examples, and notebooks. For more details regarding training and evaluation of the MADLAD-400, refer to the model card.';return{c(){s=i("p"),s.innerHTML=u},l(p){s=r(p,"P",{"data-svelte-h":!0}),m(s)!=="svelte-1r5ii45"&&(s.innerHTML=u)},m(p,Z){l(p,s,Z)},p:ce,d(p){p&&a(s)}}}function ye(P){let s,u,p,Z,c,D,d,_=`<img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-DE3412?style=flat&amp;logo=pytorch&amp;logoColor=white"/> <img alt="TensorFlow" src="https://img.shields.io/badge/TensorFlow-FF6F00?style=flat&amp;logo=tensorflow&amp;logoColor=white"/> <img alt="Flax" src="https://img.shields.io/badge/Flax-29a79b.svg?style=flat&amp;logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAMAAAANxBKoAAAC7lBMVEUAAADg5vYHPVgAoJH+/v76+v39/f9JbLP///9+AIgAnY3///+mcqzt8fXy9fgkXa3Ax9709fr+///9/f8qXq49qp5AaLGMwrv8/P0eW60VWawxYq8yqJzG2dytt9Wyu9elzci519Lf3O3S2efY3OrY0+Xp7PT///////+dqNCexMc6Z7AGpJeGvbenstPZ5ejQ1OfJzOLa7ejh4+/r8fT29vpccbklWK8PVa0AS6ghW63O498vYa+lsdKz1NDRt9Kw1c672tbD3tnAxt7R6OHp5vDe7OrDyuDn6vLl6/EAQKak0MgATakkppo3ZK/Bz9y8w9yzu9jey97axdvHzeG21NHH4trTwthKZrVGZLSUSpuPQJiGAI+GAI8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3PR5b4syeSjZMQG/T2maGANlXT2v8S4AULWaUkCxfLyW8iW4kdka+nEMjxpL2NCwsYNBp+Q61PF43zyDg9Bm9+3NNySn78jMZUUkumqE4Gp7JmFOdP1vc8PpRrzj9+wPinCy8K1PiJ4aYbnTYpCCbDkBSbzhu2QJ1Gd82t8jI8TH51+OzvXoWbnXUOBkNW+0mWFwGcGOUVpU81/n3TOHb5oMt2FgYGjzau0Nif0Ss7Q3XB33hjjQHjHA5E5aOyIQc8CBrLdQSs3j92VG+3nNEjbkbdbBr9zm04ruvw37vh0QKOdeGIkckc80fX3KH/h7PT4BOjgCty8VZ5ux1MoO5Cf5naca2LAsEgehI+drX8o/0Nu+W0m6K/I9gGPd/dfx/EN/wN62AhsBWuAAAAAElFTkSuQmCC
"/>`,N,f,q,h,ee="MADLAD-400 models were released in the paper [MADLAD-400: A Multilingual And Document-Level Large Audited Dataset](MADLAD-400: A Multilingual And Document-Level Large Audited Dataset).",z,A,te="The abstract from the paper is the following:",O,b,ae=`<em>We introduce MADLAD-400, a manually audited, general domain 3T token monolingual dataset based on CommonCrawl, spanning 419 languages. We discuss
the limitations revealed by self-auditing MADLAD-400, and the role data auditing
had in the dataset creation process. We then train and release a 10.7B-parameter
multilingual machine translation model on 250 billion tokens covering over 450
languages using publicly available data, and find that it is competitive with models
that are significantly larger, and report the results on different domains. In addition, we train a 8B-parameter language model, and assess the results on few-shot
translation. We make the baseline models 1
available to the research community.</em>`,W,v,le='This model was added by <a href="https://huggingface.co/jbochi" rel="nofollow">Juarez Bochi</a>. The original checkpoints can be found <a href="https://github.com/google-research/google-research/tree/master/madlad_400" rel="nofollow">here</a>.',H,M,se="This is a machine translation model that supports many low-resource languages, and that is competitive with models that are significantly larger.",I,T,ne="One can directly use MADLAD-400 weights without finetuning the model:",Q,w,K,y,oe="Google has released the following variants:",F,C,ie='<li><p><a href="https://huggingface.co/google/madlad400-3b-mt" rel="nofollow">google/madlad400-3b-mt</a></p></li> <li><p><a href="https://huggingface.co/google/madlad400-7b-mt" rel="nofollow">google/madlad400-7b-mt</a></p></li> <li><p><a href="https://huggingface.co/google/madlad400-7b-mt-bt" rel="nofollow">google/madlad400-7b-mt-bt</a></p></li> <li><p><a href="https://huggingface.co/google/madlad400-10b-mt" rel="nofollow">google/madlad400-10b-mt</a></p></li>',R,x,re='The original checkpoints can be found <a href="https://github.com/google-research/google-research/tree/master/madlad_400" rel="nofollow">here</a>.',X,g,Y,L,V,J,$;return c=new de({props:{title:"MADLAD-400",local:"madlad-400",headingTag:"h1"}}),f=new de({props:{title:"Overview",local:"overview",headingTag:"h2"}}),w=new Me({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUyQyUyMEF1dG9Ub2tlbml6ZXIlMEElMEFtb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTS5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlJTJGbWFkbGFkNDAwLTNiLW10JTIyKSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRm1hZGxhZDQwMC0zYi1tdCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIoJTIyJTNDMnB0JTNFJTIwSSUyMGxvdmUlMjBwaXp6YSElMjIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZSgqKmlucHV0cyklMEFwcmludCh0b2tlbml6ZXIuYmF0Y2hfZGVjb2RlKG91dHB1dHMlMkMlMjBza2lwX3NwZWNpYWxfdG9rZW5zJTNEVHJ1ZSkp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSeq2SeqLM, AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;google/madlad400-3b-mt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google/madlad400-3b-mt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;&lt;2pt&gt; I love pizza!&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(tokenizer.batch_decode(outputs, skip_special_tokens=<span class="hljs-literal">True</span>))
[<span class="hljs-string">&#x27;Eu amo pizza!&#x27;</span>]`,wrap:!1}}),g=new ve({props:{$$slots:{default:[we]},$$scope:{ctx:P}}}),L=new Te({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/madlad-400.md"}}),{c(){s=i("meta"),u=n(),p=i("p"),Z=n(),U(c.$$.fragment),D=n(),d=i("div"),d.innerHTML=_,N=n(),U(f.$$.fragment),q=n(),h=i("p"),h.textContent=ee,z=n(),A=i("p"),A.textContent=te,O=n(),b=i("p"),b.innerHTML=ae,W=n(),v=i("p"),v.innerHTML=le,H=n(),M=i("p"),M.textContent=se,I=n(),T=i("p"),T.textContent=ne,Q=n(),U(w.$$.fragment),K=n(),y=i("p"),y.textContent=oe,F=n(),C=i("ul"),C.innerHTML=ie,R=n(),x=i("p"),x.innerHTML=re,X=n(),U(g.$$.fragment),Y=n(),U(L.$$.fragment),V=n(),J=i("p"),this.h()},l(e){const t=Ae("svelte-u9bgzb",document.head);s=r(t,"META",{name:!0,content:!0}),t.forEach(a),u=o(e),p=r(e,"P",{}),me(p).forEach(a),Z=o(e),E(c.$$.fragment,e),D=o(e),d=r(e,"DIV",{class:!0,"data-svelte-h":!0}),m(d)!=="svelte-1px1zvi"&&(d.innerHTML=_),N=o(e),E(f.$$.fragment,e),q=o(e),h=r(e,"P",{"data-svelte-h":!0}),m(h)!=="svelte-s429a9"&&(h.textContent=ee),z=o(e),A=r(e,"P",{"data-svelte-h":!0}),m(A)!=="svelte-auuxi2"&&(A.textContent=te),O=o(e),b=r(e,"P",{"data-svelte-h":!0}),m(b)!=="svelte-44wcro"&&(b.innerHTML=ae),W=o(e),v=r(e,"P",{"data-svelte-h":!0}),m(v)!=="svelte-1qcpk4i"&&(v.innerHTML=le),H=o(e),M=r(e,"P",{"data-svelte-h":!0}),m(M)!=="svelte-1yvayop"&&(M.textContent=se),I=o(e),T=r(e,"P",{"data-svelte-h":!0}),m(T)!=="svelte-1iz0fs1"&&(T.textContent=ne),Q=o(e),E(w.$$.fragment,e),K=o(e),y=r(e,"P",{"data-svelte-h":!0}),m(y)!=="svelte-1p0jqca"&&(y.textContent=oe),F=o(e),C=r(e,"UL",{"data-svelte-h":!0}),m(C)!=="svelte-1s9lf6e"&&(C.innerHTML=ie),R=o(e),x=r(e,"P",{"data-svelte-h":!0}),m(x)!=="svelte-ffgnqr"&&(x.innerHTML=re),X=o(e),E(g.$$.fragment,e),Y=o(e),E(L.$$.fragment,e),V=o(e),J=r(e,"P",{}),me(J).forEach(a),this.h()},h(){B(s,"name","hf:doc:metadata"),B(s,"content",Ce),B(d,"class","flex flex-wrap space-x-1")},m(e,t){be(document.head,s),l(e,u,t),l(e,p,t),l(e,Z,t),G(c,e,t),l(e,D,t),l(e,d,t),l(e,N,t),G(f,e,t),l(e,q,t),l(e,h,t),l(e,z,t),l(e,A,t),l(e,O,t),l(e,b,t),l(e,W,t),l(e,v,t),l(e,H,t),l(e,M,t),l(e,I,t),l(e,T,t),l(e,Q,t),G(w,e,t),l(e,K,t),l(e,y,t),l(e,F,t),l(e,C,t),l(e,R,t),l(e,x,t),l(e,X,t),G(g,e,t),l(e,Y,t),G(L,e,t),l(e,V,t),l(e,J,t),$=!0},p(e,[t]){const pe={};t&2&&(pe.$$scope={dirty:t,ctx:e}),g.$set(pe)},i(e){$||(k(c.$$.fragment,e),k(f.$$.fragment,e),k(w.$$.fragment,e),k(g.$$.fragment,e),k(L.$$.fragment,e),$=!0)},o(e){S(c.$$.fragment,e),S(f.$$.fragment,e),S(w.$$.fragment,e),S(g.$$.fragment,e),S(L.$$.fragment,e),$=!1},d(e){e&&(a(u),a(p),a(Z),a(D),a(d),a(N),a(q),a(h),a(z),a(A),a(O),a(b),a(W),a(v),a(H),a(M),a(I),a(T),a(Q),a(K),a(y),a(F),a(C),a(R),a(x),a(X),a(Y),a(V),a(J)),a(s),j(c,e),j(f,e),j(w,e),j(g,e),j(L,e)}}}const Ce='{"title":"MADLAD-400","local":"madlad-400","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2}],"depth":1}';function xe(P){return ue(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ge extends fe{constructor(s){super(),he(this,s,xe,ye,ge,{})}}export{Ge as component};
