import{s as Q,o as V,n as X}from"../chunks/scheduler.9bc65507.js";import{S as Z,i as ee,g as m,s as l,r as k,A as te,h as p,f as a,c as f,j as Y,u as z,x as c,k as F,y as ae,a as n,v as U,d as A,t as I,w as q}from"../chunks/index.707bf1b6.js";import{T as ne}from"../chunks/Tip.c2ecdbf4.js";import{H as K}from"../chunks/Heading.342b1fa6.js";function ie(R){let i,d="This model is in maintenance mode only, so we won’t accept any new PRs changing its code.",h,o,u=`If you run into any issues running this model, please reinstall the last version that supported this model: v4.30.0.
You can do so by running the following command: <code>pip install -U transformers==4.30.0</code>.`;return{c(){i=m("p"),i.textContent=d,h=l(),o=m("p"),o.innerHTML=u},l(r){i=p(r,"P",{"data-svelte-h":!0}),c(i)!=="svelte-lwu440"&&(i.textContent=d),h=f(r),o=p(r,"P",{"data-svelte-h":!0}),c(o)!=="svelte-4042uy"&&(o.innerHTML=u)},m(r,s){n(r,i,s),n(r,h,s),n(r,o,s)},p:X,d(r){r&&(a(i),a(h),a(o))}}}function re(R){let i,d,h,o,u,r,s,y,g,B,v,S=`The BORT model was proposed in <a href="https://arxiv.org/abs/2010.10499" rel="nofollow">Optimal Subarchitecture Extraction for BERT</a> by
Adrian de Wynter and Daniel J. Perry. It is an optimal subset of architectural parameters for the BERT, which the
authors refer to as “Bort”.`,P,T,j="The abstract from the paper is the following:",E,w,D=`<em>We extract an optimal subset of architectural parameters for the BERT architecture from Devlin et al. (2018) by
applying recent breakthroughs in algorithms for neural architecture search. This optimal subset, which we refer to as
“Bort”, is demonstrably smaller, having an effective (that is, not counting the embedding layer) size of 5.5% the
original BERT-large architecture, and 16% of the net size. Bort is also able to be pretrained in 288 GPU hours, which
is 1.2% of the time required to pretrain the highest-performing BERT parametric architectural variant, RoBERTa-large
(Liu et al., 2019), and about 33% of that of the world-record, in GPU hours, required to train BERT-large on the same
hardware. It is also 7.9x faster on a CPU, as well as being better performing than other compressed variants of the
architecture, and some of the non-compressed variants: it obtains performance improvements of between 0.3% and 31%,
absolute, with respect to BERT-large, on multiple public natural language understanding (NLU) benchmarks.</em>`,C,b,G="Tips:",L,$,W=`<li>BORT’s model architecture is based on BERT, so one can refer to <a href="bert">BERT’s documentation page</a> for the
model’s API as well as usage examples.</li> <li>BORT uses the RoBERTa tokenizer instead of the BERT tokenizer, so one can refer to <a href="roberta">RoBERTa’s documentation page</a> for the tokenizer’s API as well as usage examples.</li> <li>BORT requires a specific fine-tuning algorithm, called <a href="https://adewynter.github.io/notes/bort_algorithms_and_applications.html#fine-tuning-with-algebraic-topology" rel="nofollow">Agora</a> ,
that is sadly not open-sourced yet. It would be very useful for the community, if someone tries to implement the
algorithm to make BORT fine-tuning work.</li>`,H,_,J='This model was contributed by <a href="https://huggingface.co/stefan-it" rel="nofollow">stefan-it</a>. The original code can be found <a href="https://github.com/alexa/bort/" rel="nofollow">here</a>.',M,x,O;return u=new K({props:{title:"BORT",local:"bort",headingTag:"h1"}}),s=new ne({props:{warning:!0,$$slots:{default:[ie]},$$scope:{ctx:R}}}),g=new K({props:{title:"Overview",local:"overview",headingTag:"h2"}}),{c(){i=m("meta"),d=l(),h=m("p"),o=l(),k(u.$$.fragment),r=l(),k(s.$$.fragment),y=l(),k(g.$$.fragment),B=l(),v=m("p"),v.innerHTML=S,P=l(),T=m("p"),T.textContent=j,E=l(),w=m("p"),w.innerHTML=D,C=l(),b=m("p"),b.textContent=G,L=l(),$=m("ul"),$.innerHTML=W,H=l(),_=m("p"),_.innerHTML=J,M=l(),x=m("p"),this.h()},l(e){const t=te("svelte-u9bgzb",document.head);i=p(t,"META",{name:!0,content:!0}),t.forEach(a),d=f(e),h=p(e,"P",{}),Y(h).forEach(a),o=f(e),z(u.$$.fragment,e),r=f(e),z(s.$$.fragment,e),y=f(e),z(g.$$.fragment,e),B=f(e),v=p(e,"P",{"data-svelte-h":!0}),c(v)!=="svelte-1ekxxrt"&&(v.innerHTML=S),P=f(e),T=p(e,"P",{"data-svelte-h":!0}),c(T)!=="svelte-vfdo9a"&&(T.textContent=j),E=f(e),w=p(e,"P",{"data-svelte-h":!0}),c(w)!=="svelte-1vfe3y"&&(w.innerHTML=D),C=f(e),b=p(e,"P",{"data-svelte-h":!0}),c(b)!=="svelte-axv494"&&(b.textContent=G),L=f(e),$=p(e,"UL",{"data-svelte-h":!0}),c($)!=="svelte-1jfpz0i"&&($.innerHTML=W),H=f(e),_=p(e,"P",{"data-svelte-h":!0}),c(_)!=="svelte-n8ivge"&&(_.innerHTML=J),M=f(e),x=p(e,"P",{}),Y(x).forEach(a),this.h()},h(){F(i,"name","hf:doc:metadata"),F(i,"content",oe)},m(e,t){ae(document.head,i),n(e,d,t),n(e,h,t),n(e,o,t),U(u,e,t),n(e,r,t),U(s,e,t),n(e,y,t),U(g,e,t),n(e,B,t),n(e,v,t),n(e,P,t),n(e,T,t),n(e,E,t),n(e,w,t),n(e,C,t),n(e,b,t),n(e,L,t),n(e,$,t),n(e,H,t),n(e,_,t),n(e,M,t),n(e,x,t),O=!0},p(e,[t]){const N={};t&2&&(N.$$scope={dirty:t,ctx:e}),s.$set(N)},i(e){O||(A(u.$$.fragment,e),A(s.$$.fragment,e),A(g.$$.fragment,e),O=!0)},o(e){I(u.$$.fragment,e),I(s.$$.fragment,e),I(g.$$.fragment,e),O=!1},d(e){e&&(a(d),a(h),a(o),a(r),a(y),a(B),a(v),a(P),a(T),a(E),a(w),a(C),a(b),a(L),a($),a(H),a(_),a(M),a(x)),a(i),q(u,e),q(s,e),q(g,e)}}}const oe='{"title":"BORT","local":"bort","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2}],"depth":1}';function se(R){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class he extends Z{constructor(i){super(),ee(this,i,se,re,Q,{})}}export{he as component};
