import{S as Gd,i as Fd,s as Md,e as o,k as p,w as $,t,M as Vd,c as s,d as a,m as h,x as C,a as n,h as r,b as i,G as e,g as Ir,y as D,q as P,o as k,B as T,v as Rd}from"../../chunks/vendor-hf-doc-builder.js";import{T as Ud}from"../../chunks/Tip-hf-doc-builder.js";import{Y as Ld}from"../../chunks/Youtube-hf-doc-builder.js";import{I as Bd}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as M}from"../../chunks/CodeBlock-hf-doc-builder.js";import{D as Wd}from"../../chunks/DocNotebookDropdown-hf-doc-builder.js";import{F as Hd}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";function Yd(pe){let f,N,_,z,l,m,E,V,x,he,Y;return{c(){f=o("p"),N=t("\u{1F4A1} \u0627\u06AF\u0631 \u0645\u0627\u06CC\u0644\u06CC\u062F \u0645\u062F\u0644\u200C\u062A\u0627\u0646 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062A \u062E\u0648\u062F\u06A9\u0627\u0631 \u062F\u0631 \u062D\u06CC\u0646 \u062A\u0639\u0644\u06CC\u0645 \u062F\u0631 \u0647\u0627\u0628 \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F\u060C \u067E\u0627\u0631\u0627\u0645\u062A\u0631 "),_=o("code"),z=t("push_to_hub=True"),l=t(" \u0631\u0627 \u062F\u0631 "),m=o("code"),E=t("TrainingArguments"),V=t(" \u0627\u0631\u0633\u0627\u0644 \u06A9\u0646\u06CC\u062F. \u062F\u0631 "),x=o("a"),he=t("\u0641\u0635\u0644 \u06F4"),Y=t(" \u062F\u0631 \u0627\u06CC\u0646 \u0628\u0627\u0631\u0647 \u0628\u06CC\u0634\u062A\u0631 \u062E\u0648\u0627\u0647\u06CC\u0645 \u0622\u0645\u0648\u062E\u062A."),this.h()},l(Z){f=s(Z,"P",{});var b=n(f);N=r(b,"\u{1F4A1} \u0627\u06AF\u0631 \u0645\u0627\u06CC\u0644\u06CC\u062F \u0645\u062F\u0644\u200C\u062A\u0627\u0646 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062A \u062E\u0648\u062F\u06A9\u0627\u0631 \u062F\u0631 \u062D\u06CC\u0646 \u062A\u0639\u0644\u06CC\u0645 \u062F\u0631 \u0647\u0627\u0628 \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u062F\u060C \u067E\u0627\u0631\u0627\u0645\u062A\u0631 "),_=s(b,"CODE",{});var ye=n(_);z=r(ye,"push_to_hub=True"),ye.forEach(a),l=r(b," \u0631\u0627 \u062F\u0631 "),m=s(b,"CODE",{});var Ne=n(m);E=r(Ne,"TrainingArguments"),Ne.forEach(a),V=r(b," \u0627\u0631\u0633\u0627\u0644 \u06A9\u0646\u06CC\u062F. \u062F\u0631 "),x=s(b,"A",{href:!0});var J=n(x);he=r(J,"\u0641\u0635\u0644 \u06F4"),J.forEach(a),Y=r(b," \u062F\u0631 \u0627\u06CC\u0646 \u0628\u0627\u0631\u0647 \u0628\u06CC\u0634\u062A\u0631 \u062E\u0648\u0627\u0647\u06CC\u0645 \u0622\u0645\u0648\u062E\u062A."),b.forEach(a),this.h()},h(){i(x,"href","/course/chapter4/3")},m(Z,b){Ir(Z,f,b),e(f,N),e(f,_),e(_,z),e(f,l),e(f,m),e(m,E),e(f,V),e(f,x),e(x,he),e(f,Y)},d(Z){Z&&a(f)}}}function Jd(pe){let f,N,_,z,l;return{c(){f=o("p"),N=t("\u270F\uFE0F "),_=o("strong"),z=t("\u0627\u062A\u062D\u0627\u0646 \u06A9\u0646\u06CC\u062F!"),l=t(" \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u067E\u0631\u062F\u0627\u0632\u0634 \u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06A9\u0647 \u062F\u0631 \u0628\u062E\u0634 \u06F2 \u0627\u0646\u062C\u0627\u0645 \u062F\u0627\u062F\u06CC\u062F\u060C \u0645\u062F\u0644\u06CC \u0631\u0627 \u0631\u0648\u06CC \u062F\u06CC\u062A\u0627\u0633\u0650\u062A GLUE SST-2 \u06A9\u0648\u06A9 \u06A9\u0646\u06CC\u062F.")},l(m){f=s(m,"P",{});var E=n(f);N=r(E,"\u270F\uFE0F "),_=s(E,"STRONG",{});var V=n(_);z=r(V,"\u0627\u062A\u062D\u0627\u0646 \u06A9\u0646\u06CC\u062F!"),V.forEach(a),l=r(E," \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u067E\u0631\u062F\u0627\u0632\u0634 \u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06A9\u0647 \u062F\u0631 \u0628\u062E\u0634 \u06F2 \u0627\u0646\u062C\u0627\u0645 \u062F\u0627\u062F\u06CC\u062F\u060C \u0645\u062F\u0644\u06CC \u0631\u0627 \u0631\u0648\u06CC \u062F\u06CC\u062A\u0627\u0633\u0650\u062A GLUE SST-2 \u06A9\u0648\u06A9 \u06A9\u0646\u06CC\u062F."),E.forEach(a)},m(m,E){Ir(m,f,E),e(f,N),e(f,_),e(_,z),e(f,l)},d(m){m&&a(f)}}}function Xd(pe){let f,N,_,z,l,m,E,V,x,he,Y,Z,b,ye,Ne,J,Lr,fe,Br,I,Wr,kt,Hr,Yr,Tt,Jr,Xr,ze,Ot,Kr,Qr,_e,Zr,ea,ta,bt,ra,aa,xe,ue,oa,Ie,sa,na,A,la,wt,da,ca,jt,ia,pa,At,ha,fa,St,_a,ua,qt,ma,Ea,va,Ue,me,ga,ne,$a,ee,Ca,Ge,Da,Pa,yt,ka,Ta,Oa,Fe,Ee,ba,ve,wa,Me,ja,Aa,Sa,v,qa,Nt,ya,Na,Ve,zt,za,xa,Re,xt,Ia,Ua,Le,It,Ga,Fa,Be,Ut,Ma,Va,We,Gt,Ra,La,He,Ft,Ba,Wa,Ha,Ye,ge,Ya,S,Ja,Mt,Xa,Ka,Vt,Qa,Za,Rt,eo,to,Lt,ro,ao,Bt,oo,so,no,te,lo,Je,Wt,co,io,Ht,po,ho,fo,Xe,$e,_o,Yt,uo,mo,q,Eo,Jt,vo,go,Xt,$o,Co,Kt,Do,Po,Qt,ko,To,Zt,Oo,bo,wo,re,jo,Ke,er,Ao,So,tr,qo,yo,No,Qe,zo,xo,y,Io,Ze,rr,Uo,Go,ar,Fo,Mo,or,Vo,Ro,sr,Lo,Bo,et,nr,Wo,Ho,Yo,le,Ce,Jo,De,Xo,u,Ko,tt,lr,Qo,Zo,dr,es,ts,cr,rs,as,ir,os,ss,pr,ns,ls,rt,hr,ds,cs,fr,is,ps,at,_r,hs,fs,_s,U,us,ur,ms,Es,ot,vs,gs,st,mr,$s,Cs,nt,Ds,Ps,ks,lt,Pe,Ts,G,Os,Er,bs,ws,dt,vr,js,As,ct,gr,Ss,qs,it,$r,ys,Ns,zs,de,ke,xs,Te,Is,g,Us,Cr,Gs,Fs,Dr,Ms,Vs,Pr,Rs,Ls,Oe,Bs,Ws,kr,Hs,Ys,Tr,Js,Xs,Or,Ks,Qs,Zs,be,en,pt,br,tn,rn,an,ht,we,on,ae,sn,wr,nn,ln,ft,jr,dn,cn,pn,_t,je,hn,H,fn,Ar,_n,un,Sr,mn,En,qr,vn,gn,$n,ut,Ae,Cn,Se,Dn,mt,Pn,kn,Tn,oe,On,yr,bn,wn,Nr,jn,An,Sn,se,qn,zr,yn,Nn,Et,zn,xn,In,ce,Ur;return _=new Hd({props:{fw:pe[0]}}),x=new Bd({}),J=new Wd({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter3/section3.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/chapter3/section3.ipynb"}]}}),fe=new Ld({props:{id:"nvBXf7s7vTI"}}),ue=new M({props:{code:`



`,highlighted:`<span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, DataCollatorWithPadding

raw_datasets = load_dataset(<span class="hljs-string">&quot;glue&quot;</span>, <span class="hljs-string">&quot;mrpc&quot;</span>)
checkpoint = <span class="hljs-string">&quot;bert-base-uncased&quot;</span>
tokenizer = AutoTokenizer.from_pretrained(checkpoint)


<span class="hljs-keyword">def</span> <span class="hljs-title function_">tokenize_function</span>(<span class="hljs-params">example</span>):
    <span class="hljs-keyword">return</span> tokenizer(example[<span class="hljs-string">&quot;sentence1&quot;</span>], example[<span class="hljs-string">&quot;sentence2&quot;</span>], truncation=<span class="hljs-literal">True</span>)


tokenized_datasets = raw_datasets.<span class="hljs-built_in">map</span>(tokenize_function, batched=<span class="hljs-literal">True</span>)
data_collator = DataCollatorWithPadding(tokenizer=tokenizer)`}}),me=new M({props:{code:"",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

training_args = TrainingArguments(<span class="hljs-string">&quot;test-trainer&quot;</span>)`}}),ne=new Ud({props:{$$slots:{default:[Yd]},$$scope:{ctx:pe}}}),Ee=new M({props:{code:"",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSequenceClassification

model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=<span class="hljs-number">2</span>)`}}),ge=new M({props:{code:"",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Trainer

trainer = Trainer(
    model,
    training_args,
    train_dataset=tokenized_datasets[<span class="hljs-string">&quot;train&quot;</span>],
    eval_dataset=tokenized_datasets[<span class="hljs-string">&quot;validation&quot;</span>],
    data_collator=data_collator,
    tokenizer=tokenizer,
)`}}),$e=new M({props:{code:"trainer.train()",highlighted:"trainer.train()"}}),Ce=new M({props:{code:`predictions = trainer.predict(tokenized_datasets["validation"])
print(predictions.predictions.shape, predictions.label_ids.shape)`,highlighted:`predictions = trainer.predict(tokenized_datasets[<span class="hljs-string">&quot;validation&quot;</span>])
<span class="hljs-built_in">print</span>(predictions.predictions.shape, predictions.label_ids.shape)`}}),De=new M({props:{code:"(408, 2) (408,)",highlighted:'(<span class="hljs-number">408</span>, <span class="hljs-number">2</span>) (<span class="hljs-number">408</span>,)'}}),Pe=new M({props:{code:"",highlighted:`<span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np

preds = np.argmax(predictions.predictions, axis=-<span class="hljs-number">1</span>)`}}),ke=new M({props:{code:"",highlighted:`<span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_metric

metric = load_metric(<span class="hljs-string">&quot;glue&quot;</span>, <span class="hljs-string">&quot;mrpc&quot;</span>)
metric.compute(predictions=preds, references=predictions.label_ids)`}}),Te=new M({props:{code:"{'accuracy': 0.8578431372549019, 'f1': 0.8996539792387542}",highlighted:'{<span class="hljs-string">&#x27;accuracy&#x27;</span>: <span class="hljs-number">0.8578431372549019</span>, <span class="hljs-string">&#x27;f1&#x27;</span>: <span class="hljs-number">0.8996539792387542</span>}'}}),we=new M({props:{code:`def compute_metrics(eval_preds):
    metric = load_metric("glue", "mrpc")
    logits, labels = eval_preds
    predictions = np.argmax(logits, axis=-1)
    return metric.compute(predictions=predictions, references=labels)`,highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">compute_metrics</span>(<span class="hljs-params">eval_preds</span>):
    metric = load_metric(<span class="hljs-string">&quot;glue&quot;</span>, <span class="hljs-string">&quot;mrpc&quot;</span>)
    logits, labels = eval_preds
    predictions = np.argmax(logits, axis=-<span class="hljs-number">1</span>)
    <span class="hljs-keyword">return</span> metric.compute(predictions=predictions, references=labels)`}}),je=new M({props:{code:"",highlighted:`training_args = TrainingArguments(<span class="hljs-string">&quot;test-trainer&quot;</span>, evaluation_strategy=<span class="hljs-string">&quot;epoch&quot;</span>)
model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=<span class="hljs-number">2</span>)

trainer = Trainer(
    model,
    training_args,
    train_dataset=tokenized_datasets[<span class="hljs-string">&quot;train&quot;</span>],
    eval_dataset=tokenized_datasets[<span class="hljs-string">&quot;validation&quot;</span>],
    data_collator=data_collator,
    tokenizer=tokenizer,
    compute_metrics=compute_metrics,
)`}}),Ae=new M({props:{code:"trainer.train()",highlighted:'trainer.trai<span class="hljs-meta">n</span>()'}}),ce=new Ud({props:{$$slots:{default:[Jd]},$$scope:{ctx:pe}}}),{c(){f=o("meta"),N=p(),$(_.$$.fragment),z=p(),l=o("div"),m=o("h1"),E=o("a"),V=o("span"),$(x.$$.fragment),he=p(),Y=o("span"),Z=t("\u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0645\u062F\u0644\u200C\u0647\u0627 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 API "),b=o("code"),ye=t("Trainer"),Ne=p(),$(J.$$.fragment),Lr=p(),$(fe.$$.fragment),Br=p(),I=o("p"),Wr=t("\u062A\u0631\u0646\u0633\u0641\u0648\u0631\u0645\u0631\u0647\u0627\u06CC \u0647\u0627\u06AF\u06CC\u0646\u06AF\u200C\u0641\u0650\u06CC\u0633 \u06A9\u0644\u0627\u0633\u06CC \u0628\u0647 \u0646\u0627\u0645 "),kt=o("code"),Hr=t("Trainer"),Yr=t(" \u062F\u0627\u0631\u0646\u062F \u06A9\u0647 \u0628\u0631\u0627\u06CC \u06A9\u0645\u06A9 \u0628\u0647 \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0647\u0631 \u0645\u062F\u0644 \u0627\u0632 \u067E\u06CC\u0634 \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647\u200C\u0627\u06CC \u06A9\u0647 \u0631\u0648\u06CC \u062F\u0627\u062F\u0647 \u0634\u0645\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06CC\u200C\u062F\u0647\u062F \u0628\u0647 \u06A9\u0627\u0631 \u0645\u06CC\u200C\u0631\u0648\u062F. \u0628\u0647 \u0645\u062D\u0636 \u0627\u06CC\u0646\u06A9\u0647 \u0647\u0645\u0647 \u06A9\u0627\u0631\u0647\u0627\u06CC \u067E\u06CC\u0634\u200C\u067E\u0631\u062F\u0627\u0632\u0634 \u062F\u0627\u062F\u0647 \u062F\u0631 \u0628\u062E\u0634 \u0622\u062E\u0631 \u0631\u0627 \u0627\u0646\u062C\u0627\u0645 \u062F\u0627\u062F\u06CC\u062F\u060C \u0641\u0642\u0637 \u0686\u0646\u062F \u0645\u0631\u062D\u0644\u0647 \u0628\u0627\u0642\u06CC\u200C\u0645\u0627\u0646\u062F\u0647 \u062A\u0627 \u062A\u0639\u0631\u06CC\u0641 "),Tt=o("code"),Jr=t("Trainer"),Xr=t(" \u062F\u0627\u0631\u06CC\u062F. \u0633\u062E\u062A \u062A\u0631\u06CC\u0646 \u0642\u0633\u0645\u062A\u060C \u0627\u062D\u062A\u0645\u0627\u0644\u0627 \u0622\u0645\u0627\u062F\u0647\u200C\u0633\u0627\u0632\u06CC \u0645\u062D\u06CC\u0637 \u062C\u0647\u062A \u0627\u062C\u0631\u0627\u064A "),ze=o("span"),Ot=o("code"),Kr=t("Trainer.train()"),Qr=t(" \u0645\u06CC\u200C\u0628\u0627\u0634\u062F\u060C \u0686\u0631\u0627 \u06A9\u0647 \u0627\u06CC\u0646 \u062A\u0627\u0628\u0639 \u0631\u0648\u06CC CPU \u0628\u0633\u06CC\u0627\u0631 \u06A9\u0646\u062F \u0627\u062C\u0631\u0627 \u0645\u06CC\u200C\u0634\u0648\u062F. \u0627\u06AF\u0631 GPU \u0646\u062F\u0627\u0631\u06CC\u062F\u060C \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0627\u0632 GPU \u06CC\u0627 TPU\u0647\u0627\u06CC \u0645\u062C\u0627\u0646\u06CC \u0631\u0648\u06CC "),_e=o("a"),Zr=t("\u06AF\u0648\u06AF\u0644 \u06A9\u0648\u0644\u064E\u0628"),ea=t(" \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F."),ta=p(),bt=o("p"),ra=t("\u0646\u0645\u0648\u0646\u0647 \u06A9\u062F\u0647\u0627\u06CC \u0632\u06CC\u0631 \u0641\u0631\u0636 \u0645\u06CC\u200C\u06A9\u0646\u0646\u062F \u06A9\u0647 \u0634\u0645\u0627 \u0645\u062B\u0627\u0644\u200C\u0647\u0627\u06CC \u0628\u062E\u0634 \u0642\u0628\u0644 \u0631\u0627 \u0627\u0632 \u067E\u06CC\u0634 \u0627\u062C\u0631\u0627 \u06A9\u0631\u062F\u0647\u200C\u0627\u06CC\u062F. \u0627\u06CC\u0646 \u06CC\u06A9 \u062E\u0644\u0627\u0635\u0647 \u06A9\u0648\u062A\u0627\u0647 \u0627\u0633\u062A \u062C\u0647\u062A \u06CC\u0627\u062F\u0622\u0648\u0631\u06CC \u0622\u0646\u0686\u0647 \u0646\u06CC\u0627\u0632 \u062F\u0627\u0631\u06CC\u062F:"),aa=p(),xe=o("div"),$(ue.$$.fragment),oa=p(),Ie=o("h3"),sa=t("\u062A\u0639\u0644\u06CC\u0645"),na=p(),A=o("p"),la=t("\u0642\u0628\u0644 \u0627\u0632 \u0627\u06CC\u0646 \u06A9\u0647 \u0628\u062A\u0648\u0627\u0646\u06CC\u0645 "),wt=o("code"),da=t("Trainer"),ca=t(" \u0645\u0627\u0646 \u0631\u0627 \u062A\u0639\u0631\u06CC\u0641 \u06A9\u0646\u06CC\u0645 \u0627\u0648\u0644\u06CC\u0646 \u0645\u0631\u062D\u0644\u0647 \u062A\u0639\u0631\u06CC\u0641 \u06A9\u0644\u0627\u0633 "),jt=o("code"),ia=t("TrainingArguments"),pa=t(" \u0645\u06CC\u200C\u0628\u0627\u0634\u062F \u06A9\u0647 \u0634\u0627\u0645\u0644 \u0647\u0645\u0647 \u067E\u0627\u0631\u0627\u0645\u062A\u0631\u0647\u0627\u06CC \u0633\u0637\u062D \u0628\u0627\u0644\u0627\u06CC\u06CC \u0627\u0633\u062A \u06A9\u0647 "),At=o("code"),ha=t("Trainer"),fa=t(" \u0628\u0631\u0627\u06CC "),St=o("code"),_a=t("Training"),ua=t(" \u0648 "),qt=o("code"),ma=t("Evaluation"),Ea=t(" \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u062E\u0648\u0627\u0647\u062F \u06A9\u0631\u062F. \u062A\u0646\u0647\u0627 \u0622\u0631\u06AF\u0648\u0645\u0627\u0646\u06CC \u06A9\u0647 \u0634\u0645\u0627 \u0628\u0627\u06CC\u062F \u0627\u0631\u0627\u0626\u0647 \u06A9\u0646\u06CC\u062F \u0622\u062F\u0631\u0633\u06CC \u0627\u0633\u062A \u06A9\u0647 \u0645\u062F\u0644 \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u0646\u0642\u0627\u0637 \u062A\u0639\u0644\u06CC\u0645 \u062F\u0631 \u0622\u0646 \u0630\u062E\u06CC\u0631\u0647 \u062E\u0648\u0627\u0647\u0646\u062F \u0634\u062F. \u0628\u0642\u06CC\u0647 \u067E\u0627\u0631\u0627\u0645\u062A\u0631\u0647\u0627 \u0631\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0647 \u062D\u0627\u0644\u062A \u067E\u06CC\u0634\u200C\u0641\u0631\u0636 \u0631\u0647\u0627 \u06A9\u0646\u06CC\u062F\u060C \u06A9\u0647 \u0628\u0631\u0627\u06CC \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u067E\u0627\u06CC\u0647 \u0628\u0647 \u062E\u0648\u0628\u06CC \u06A9\u0627\u0631 \u062E\u0648\u0627\u0647\u062F \u06A9\u0631\u062F."),va=p(),Ue=o("div"),$(me.$$.fragment),ga=p(),$(ne.$$.fragment),$a=p(),ee=o("p"),Ca=t("\u0645\u0631\u062D\u0644\u0647 \u062F\u0648\u0645 \u062A\u0639\u0631\u06CC\u0641 \u0645\u062F\u0644\u200C\u0645\u0627\u0646 \u0645\u06CC\u200C\u0628\u0627\u0634\u062F. \u0645\u0627\u0646\u0646\u062F "),Ge=o("a"),Da=t("\u0641\u0635\u0644 \u0642\u0628\u0644"),Pa=t("\u060C \u0627\u0632 \u06A9\u0644\u0627\u0633 "),yt=o("code"),ka=t("AutoModelForSequenceClassification"),Ta=t(" \u0628\u0627 \u062F\u0648 \u0628\u0631\u0686\u0633\u0628 \u06A9\u0644\u0627\u0633 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u062E\u0648\u0627\u0647\u06CC\u0645 \u06A9\u0631\u062F:"),Oa=p(),Fe=o("div"),$(Ee.$$.fragment),ba=p(),ve=o("p"),wa=t("\u0634\u0645\u0627 \u0645\u062A\u0648\u062C\u0647 \u062E\u0648\u0627\u0647\u06CC\u062F \u0634\u062F \u06A9\u0647 \u0628\u0631\u062E\u0644\u0627\u0641 "),Me=o("a"),ja=t("\u0641\u0635\u0644 \u06F2"),Aa=t("\u060C \u0628\u0639\u062F \u0627\u0632 \u0633\u0627\u062E\u062A\u0646 \u0627\u06CC\u0646 \u0645\u062F\u0644 \u0627\u0632 \u067E\u06CC\u0634\u200C \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u06CC\u06A9 \u0647\u0634\u062F\u0627\u0631 \u062F\u0631\u06CC\u0627\u0641\u062A \u0645\u06CC\u200C\u06A9\u0646\u06CC\u062F. \u0627\u06CC\u0646 \u0628\u0647 \u0627\u06CC\u0646 \u062E\u0627\u0637\u0631 \u0627\u0633\u062A \u06A9\u0647 BERT \u0628\u0631\u0627\u06CC \u062F\u0633\u062A\u0647\u200C\u0628\u0646\u062F\u06CC \u062F\u0648 \u062C\u0645\u0644\u0647\u200C\u0647\u0627 \u0627\u0632 \u067E\u06CC\u0634\u200C \u062A\u0639\u0644\u06CC\u0645 \u0646\u062F\u06CC\u062F\u0647 \u0627\u0633\u062A\u060C \u0628\u0646\u0627\u0628\u0631\u0627\u06CC\u0646 \u0644\u0627\u06CC\u0647 \u0633\u064E\u0631 \u0645\u062F\u0644 \u0627\u0632 \u067E\u06CC\u0634\u200C \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u062D\u0630\u0641 \u0634\u062F\u0647 \u0648 \u06CC\u06A9 \u0644\u0627\u06CC\u0647 \u0633\u064E\u0631 \u0645\u0646\u0627\u0633\u0628 \u062C\u0647\u062A \u062F\u0633\u062A\u0647 \u0628\u0646\u062F\u06CC \u0631\u0634\u062A\u0647\u200C\u200C\u200C\u0647\u0627 \u0628\u0647 \u062C\u0627\u06CC \u0622\u0646 \u0642\u0631\u0627\u0631 \u06AF\u0631\u0641\u062A\u0647 \u0627\u0633\u062A. \u0647\u0634\u062F\u0627\u0631\u0647\u0627 \u0646\u0634\u0627\u0646 \u0645\u06CC\u200C\u062F\u0647\u0646\u062F \u06A9\u0647 \u0628\u0631\u062E\u06CC \u0627\u0632 \u0648\u0632\u0646\u200C\u0647\u0627\u06CC \u0645\u062F\u0644 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0646\u0634\u062F\u0647\u200C\u0627\u0646\u062F (\u0622\u0646\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0644\u0627\u06CC\u0647\u200C \u0633\u064E\u0631 \u062D\u0630\u0641 \u0634\u062F\u0647 \u0645\u062F\u0644 \u0627\u0632 \u067E\u06CC\u0634 \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u0647\u0633\u062A\u0646\u062F) \u0648 \u0628\u0631\u062E\u06CC \u062F\u06CC\u06AF\u0631 \u0628\u0647 \u0635\u0648\u0631\u062A \u062A\u0635\u0627\u062F\u0641\u06CC \u0645\u0642\u062F\u0627\u0631\u200C \u062F\u0647\u06CC \u0634\u062F\u0647\u200C\u200C\u0627\u0646\u062F (\u0622\u0646\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0644\u0627\u06CC\u0647\u200C \u0633\u064E\u0631 \u062C\u062F\u06CC\u062F \u0647\u0633\u062A\u0646\u062F). \u062F\u0631 \u0646\u062A\u06CC\u062C\u0647 \u0627\u06CC\u0646 \u0627\u0645\u0631 \u0634\u0645\u0627 \u0631\u0627 \u062A\u0634\u0648\u06CC\u0642 \u0628\u0647 \u062A\u0639\u0644\u06CC\u0645 \u0645\u062F\u0644 \u0645\u06CC\u200C\u06A9\u0646\u062F\u060C \u06A9\u0647 \u062F\u0642\u06CC\u0642\u0627 \u0647\u0645\u0627\u0646 \u06A9\u0627\u0631\u06CC \u0627\u0633\u062A \u06A9\u0647 \u0645\u06CC\u200C\u062E\u0648\u0627\u0647\u06CC\u0645 \u0627\u06A9\u0646\u0648\u0646 \u0627\u0646\u062C\u0627\u0645 \u062F\u0647\u06CC\u0645."),Sa=p(),v=o("p"),qa=t("\u0628\u0647 \u0645\u062D\u0636 \u0627\u06CC\u0646\u06A9\u0647 \u0645\u062F\u0644\u200C\u0645\u0627\u0646 \u0645\u0634\u062E\u0635 \u0634\u062F \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 "),Nt=o("code"),ya=t("Trainer"),Na=t(" \u0631\u0627 \u0628\u0627 \u0627\u0631\u0633\u0627\u0644 \u0647\u0645\u0647 \u0627\u0634\u06CC\u0627\u0626\u06CC \u06A9\u0647 \u062A\u0627 \u06A9\u0646\u0648\u0646 \u0633\u0627\u062E\u062A\u0647 \u0634\u062F\u0647\u200C\u0627\u0646\u062F - "),Ve=o("span"),zt=o("code"),za=t("model"),xa=t("\u060C "),Re=o("span"),xt=o("code"),Ia=t("training_args"),Ua=t("\u060C \u062F\u06CC\u062A\u0627\u0633\u0650\u062A\u200C\u0647\u0627\u06CC "),Le=o("span"),It=o("code"),Ga=t("training"),Fa=t(" \u0648 "),Be=o("span"),Ut=o("code"),Ma=t("validation"),Va=t("\u060C "),We=o("span"),Gt=o("code"),Ra=t("data_collator"),La=t(" \u0648 "),He=o("span"),Ft=o("code"),Ba=t("tokenizer"),Wa=t(" \u0628\u0647 \u062F\u0627\u062E\u0644 \u0622\u0646 \u062A\u0639\u0631\u06CC\u0641 \u06A9\u0646\u06CC\u0645:"),Ha=p(),Ye=o("div"),$(ge.$$.fragment),Ya=p(),S=o("p"),Ja=t("\u062A\u0648\u062C\u0647 \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u06CC\u062F \u0632\u0645\u0627\u0646\u06CC \u06A9\u0647 "),Mt=o("code"),Xa=t("tokenizer"),Ka=t(" \u0631\u0627 \u0627\u0631\u0633\u0627\u0644 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u062F\u060C \u0645\u062B\u0644 \u06A9\u0627\u0631\u06CC \u06A9\u0647 \u0645\u0627 \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627 \u0627\u0646\u062C\u0627\u0645 \u062F\u0627\u062F\u06CC\u0645\u060C "),Vt=o("code"),Qa=t("data_collator"),Za=t(" \u067E\u06CC\u0634\u200C\u0641\u0631\u0636 \u0645\u0648\u0631\u062F \u0627\u0633\u062A\u0641\u0627\u062F\u0647 "),Rt=o("code"),eo=t("Trainer"),to=t("\u060C \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06A9\u0647 \u0642\u0628\u0644\u0627 \u062A\u0639\u0631\u06CC\u0641 \u06A9\u0631\u062F\u06CC\u0645\u060C "),Lt=o("code"),ro=t("DataCollatorWithPadding"),ao=t(" \u062E\u0648\u0627\u0647\u062F \u0628\u0648\u062F\u060C \u062F\u0631 \u062A\u0646\u06CC\u062C\u0647 \u0634\u0645\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u062E\u0637 "),Bt=o("code"),oo=t("data_collator=data_collator"),so=t(" \u0631\u0627 \u062F\u0631 \u0627\u06CC\u0646 \u0641\u0631\u0627\u062E\u0648\u0627\u0646\u06CC \u0646\u0627\u062F\u06CC\u062F\u0647 \u0628\u06AF\u06CC\u0631\u06CC\u062F. \u0627\u06CC\u0646 \u0647\u0646\u0648\u0632 \u0645\u0647\u0645 \u0628\u0648\u062F \u06A9\u0647 \u0627\u06CC\u0646 \u0628\u062E\u0634 \u0627\u0632 \u067E\u0631\u062F\u0627\u0632\u0634 \u0631\u0627 \u062F\u0631 \u0628\u062E\u0634 \u06F2 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u062F\u0647\u06CC\u0645!"),no=p(),te=o("p"),lo=t("\u0628\u0631\u0627\u06CC \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0645\u062F\u0644 \u0631\u0648\u06CC \u062F\u06CC\u062A\u0627\u0633\u0650\u062A\u200C\u0645\u0627\u0646 \u0645\u0627 \u0641\u0642\u0637 \u0628\u0627\u06CC\u062F \u062A\u0627\u0628\u0639 "),Je=o("span"),Wt=o("code"),co=t("train()"),io=t(" \u0627\u0632 "),Ht=o("code"),po=t("Trainer"),ho=t("\u0645\u0627\u0646 \u0631\u0627 \u0635\u062F\u0627 \u0628\u0632\u0646\u06CC\u0645:"),fo=p(),Xe=o("div"),$($e.$$.fragment),_o=p(),Yt=o("p"),uo=t("\u0627\u06CC\u0646 \u06A9\u0627\u0631\u060C \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0631\u0627 \u0634\u0631\u0648\u0639 \u0645\u06CC\u200C\u06A9\u0646\u062F (\u06A9\u0647 \u0628\u0627\u06CC\u062F \u0686\u0646\u062F \u062F\u0642\u06CC\u0642\u0647 \u0631\u0648\u06CC GPU \u0637\u0648\u0644 \u0628\u06A9\u0634\u062F) \u0648 \u0647\u0632\u06CC\u0646\u0647 \u062A\u0639\u0644\u06CC\u0645 \u0631\u0627 \u0647\u0631 \u06F5\u06F0\u06F0 \u0645\u0631\u062D\u0644\u0647 \u06CC\u06A9\u200C\u0628\u0627\u0631 \u06AF\u0632\u0627\u0631\u0634 \u0645\u06CC\u200C\u06A9\u0646\u062F. \u0628\u0627 \u0627\u06CC\u0646 \u062D\u0627\u0644 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0645\u06CC\u200C\u06AF\u0648\u06CC\u062F \u06A9\u0647 \u0645\u062F\u0644\u200C\u062A\u0627\u0646 \u0686\u0642\u062F\u0631 \u062E\u0648\u0628 (\u06CC\u0627 \u0628\u062F) \u0639\u0645\u0644 \u0645\u06CC\u200C\u06A9\u0646\u062F. \u0627\u06CC\u0646 \u0628\u0647 \u0627\u06CC\u0646 \u062E\u0627\u0637\u0631 \u0627\u0633\u062A \u06A9\u0647:"),mo=p(),q=o("p"),Eo=t("\u06F1. \u0645\u0627 \u0628\u0647 "),Jt=o("code"),vo=t("Trainer"),go=t(" \u0646\u06AF\u0641\u062A\u06CC\u0645 \u06A9\u0647 \u062F\u0631 \u062D\u06CC\u0646 \u062A\u0639\u0644\u06CC\u0645 \u06A9\u06CC\u0641\u06CC\u062A \u0645\u062F\u0644 \u0631\u0627 \u0627\u0646\u062F\u0627\u0632\u0647\u200C\u06AF\u06CC\u0631\u06CC \u06A9\u0646\u062F. \u06A9\u0627\u0631\u06CC \u06A9\u0647 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u0633\u062A\u06CC\u0645 \u0628\u0627 \u0645\u0642\u062F\u0627\u0631\u062F\u0647\u06CC \u067E\u0627\u0631\u0627\u0645\u062A\u0631 "),Xt=o("code"),$o=t("evaluation_strategy"),Co=t(" \u0628\u0647 "),Kt=o("code"),Do=t('"steps"'),Po=t(" (\u0628\u0631\u0627\u06CC \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u062F\u0631 \u0647\u0631 "),Qt=o("code"),ko=t("eval_steps"),To=t(") \u06CC\u0627 \u0628\u0647 "),Zt=o("code"),Oo=t('"epoch"'),bo=t(" (\u0628\u0631\u0627\u06CC \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u062F\u0631 \u0627\u0646\u062A\u0647\u0627\u06CC \u0647\u0631 epoch) \u0627\u0646\u062C\u0627\u0645 \u062F\u0647\u06CC\u0645."),wo=p(),re=o("p"),jo=t("\u06F2. \u0645\u0627 \u062A\u0627\u0628\u0639 "),Ke=o("span"),er=o("code"),Ao=t("compute_metrics()"),So=t(" \u0631\u0627 \u0628\u0631\u0627\u06CC "),tr=o("code"),qo=t("Trainer"),yo=t(" \u0641\u0631\u0627\u0647\u0645 \u0646\u06A9\u0631\u062F\u06CC\u0645 \u062A\u0627 \u0628\u062A\u0648\u0627\u0646\u062F \u0645\u0639\u06CC\u0627\u0631\u0647\u0627 \u0631\u0627 \u062F\u0631 \u062D\u06CC\u0646 \u0627\u0635\u0637\u0644\u0627\u062D\u0627 \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u0645\u062D\u0627\u0633\u0628\u0647 \u06A9\u0646\u062F (\u06A9\u0647 \u062F\u0631 \u063A\u06CC\u0631 \u0627\u06CC\u0646 \u0635\u0648\u0631\u062A\u060C \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u0641\u0642\u0637 \u0647\u0632\u06CC\u0646\u0647 \u0631\u0627 \u0686\u0627\u067E \u0645\u06CC\u200C\u06A9\u0646\u062F \u06A9\u0647 \u0639\u062F\u062F \u0686\u0646\u062F\u0627\u0646 \u06AF\u0648\u06CC\u0627\u06CC\u06CC \u0647\u0645 \u0646\u06CC\u0633\u062A) ."),No=p(),Qe=o("h3"),zo=t("\u0627\u0631\u0632\u06CC\u0627\u0628\u06CC"),xo=p(),y=o("p"),Io=t("\u0627\u062C\u0627\u0632\u0647 \u062F\u0647\u06CC\u062F \u0628\u0628\u06CC\u0646\u06CC\u0645 \u0686\u06AF\u0648\u0646\u0647 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u062A\u0627\u0628\u0639 "),Ze=o("span"),rr=o("code"),Uo=t("compute_metrics()"),Go=t(" \u0645\u0641\u06CC\u062F\u06CC \u0628\u0633\u0627\u0632\u06CC\u0645 \u0648 \u062F\u0631 \u062A\u0639\u0644\u06CC\u0645 \u0628\u0639\u062F\u06CC \u0627\u0632 \u0622\u0646 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u0645. \u062A\u0627\u0628\u0639 \u0628\u0627\u06CC\u062F \u06CC\u06A9 \u0634\u06CC\u0621 "),ar=o("code"),Fo=t("EvalPrediction"),Mo=t(" \u062F\u0631\u06CC\u0627\u0641\u062A \u06A9\u0646\u062F (\u06A9\u0647 \u062A\u0627\u067E\u0644\u06CC \u0627\u0633\u062A \u0634\u0627\u0645\u0644 \u0641\u06CC\u0644\u062F\u0647\u0627\u06CC "),or=o("code"),Vo=t("predictions"),Ro=t(" \u0648 "),sr=o("code"),Lo=t("label_ids"),Bo=t(") \u0648 \u06CC\u06A9 \u062F\u06CC\u06A9\u0634\u0646\u0631\u06CC \u0628\u0627\u0632 \u06AF\u0631\u062F\u0627\u0646\u062F \u06A9\u0647 \u0631\u0634\u062A\u0647\u200C\u0647\u0627\u06CC \u0645\u062A\u0646\u06CC \u0631\u0627 \u0628\u0647 \u0627\u0639\u062F\u0627\u062F \u062D\u0642\u06CC\u0642\u06CC \u062A\u0628\u062F\u06CC\u0644 \u0645\u06CC\u200C\u06A9\u0646\u062F (\u0631\u0634\u062A\u0647\u200C\u0647\u0627\u06CC \u0645\u062A\u0646\u06CC \u0646\u0627\u0645 \u0645\u0639\u06CC\u0627\u0631\u0647\u0627\u06CC \u0628\u0627\u0632\u06AF\u0631\u062F\u0627\u0646\u062F\u0647 \u0634\u0648\u0646\u062F\u0647 \u0648 \u0627\u0639\u062F\u0627\u062F \u062D\u0642\u06CC\u0642\u06CC \u0645\u0642\u0627\u062F\u06CC\u0631 \u0622\u0646\u200C\u0647\u0627 \u0645\u06CC \u0628\u0627\u0634\u0646\u062F). \u0628\u0631\u0627\u06CC \u0627\u0633\u062A\u062E\u0631\u0627\u062C \u0686\u0646\u062F \u067E\u06CC\u0634\u200C\u0628\u06CC\u0646\u06CC\u200C \u0627\u0632 \u0645\u062F\u0644\u200C\u0645\u0627\u0646\u060C \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u0627\u0632 \u062F\u0633\u062A\u0648\u0631 "),et=o("span"),nr=o("code"),Wo=t("Trainer.predict()"),Ho=t(" \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u0645:"),Yo=p(),le=o("div"),$(Ce.$$.fragment),Jo=p(),$(De.$$.fragment),Xo=p(),u=o("p"),Ko=t("\u062E\u0631\u0648\u062C\u06CC \u062A\u0627\u0628\u0639 "),tt=o("span"),lr=o("code"),Qo=t("predict()"),Zo=t(" \u062A\u0627\u067E\u0644 \u0646\u0627\u0645 \u06AF\u0630\u0627\u0631\u06CC \u0634\u062F\u0647 \u062F\u06CC\u06AF\u0631\u06CC \u0634\u0627\u0645\u0644 \u0633\u0647 \u0641\u06CC\u0644\u062F: "),dr=o("code"),es=t("predictions"),ts=t("\u060C "),cr=o("code"),rs=t("label_ids"),as=t(" \u0648 "),ir=o("code"),os=t("metrics"),ss=t(" \u0645\u06CC\u200C\u0628\u0627\u0634\u062F. \u0641\u06CC\u0644\u062F "),pr=o("code"),ns=t("metrics"),ls=t(" \u0641\u0642\u0637 \u0634\u0627\u0645\u0644 \u0647\u0632\u06CC\u0646\u0647 \u062F\u0627\u062F\u0647 \u0639\u0628\u0648\u0631 \u06A9\u0631\u062F\u0647 \u0648 \u0628\u0631\u062E\u06CC \u0645\u0639\u06CC\u0627\u0631\u0647\u0627\u06CC \u0632\u0645\u0627\u0646 (\u067E\u06CC\u0634\u200C\u0628\u06CC\u0646\u06CC\u200C\u060C \u062F\u0631 \u0645\u062C\u0645\u0648\u0639 \u0648 \u0628\u0647 \u0637\u0648\u0631 \u0645\u06CC\u0627\u0646\u06AF\u06CC\u0646\u060C \u0686\u0642\u062F\u0631 \u0637\u0648\u0644 \u06A9\u0634\u06CC\u062F\u0647) \u0645\u06CC\u200C\u0628\u0627\u0634\u062F. \u0628\u0647 \u0645\u062D\u0636 \u0627\u06CC\u0646 \u06A9\u0647 \u062A\u0627\u0628\u0639 "),rt=o("span"),hr=o("code"),ds=t("compute_metrics()"),cs=t(" \u0631\u0627 \u06A9\u0627\u0645\u0644 \u06A9\u0631\u062F\u0647 \u0648 \u0622\u0646 \u0631\u0627 \u0628\u0647 "),fr=o("code"),is=t("Trainer"),ps=t(" \u0627\u0631\u0633\u0627\u0644 \u06A9\u0646\u06CC\u0645\u060C \u0622\u0646 \u0641\u06CC\u0644\u062F \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627\u06CC \u0628\u0627\u0632\u06AF\u0634\u062A\u06CC \u0627\u0632 "),at=o("span"),_r=o("code"),hs=t("compute_metrics()"),fs=t(" \u0631\u0627 \u0646\u06CC\u0632 \u062F\u0631 \u0628\u0631 \u062E\u0648\u0627\u0647\u062F \u062F\u0627\u0634\u062A."),_s=p(),U=o("p"),us=t("\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06A9\u0647 \u0645\u06CC\u200C\u0628\u06CC\u0646\u06CC\u062F\u060C "),ur=o("code"),ms=t("predictions"),Es=t(" \u0622\u0631\u0627\u06CC\u0647\u200C\u0627\u06CC \u062F\u0648 \u0628\u0639\u062F\u06CC \u0627\u0633\u062A \u0628\u0627 \u0634\u06A9\u0644 "),ot=o("span"),vs=t("\u06F4\u06F0\u06F8 x \u06F2"),gs=t(" (\u06A9\u0647 \u06F4\u06F0\u06F8 \u062A\u0639\u062F\u0627\u062F \u0639\u0646\u0627\u0635\u0631 \u062F\u0631 \u062F\u06CC\u062A\u0627\u0633\u0650\u062A \u0645\u0648\u0631\u062F \u0627\u0633\u062A\u0641\u0627\u062F\u0647\u200C \u0645\u0627 \u0645\u06CC\u200C\u0628\u0627\u0634\u062F). \u0627\u06CC\u0646 \u0647\u0627 logits \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0647\u0631\u06CC\u06A9 \u0627\u0632 \u0639\u0646\u0627\u0635\u0631 \u062F\u06CC\u062A\u0627\u0633\u0650\u062A\u06CC \u0647\u0633\u062A\u0646\u062F \u06A9\u0647 \u0645\u0627 \u0628\u0647 \u062A\u0627\u0628\u0639 "),st=o("span"),mr=o("code"),$s=t("predict()"),Cs=t(" \u0627\u0631\u0633\u0627\u0644 \u06A9\u0631\u062F\u06CC\u0645 (\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06A9\u0647 \u062F\u0631 "),nt=o("a"),Ds=t("\u0641\u0635\u0644 \u0642\u0628\u0644"),Ps=t(" \u062F\u06CC\u062F\u06CC\u062F\u060C \u0647\u0645\u0647 \u0645\u062F\u0644\u200C\u0647\u0627\u06CC \u062A\u0631\u064E\u0646\u0633\u0641\u0648\u0631\u0645\u0650\u0631 logits \u0631\u0627 \u0628\u0627\u0632 \u0645\u06CC\u200C\u06AF\u0631\u062F\u0627\u0646\u0646\u062F). \u0628\u0631\u0627\u06CC \u062A\u0628\u062F\u06CC\u0644 logits \u0628\u0647 \u067E\u06CC\u0634\u200C\u0628\u06CC\u0646\u06CC\u200C\u200C\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u0628\u062A\u0648\u0627\u0646\u06CC\u0645 \u0628\u0627 \u0628\u0631\u0686\u0633\u0628\u200C\u0647\u0627\u06CC\u0645\u0627\u0646 \u0645\u0642\u0627\u06CC\u0633\u0647 \u06A9\u0646\u06CC\u0645\u060C \u0646\u06CC\u0627\u0632 \u062F\u0627\u0631\u06CC\u0645 \u0627\u0646\u062F\u06CC\u0633 \u0645\u0642\u062F\u0627\u0631 \u0628\u06CC\u0634\u06CC\u0646\u0647 \u0631\u0648\u06CC \u0628\u0639\u062F \u062F\u0648\u0645 \u0631\u0627 \u0628\u0631\u062F\u0627\u0631\u06CC\u0645:"),ks=p(),lt=o("div"),$(Pe.$$.fragment),Ts=p(),G=o("p"),Os=t("\u0627\u06A9\u0646\u0648\u0646 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 "),Er=o("code"),bs=t("preds"),ws=t(" \u0631\u0627 \u0628\u0627 \u0628\u0631\u0686\u0633\u0628\u200C\u0647\u0627 \u0645\u0642\u0627\u06CC\u0633\u0647 \u06A9\u0646\u06CC\u0645. \u0628\u0631\u0627\u06CC \u0633\u0627\u062E\u062A\u0646 \u062A\u0627\u0628\u0639 "),dt=o("span"),vr=o("code"),js=t("compute_metric()"),As=t("\u060C \u0628\u0647 \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627\u06CC \u06A9\u062A\u0627\u0628\u062E\u0627\u0646\u0647 \u062F\u0627\u062F\u0647\u200C\u0647\u0627\u06CC \u0647\u0627\u06AF\u06CC\u0646\u06AF\u200C\u0641\u0650\u06CC\u0633 \u062A\u06A9\u06CC\u0647 \u062E\u0648\u0627\u0647\u06CC\u0645 \u06A9\u0631\u062F. \u0645\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627\u06CC \u0648\u0627\u0628\u0633\u062A\u0647 \u0628\u0647 \u062F\u06CC\u062A\u0627\u0633\u0650\u062A MRPC \u0631\u0627 \u0628\u0647 \u0631\u0627\u062D\u062A\u06CC \u062E\u0648\u062F \u062F\u06CC\u062A\u0627\u0633\u0650\u062A\u060C \u0627\u0645\u0627 \u0627\u06CC\u0646 \u0628\u0627\u0631 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u062A\u0627\u0628\u0639 "),ct=o("span"),gr=o("code"),Ss=t("load_metric()"),qs=t("\u060C \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u0645. \u0634\u06CC\u0621 \u0628\u0627\u0632\u06AF\u0631\u062F\u0627\u0646\u062F\u0647 \u0634\u062F\u0647 \u062A\u0627\u0628\u0639\u06CC \u0628\u0647 \u0646\u0627\u0645 "),it=o("span"),$r=o("code"),ys=t("compute()"),Ns=t(" \u062F\u0627\u0631\u062F \u06A9\u0647 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u0628\u0631\u0627\u06CC \u0645\u062D\u0627\u0633\u0628\u0647 \u0645\u062A\u0631\u06CC\u06A9 \u0627\u0632 \u0622\u0646 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u0645:"),zs=p(),de=o("div"),$(ke.$$.fragment),xs=p(),$(Te.$$.fragment),Is=p(),g=o("p"),Us=t("\u0627\u0632 \u0622\u0646\u062C\u0627\u06CC\u06CC \u06A9\u0647 \u0645\u0642\u062F\u0627\u0631\u062F\u0647\u06CC \u062A\u0635\u0627\u062F\u0641\u06CC \u0627\u0648\u0644\u06CC\u0647 \u0645\u062F\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u062F \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627\u06CC \u0646\u0647\u0627\u06CC\u06CC \u0631\u0627 \u062A\u063A\u06CC\u06CC\u0631 \u062F\u0647\u062F\u060C \u0646\u062A\u0627\u06CC\u062C \u062F\u0642\u06CC\u0642\u06CC \u06A9\u0647 \u0634\u0645\u0627 \u0628\u062F\u0633\u062A \u0645\u06CC\u200C\u0622\u0648\u0631\u06CC\u062F \u0645\u0645\u06A9\u0646 \u0627\u0633\u062A \u0645\u062A\u0641\u0627\u0648\u062A \u0628\u0627\u0634\u062F. \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u0628\u0628\u06CC\u0646\u06CC\u0645 \u06A9\u0647 \u0645\u062F\u0644 \u0645\u0627 "),Cr=o("code"),Gs=t("accuracy"),Fs=t(" \u0645\u0639\u0627\u062F\u0644 \u06F8\u06F5.\u06F7\u06F8\u066A \u0648 "),Dr=o("code"),Ms=t("F1 Score"),Vs=t(" \u0645\u0639\u0627\u062F\u0644 \u06F8\u06F9.\u06F9\u06F7\u066A \u0631\u0648\u06CC \u0645\u062C\u0645\u0648\u0639\u0647 "),Pr=o("code"),Rs=t("validation"),Ls=t(" \u0628\u062F\u0633\u062A \u0645\u06CC\u200C\u0622\u0648\u0631\u062F. \u0622\u0646\u0647\u0627 \u062F\u0648 \u0645\u062A\u0631\u06CC\u06A9 \u0628\u0631\u0627\u06CC \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u0646\u062A\u0627\u06CC\u062C \u0645\u062D\u06A9 GLUE \u0631\u0648\u06CC \u062F\u06CC\u062A\u0627\u0633\u0650\u062A MRPC \u0647\u0633\u062A\u0646\u062F. \u062C\u062F\u0648\u0644 \u0646\u062A\u0627\u06CC\u062C \u062F\u0631 \u0645\u0642\u0627\u0644\u0647 "),Oe=o("a"),Bs=t("BERT"),Ws=t("\u060C \u0628\u0631\u0627\u06CC \u0645\u062F\u0644 \u067E\u0627\u06CC\u0647\u060C  "),kr=o("code"),Hs=t("F1 Score"),Ys=t(" \u0645\u0639\u0627\u062F\u0644 \u06F8\u06F8.\u06F9 \u0631\u0627 \u06AF\u0632\u0627\u0631\u0634 \u0645\u06CC\u200C\u06A9\u0646\u062F. \u062A\u0648\u062C\u0647 \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u06CC\u062F \u06A9\u0647 \u0622\u0646 \u0645\u062F\u0644 "),Tr=o("code"),Js=t("uncased"),Xs=t(" \u0628\u0648\u062F\u060C \u062D\u0627\u0644 \u0622\u0646 \u06A9\u0647 \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627 \u0645\u0627 \u0627\u0632 \u0645\u062F\u0644 "),Or=o("code"),Ks=t("cased"),Qs=t(" \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u0645\u060C \u06A9\u0647 \u062F\u0633\u062A\u06CC\u0627\u0628\u06CC \u0628\u0647 \u0646\u062A\u0627\u06CC\u062C \u0628\u0647\u062A\u0631 \u0631\u0627 \u062A\u0648\u0636\u06CC\u062D \u0645\u06CC\u200C\u062F\u0647\u062F."),Zs=p(),be=o("p"),en=t("\u0627\u06A9\u0646\u0648\u0646 \u0628\u0627 \u0642\u0631\u0627\u0631 \u062F\u0627\u062F\u0646 \u0647\u0645\u0647 \u0686\u06CC\u0632 \u06A9\u0646\u0627\u0631\u0647\u0645 \u062A\u0627\u0628\u0639 "),pt=o("span"),br=o("code"),tn=t("compute_metrics()"),rn=t(" \u0631\u0627 \u0628\u062F\u0633\u062A \u062E\u0648\u0627\u0647\u06CC\u0645 \u0622\u0648\u0631\u062F:"),an=p(),ht=o("div"),$(we.$$.fragment),on=p(),ae=o("p"),sn=t("\u0648 \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627 \u0646\u0634\u0627\u0646 \u0645\u06CC\u200C\u062F\u0647\u06CC\u0645 \u06A9\u0647 \u0686\u06AF\u0648\u0646\u0647 \u06CC\u06A9 "),wr=o("code"),nn=t("Trainer"),ln=t(" \u062C\u062F\u06CC\u062F \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u062A\u0627\u0628\u0639 "),ft=o("span"),jr=o("code"),dn=t("compute_metrics()"),cn=t(" \u062A\u0639\u0631\u06CC\u0641 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u0645\u060C \u062A\u0627 \u0628\u062A\u0648\u0627\u0646\u06CC\u0645 \u0639\u0645\u0644\u06A9\u0631\u062F \u0622\u0646 \u0631\u0627 \u062F\u0631 \u062D\u06CC\u0646 \u06AF\u0632\u0627\u0631\u0634 \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627 \u062F\u0631 \u067E\u0627\u06CC\u0627\u0646 \u0647\u0631 epoch \u0645\u0634\u0627\u0647\u062F\u0647 \u06A9\u0646\u06CC\u0645:"),pn=p(),_t=o("div"),$(je.$$.fragment),hn=p(),H=o("p"),fn=t("\u062A\u0648\u062C\u0647 \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u06CC\u062F \u06A9\u0647 \u0645\u0627 \u0645\u062F\u0644\u06CC \u062C\u062F\u06CC\u062F \u0648 "),Ar=o("code"),_n=t("TrainingArguments"),un=t(" \u062C\u062F\u06CC\u062F\u06CC \u06A9\u0647 "),Sr=o("code"),mn=t("evaluation_strategy"),En=t(" \u0622\u0646 "),qr=o("code"),vn=t('"epoch"'),gn=t(" \u0627\u0633\u062A \u0645\u06CC\u200C\u0633\u0627\u0632\u06CC\u0645 - \u062F\u0631 \u063A\u06CC\u0631 \u0627\u06CC\u0646 \u0635\u0648\u0631\u062A \u0641\u0642\u0637 \u062A\u0639\u0644\u06CC\u0645 \u0645\u062F\u0644\u06CC \u06A9\u0647 \u0627\u0632 \u067E\u06CC\u0634 \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u0628\u0648\u062F \u0631\u0627 \u0627\u062F\u0627\u0645\u0647 \u0645\u06CC\u200C\u062F\u0627\u062F\u06CC\u0645. \u0628\u0631\u0627\u06CC \u0631\u0627\u0647\u200C\u0627\u0646\u062F\u0627\u0632\u06CC \u062F\u0648\u0631 \u062C\u062F\u06CC\u062F \u062A\u0639\u0644\u06CC\u0645\u060C \u062F\u0633\u062A\u0648\u0631 \u0632\u06CC\u0631 \u0631\u0627 \u0627\u062C\u0631\u0627 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u0645:"),$n=p(),ut=o("div"),$(Ae.$$.fragment),Cn=p(),Se=o("p"),Dn=t("\u0627\u06CC\u0646 \u0628\u0627\u0631 \u0647\u0632\u06CC\u0646\u0647 validation \u0648 \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627 \u0631\u0627 \u062F\u0631 \u067E\u0627\u06CC\u0627\u0646 \u0647\u0631 epoch \u0648 \u062F\u0631 \u0628\u0627\u0644\u0627\u06CC \u0647\u0632\u06CC\u0646\u0647 \u062A\u0639\u0644\u06CC\u0645 \u06AF\u0632\u0627\u0631\u0634 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u0645. \u062F\u0648\u0628\u0627\u0631\u0647\u060C \u0628\u0647 \u062E\u0627\u0637\u0631 \u0645\u0642\u062F\u0627\u0631 \u062F\u0647\u06CC \u062A\u0635\u0627\u062F\u0641\u06CC \u0627\u0648\u0644\u06CC\u0647 \u0644\u0627\u06CC\u0647 \u0633\u0631 \u0645\u062F\u0644\u060C \u0645\u0642\u0627\u062F\u06CC\u0631 \u062F\u0642\u06CC\u0642 "),mt=o("span"),Pn=t("accuracy/F1 score"),kn=t(" \u06A9\u0647 \u0634\u0645\u0627 \u0628\u062F\u0633\u062A \u0645\u06CC\u200C\u0622\u0648\u0631\u06CC\u062F \u0645\u0645\u06A9\u0646 \u0627\u0633\u062A \u06A9\u0645\u06CC \u0645\u062A\u0641\u0627\u0648\u062A \u0627\u0632 \u0622\u0646\u0686\u0647 \u0645\u0627 \u0628\u062F\u0633\u062A \u0622\u0648\u0631\u062F\u0647\u200C\u0627\u06CC\u0645 \u0628\u0627\u0634\u062F\u060C \u0627\u0645\u0627 \u0627\u06CC\u0646 \u0645\u0642\u0627\u062F\u06CC\u0631 \u0628\u0627\u06CC\u062F \u062F\u0631 \u0645\u062D\u062F\u0648\u062F\u0647 \u062A\u062E\u0645\u06CC\u0646\u06CC \u06CC\u06A9\u0633\u0627\u0646\u06CC \u0628\u0627\u0634\u0646\u062F."),Tn=p(),oe=o("p"),On=t("\u0628\u0647 \u0635\u0648\u0631\u062A \u067E\u06CC\u0634 \u0641\u0631\u0636\u060C "),yr=o("code"),bn=t("Trainer"),wn=t(" \u0631\u0648\u06CC \u0686\u0646\u062F\u06CC\u0646 GPU \u06CC\u0627 TPU \u06A9\u0627\u0631 \u062E\u0648\u0627\u0647\u062F \u06A9\u0631\u062F \u0648 \u06AF\u0632\u06CC\u0646\u0647\u200C\u0647\u0627\u06CC \u0641\u0631\u0627\u0648\u0627\u0646\u06CC\u060C \u0645\u062B\u0644 \u062A\u0639\u0644\u06CC\u0645 mixed-precision (\u0627\u0632 \u0645\u0642\u062F\u0627\u0631 "),Nr=o("code"),jn=t("fp16 = True"),An=t(" \u062F\u0631 \u0622\u0631\u06AF\u0648\u0645\u0627\u0646\u200C\u0647\u0627\u06CC \u062A\u0639\u0644\u06CC\u0645 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F) \u0641\u0631\u0627\u0647\u0645 \u0645\u06CC\u200C\u06A9\u0646\u062F. \u062F\u0631 \u0641\u0635\u0644 \u06F1\u06F0 \u0647\u0645\u0647 \u062D\u0627\u0644\u062A\u200C\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0645\u06CC\u200C\u06A9\u0646\u062F \u0631\u0627 \u0645\u0631\u0648\u0631 \u062E\u0648\u0627\u0647\u06CC\u0645 \u06A9\u0631\u062F."),Sn=p(),se=o("p"),qn=t("\u0627\u06CC\u0646 \u067E\u0627\u06CC\u0627\u0646 \u0645\u0642\u062F\u0645\u0647\u200C\u0627\u06CC \u0628\u0631 \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 "),zr=o("code"),yn=t("Trainer"),Nn=t(" API \u0645\u06CC\u200C\u0628\u0627\u0634\u062F. \u062F\u0631 "),Et=o("a"),zn=t("\u0641\u0635\u0644 \u06F7"),xn=t(" \u0645\u062B\u0627\u0644\u06CC \u0628\u0631\u0627\u06CC \u0646\u0634\u0627\u0646 \u062F\u0627\u062F\u0646 \u0686\u06AF\u0648\u0646\u06AF\u06CC \u0627\u0646\u062C\u0627\u0645 \u0627\u06CC\u0646 \u06A9\u0627\u0631 \u0628\u0631\u0627\u06CC \u0645\u0639\u0645\u0648\u0644\u200C\u062A\u0631\u06CC\u0646 \u0645\u0633\u0626\u0644\u0647\u200C\u0647\u0627\u06CC NLP \u0627\u0631\u0627\u0626\u0647 \u062E\u0648\u0627\u0647\u06CC\u0645 \u06A9\u0631\u062F\u060C \u0627\u0645\u0627 \u0627\u06A9\u0646\u0648\u0646 \u0627\u062C\u0627\u0632\u0647 \u062F\u0647\u06CC\u062F \u0628\u0628\u06CC\u0646\u06CC\u0645 \u0686\u06AF\u0648\u0646\u0647 \u0647\u0645\u06CC\u0646 \u06A9\u0627\u0631 \u0631\u0627 \u0635\u0631\u0641\u0627 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 PyTorch \u0627\u0646\u062C\u0627\u0645 \u062F\u0647\u06CC\u0645."),In=p(),$(ce.$$.fragment),this.h()},l(c){const F=Vd('[data-svelte="svelte-1phssyn"]',document.head);f=s(F,"META",{name:!0,content:!0}),F.forEach(a),N=h(c),C(_.$$.fragment,c),z=h(c),l=s(c,"DIV",{dir:!0});var d=n(l);m=s(d,"H1",{class:!0});var qe=n(m);E=s(qe,"A",{id:!0,class:!0,href:!0});var xr=n(E);V=s(xr,"SPAN",{});var Gn=n(V);C(x.$$.fragment,Gn),Gn.forEach(a),xr.forEach(a),he=h(qe),Y=s(qe,"SPAN",{});var Un=n(Y);Z=r(Un,"\u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0645\u062F\u0644\u200C\u0647\u0627 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 API "),b=s(Un,"CODE",{});var Fn=n(b);ye=r(Fn,"Trainer"),Fn.forEach(a),Un.forEach(a),qe.forEach(a),Ne=h(d),C(J.$$.fragment,d),Lr=h(d),C(fe.$$.fragment,d),Br=h(d),I=s(d,"P",{});var X=n(I);Wr=r(X,"\u062A\u0631\u0646\u0633\u0641\u0648\u0631\u0645\u0631\u0647\u0627\u06CC \u0647\u0627\u06AF\u06CC\u0646\u06AF\u200C\u0641\u0650\u06CC\u0633 \u06A9\u0644\u0627\u0633\u06CC \u0628\u0647 \u0646\u0627\u0645 "),kt=s(X,"CODE",{});var Mn=n(kt);Hr=r(Mn,"Trainer"),Mn.forEach(a),Yr=r(X," \u062F\u0627\u0631\u0646\u062F \u06A9\u0647 \u0628\u0631\u0627\u06CC \u06A9\u0645\u06A9 \u0628\u0647 \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0647\u0631 \u0645\u062F\u0644 \u0627\u0632 \u067E\u06CC\u0634 \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647\u200C\u0627\u06CC \u06A9\u0647 \u0631\u0648\u06CC \u062F\u0627\u062F\u0647 \u0634\u0645\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06CC\u200C\u062F\u0647\u062F \u0628\u0647 \u06A9\u0627\u0631 \u0645\u06CC\u200C\u0631\u0648\u062F. \u0628\u0647 \u0645\u062D\u0636 \u0627\u06CC\u0646\u06A9\u0647 \u0647\u0645\u0647 \u06A9\u0627\u0631\u0647\u0627\u06CC \u067E\u06CC\u0634\u200C\u067E\u0631\u062F\u0627\u0632\u0634 \u062F\u0627\u062F\u0647 \u062F\u0631 \u0628\u062E\u0634 \u0622\u062E\u0631 \u0631\u0627 \u0627\u0646\u062C\u0627\u0645 \u062F\u0627\u062F\u06CC\u062F\u060C \u0641\u0642\u0637 \u0686\u0646\u062F \u0645\u0631\u062D\u0644\u0647 \u0628\u0627\u0642\u06CC\u200C\u0645\u0627\u0646\u062F\u0647 \u062A\u0627 \u062A\u0639\u0631\u06CC\u0641 "),Tt=s(X,"CODE",{});var Vn=n(Tt);Jr=r(Vn,"Trainer"),Vn.forEach(a),Xr=r(X," \u062F\u0627\u0631\u06CC\u062F. \u0633\u062E\u062A \u062A\u0631\u06CC\u0646 \u0642\u0633\u0645\u062A\u060C \u0627\u062D\u062A\u0645\u0627\u0644\u0627 \u0622\u0645\u0627\u062F\u0647\u200C\u0633\u0627\u0632\u06CC \u0645\u062D\u06CC\u0637 \u062C\u0647\u062A \u0627\u062C\u0631\u0627\u064A "),ze=s(X,"SPAN",{dir:!0});var Rn=n(ze);Ot=s(Rn,"CODE",{});var Ln=n(Ot);Kr=r(Ln,"Trainer.train()"),Ln.forEach(a),Rn.forEach(a),Qr=r(X," \u0645\u06CC\u200C\u0628\u0627\u0634\u062F\u060C \u0686\u0631\u0627 \u06A9\u0647 \u0627\u06CC\u0646 \u062A\u0627\u0628\u0639 \u0631\u0648\u06CC CPU \u0628\u0633\u06CC\u0627\u0631 \u06A9\u0646\u062F \u0627\u062C\u0631\u0627 \u0645\u06CC\u200C\u0634\u0648\u062F. \u0627\u06AF\u0631 GPU \u0646\u062F\u0627\u0631\u06CC\u062F\u060C \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0627\u0632 GPU \u06CC\u0627 TPU\u0647\u0627\u06CC \u0645\u062C\u0627\u0646\u06CC \u0631\u0648\u06CC "),_e=s(X,"A",{href:!0,rel:!0});var Bn=n(_e);Zr=r(Bn,"\u06AF\u0648\u06AF\u0644 \u06A9\u0648\u0644\u064E\u0628"),Bn.forEach(a),ea=r(X," \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F."),X.forEach(a),ta=h(d),bt=s(d,"P",{});var Wn=n(bt);ra=r(Wn,"\u0646\u0645\u0648\u0646\u0647 \u06A9\u062F\u0647\u0627\u06CC \u0632\u06CC\u0631 \u0641\u0631\u0636 \u0645\u06CC\u200C\u06A9\u0646\u0646\u062F \u06A9\u0647 \u0634\u0645\u0627 \u0645\u062B\u0627\u0644\u200C\u0647\u0627\u06CC \u0628\u062E\u0634 \u0642\u0628\u0644 \u0631\u0627 \u0627\u0632 \u067E\u06CC\u0634 \u0627\u062C\u0631\u0627 \u06A9\u0631\u062F\u0647\u200C\u0627\u06CC\u062F. \u0627\u06CC\u0646 \u06CC\u06A9 \u062E\u0644\u0627\u0635\u0647 \u06A9\u0648\u062A\u0627\u0647 \u0627\u0633\u062A \u062C\u0647\u062A \u06CC\u0627\u062F\u0622\u0648\u0631\u06CC \u0622\u0646\u0686\u0647 \u0646\u06CC\u0627\u0632 \u062F\u0627\u0631\u06CC\u062F:"),Wn.forEach(a),aa=h(d),xe=s(d,"DIV",{dir:!0});var Hn=n(xe);C(ue.$$.fragment,Hn),Hn.forEach(a),oa=h(d),Ie=s(d,"H3",{id:!0});var Yn=n(Ie);sa=r(Yn,"\u062A\u0639\u0644\u06CC\u0645"),Yn.forEach(a),na=h(d),A=s(d,"P",{});var R=n(A);la=r(R,"\u0642\u0628\u0644 \u0627\u0632 \u0627\u06CC\u0646 \u06A9\u0647 \u0628\u062A\u0648\u0627\u0646\u06CC\u0645 "),wt=s(R,"CODE",{});var Jn=n(wt);da=r(Jn,"Trainer"),Jn.forEach(a),ca=r(R," \u0645\u0627\u0646 \u0631\u0627 \u062A\u0639\u0631\u06CC\u0641 \u06A9\u0646\u06CC\u0645 \u0627\u0648\u0644\u06CC\u0646 \u0645\u0631\u062D\u0644\u0647 \u062A\u0639\u0631\u06CC\u0641 \u06A9\u0644\u0627\u0633 "),jt=s(R,"CODE",{});var Xn=n(jt);ia=r(Xn,"TrainingArguments"),Xn.forEach(a),pa=r(R," \u0645\u06CC\u200C\u0628\u0627\u0634\u062F \u06A9\u0647 \u0634\u0627\u0645\u0644 \u0647\u0645\u0647 \u067E\u0627\u0631\u0627\u0645\u062A\u0631\u0647\u0627\u06CC \u0633\u0637\u062D \u0628\u0627\u0644\u0627\u06CC\u06CC \u0627\u0633\u062A \u06A9\u0647 "),At=s(R,"CODE",{});var Kn=n(At);ha=r(Kn,"Trainer"),Kn.forEach(a),fa=r(R," \u0628\u0631\u0627\u06CC "),St=s(R,"CODE",{});var Qn=n(St);_a=r(Qn,"Training"),Qn.forEach(a),ua=r(R," \u0648 "),qt=s(R,"CODE",{});var Zn=n(qt);ma=r(Zn,"Evaluation"),Zn.forEach(a),Ea=r(R," \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u062E\u0648\u0627\u0647\u062F \u06A9\u0631\u062F. \u062A\u0646\u0647\u0627 \u0622\u0631\u06AF\u0648\u0645\u0627\u0646\u06CC \u06A9\u0647 \u0634\u0645\u0627 \u0628\u0627\u06CC\u062F \u0627\u0631\u0627\u0626\u0647 \u06A9\u0646\u06CC\u062F \u0622\u062F\u0631\u0633\u06CC \u0627\u0633\u062A \u06A9\u0647 \u0645\u062F\u0644 \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u0646\u0642\u0627\u0637 \u062A\u0639\u0644\u06CC\u0645 \u062F\u0631 \u0622\u0646 \u0630\u062E\u06CC\u0631\u0647 \u062E\u0648\u0627\u0647\u0646\u062F \u0634\u062F. \u0628\u0642\u06CC\u0647 \u067E\u0627\u0631\u0627\u0645\u062A\u0631\u0647\u0627 \u0631\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u0628\u0647 \u062D\u0627\u0644\u062A \u067E\u06CC\u0634\u200C\u0641\u0631\u0636 \u0631\u0647\u0627 \u06A9\u0646\u06CC\u062F\u060C \u06A9\u0647 \u0628\u0631\u0627\u06CC \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u067E\u0627\u06CC\u0647 \u0628\u0647 \u062E\u0648\u0628\u06CC \u06A9\u0627\u0631 \u062E\u0648\u0627\u0647\u062F \u06A9\u0631\u062F."),R.forEach(a),va=h(d),Ue=s(d,"DIV",{dir:!0});var el=n(Ue);C(me.$$.fragment,el),el.forEach(a),ga=h(d),C(ne.$$.fragment,d),$a=h(d),ee=s(d,"P",{});var vt=n(ee);Ca=r(vt,"\u0645\u0631\u062D\u0644\u0647 \u062F\u0648\u0645 \u062A\u0639\u0631\u06CC\u0641 \u0645\u062F\u0644\u200C\u0645\u0627\u0646 \u0645\u06CC\u200C\u0628\u0627\u0634\u062F. \u0645\u0627\u0646\u0646\u062F "),Ge=s(vt,"A",{href:!0});var tl=n(Ge);Da=r(tl,"\u0641\u0635\u0644 \u0642\u0628\u0644"),tl.forEach(a),Pa=r(vt,"\u060C \u0627\u0632 \u06A9\u0644\u0627\u0633 "),yt=s(vt,"CODE",{});var rl=n(yt);ka=r(rl,"AutoModelForSequenceClassification"),rl.forEach(a),Ta=r(vt," \u0628\u0627 \u062F\u0648 \u0628\u0631\u0686\u0633\u0628 \u06A9\u0644\u0627\u0633 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u062E\u0648\u0627\u0647\u06CC\u0645 \u06A9\u0631\u062F:"),vt.forEach(a),Oa=h(d),Fe=s(d,"DIV",{dir:!0});var al=n(Fe);C(Ee.$$.fragment,al),al.forEach(a),ba=h(d),ve=s(d,"P",{});var Gr=n(ve);wa=r(Gr,"\u0634\u0645\u0627 \u0645\u062A\u0648\u062C\u0647 \u062E\u0648\u0627\u0647\u06CC\u062F \u0634\u062F \u06A9\u0647 \u0628\u0631\u062E\u0644\u0627\u0641 "),Me=s(Gr,"A",{href:!0});var ol=n(Me);ja=r(ol,"\u0641\u0635\u0644 \u06F2"),ol.forEach(a),Aa=r(Gr,"\u060C \u0628\u0639\u062F \u0627\u0632 \u0633\u0627\u062E\u062A\u0646 \u0627\u06CC\u0646 \u0645\u062F\u0644 \u0627\u0632 \u067E\u06CC\u0634\u200C \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u06CC\u06A9 \u0647\u0634\u062F\u0627\u0631 \u062F\u0631\u06CC\u0627\u0641\u062A \u0645\u06CC\u200C\u06A9\u0646\u06CC\u062F. \u0627\u06CC\u0646 \u0628\u0647 \u0627\u06CC\u0646 \u062E\u0627\u0637\u0631 \u0627\u0633\u062A \u06A9\u0647 BERT \u0628\u0631\u0627\u06CC \u062F\u0633\u062A\u0647\u200C\u0628\u0646\u062F\u06CC \u062F\u0648 \u062C\u0645\u0644\u0647\u200C\u0647\u0627 \u0627\u0632 \u067E\u06CC\u0634\u200C \u062A\u0639\u0644\u06CC\u0645 \u0646\u062F\u06CC\u062F\u0647 \u0627\u0633\u062A\u060C \u0628\u0646\u0627\u0628\u0631\u0627\u06CC\u0646 \u0644\u0627\u06CC\u0647 \u0633\u064E\u0631 \u0645\u062F\u0644 \u0627\u0632 \u067E\u06CC\u0634\u200C \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u062D\u0630\u0641 \u0634\u062F\u0647 \u0648 \u06CC\u06A9 \u0644\u0627\u06CC\u0647 \u0633\u064E\u0631 \u0645\u0646\u0627\u0633\u0628 \u062C\u0647\u062A \u062F\u0633\u062A\u0647 \u0628\u0646\u062F\u06CC \u0631\u0634\u062A\u0647\u200C\u200C\u200C\u0647\u0627 \u0628\u0647 \u062C\u0627\u06CC \u0622\u0646 \u0642\u0631\u0627\u0631 \u06AF\u0631\u0641\u062A\u0647 \u0627\u0633\u062A. \u0647\u0634\u062F\u0627\u0631\u0647\u0627 \u0646\u0634\u0627\u0646 \u0645\u06CC\u200C\u062F\u0647\u0646\u062F \u06A9\u0647 \u0628\u0631\u062E\u06CC \u0627\u0632 \u0648\u0632\u0646\u200C\u0647\u0627\u06CC \u0645\u062F\u0644 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0646\u0634\u062F\u0647\u200C\u0627\u0646\u062F (\u0622\u0646\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0644\u0627\u06CC\u0647\u200C \u0633\u064E\u0631 \u062D\u0630\u0641 \u0634\u062F\u0647 \u0645\u062F\u0644 \u0627\u0632 \u067E\u06CC\u0634 \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u0647\u0633\u062A\u0646\u062F) \u0648 \u0628\u0631\u062E\u06CC \u062F\u06CC\u06AF\u0631 \u0628\u0647 \u0635\u0648\u0631\u062A \u062A\u0635\u0627\u062F\u0641\u06CC \u0645\u0642\u062F\u0627\u0631\u200C \u062F\u0647\u06CC \u0634\u062F\u0647\u200C\u200C\u0627\u0646\u062F (\u0622\u0646\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0644\u0627\u06CC\u0647\u200C \u0633\u064E\u0631 \u062C\u062F\u06CC\u062F \u0647\u0633\u062A\u0646\u062F). \u062F\u0631 \u0646\u062A\u06CC\u062C\u0647 \u0627\u06CC\u0646 \u0627\u0645\u0631 \u0634\u0645\u0627 \u0631\u0627 \u062A\u0634\u0648\u06CC\u0642 \u0628\u0647 \u062A\u0639\u0644\u06CC\u0645 \u0645\u062F\u0644 \u0645\u06CC\u200C\u06A9\u0646\u062F\u060C \u06A9\u0647 \u062F\u0642\u06CC\u0642\u0627 \u0647\u0645\u0627\u0646 \u06A9\u0627\u0631\u06CC \u0627\u0633\u062A \u06A9\u0647 \u0645\u06CC\u200C\u062E\u0648\u0627\u0647\u06CC\u0645 \u0627\u06A9\u0646\u0648\u0646 \u0627\u0646\u062C\u0627\u0645 \u062F\u0647\u06CC\u0645."),Gr.forEach(a),Sa=h(d),v=s(d,"P",{});var w=n(v);qa=r(w,"\u0628\u0647 \u0645\u062D\u0636 \u0627\u06CC\u0646\u06A9\u0647 \u0645\u062F\u0644\u200C\u0645\u0627\u0646 \u0645\u0634\u062E\u0635 \u0634\u062F \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 "),Nt=s(w,"CODE",{});var sl=n(Nt);ya=r(sl,"Trainer"),sl.forEach(a),Na=r(w," \u0631\u0627 \u0628\u0627 \u0627\u0631\u0633\u0627\u0644 \u0647\u0645\u0647 \u0627\u0634\u06CC\u0627\u0626\u06CC \u06A9\u0647 \u062A\u0627 \u06A9\u0646\u0648\u0646 \u0633\u0627\u062E\u062A\u0647 \u0634\u062F\u0647\u200C\u0627\u0646\u062F - "),Ve=s(w,"SPAN",{dir:!0});var nl=n(Ve);zt=s(nl,"CODE",{});var ll=n(zt);za=r(ll,"model"),ll.forEach(a),nl.forEach(a),xa=r(w,"\u060C "),Re=s(w,"SPAN",{dir:!0});var dl=n(Re);xt=s(dl,"CODE",{});var cl=n(xt);Ia=r(cl,"training_args"),cl.forEach(a),dl.forEach(a),Ua=r(w,"\u060C \u062F\u06CC\u062A\u0627\u0633\u0650\u062A\u200C\u0647\u0627\u06CC "),Le=s(w,"SPAN",{dir:!0});var il=n(Le);It=s(il,"CODE",{});var pl=n(It);Ga=r(pl,"training"),pl.forEach(a),il.forEach(a),Fa=r(w," \u0648 "),Be=s(w,"SPAN",{dir:!0});var hl=n(Be);Ut=s(hl,"CODE",{});var fl=n(Ut);Ma=r(fl,"validation"),fl.forEach(a),hl.forEach(a),Va=r(w,"\u060C "),We=s(w,"SPAN",{dir:!0});var _l=n(We);Gt=s(_l,"CODE",{});var ul=n(Gt);Ra=r(ul,"data_collator"),ul.forEach(a),_l.forEach(a),La=r(w," \u0648 "),He=s(w,"SPAN",{dir:!0});var ml=n(He);Ft=s(ml,"CODE",{});var El=n(Ft);Ba=r(El,"tokenizer"),El.forEach(a),ml.forEach(a),Wa=r(w," \u0628\u0647 \u062F\u0627\u062E\u0644 \u0622\u0646 \u062A\u0639\u0631\u06CC\u0641 \u06A9\u0646\u06CC\u0645:"),w.forEach(a),Ha=h(d),Ye=s(d,"DIV",{dir:!0});var vl=n(Ye);C(ge.$$.fragment,vl),vl.forEach(a),Ya=h(d),S=s(d,"P",{});var L=n(S);Ja=r(L,"\u062A\u0648\u062C\u0647 \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u06CC\u062F \u0632\u0645\u0627\u0646\u06CC \u06A9\u0647 "),Mt=s(L,"CODE",{});var gl=n(Mt);Xa=r(gl,"tokenizer"),gl.forEach(a),Ka=r(L," \u0631\u0627 \u0627\u0631\u0633\u0627\u0644 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u062F\u060C \u0645\u062B\u0644 \u06A9\u0627\u0631\u06CC \u06A9\u0647 \u0645\u0627 \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627 \u0627\u0646\u062C\u0627\u0645 \u062F\u0627\u062F\u06CC\u0645\u060C "),Vt=s(L,"CODE",{});var $l=n(Vt);Qa=r($l,"data_collator"),$l.forEach(a),Za=r(L," \u067E\u06CC\u0634\u200C\u0641\u0631\u0636 \u0645\u0648\u0631\u062F \u0627\u0633\u062A\u0641\u0627\u062F\u0647 "),Rt=s(L,"CODE",{});var Cl=n(Rt);eo=r(Cl,"Trainer"),Cl.forEach(a),to=r(L,"\u060C \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06A9\u0647 \u0642\u0628\u0644\u0627 \u062A\u0639\u0631\u06CC\u0641 \u06A9\u0631\u062F\u06CC\u0645\u060C "),Lt=s(L,"CODE",{});var Dl=n(Lt);ro=r(Dl,"DataCollatorWithPadding"),Dl.forEach(a),ao=r(L," \u062E\u0648\u0627\u0647\u062F \u0628\u0648\u062F\u060C \u062F\u0631 \u062A\u0646\u06CC\u062C\u0647 \u0634\u0645\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u062F \u062E\u0637 "),Bt=s(L,"CODE",{});var Pl=n(Bt);oo=r(Pl,"data_collator=data_collator"),Pl.forEach(a),so=r(L," \u0631\u0627 \u062F\u0631 \u0627\u06CC\u0646 \u0641\u0631\u0627\u062E\u0648\u0627\u0646\u06CC \u0646\u0627\u062F\u06CC\u062F\u0647 \u0628\u06AF\u06CC\u0631\u06CC\u062F. \u0627\u06CC\u0646 \u0647\u0646\u0648\u0632 \u0645\u0647\u0645 \u0628\u0648\u062F \u06A9\u0647 \u0627\u06CC\u0646 \u0628\u062E\u0634 \u0627\u0632 \u067E\u0631\u062F\u0627\u0632\u0634 \u0631\u0627 \u062F\u0631 \u0628\u062E\u0634 \u06F2 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u062F\u0647\u06CC\u0645!"),L.forEach(a),no=h(d),te=s(d,"P",{});var gt=n(te);lo=r(gt,"\u0628\u0631\u0627\u06CC \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0645\u062F\u0644 \u0631\u0648\u06CC \u062F\u06CC\u062A\u0627\u0633\u0650\u062A\u200C\u0645\u0627\u0646 \u0645\u0627 \u0641\u0642\u0637 \u0628\u0627\u06CC\u062F \u062A\u0627\u0628\u0639 "),Je=s(gt,"SPAN",{dir:!0});var kl=n(Je);Wt=s(kl,"CODE",{});var Tl=n(Wt);co=r(Tl,"train()"),Tl.forEach(a),kl.forEach(a),io=r(gt," \u0627\u0632 "),Ht=s(gt,"CODE",{});var Ol=n(Ht);po=r(Ol,"Trainer"),Ol.forEach(a),ho=r(gt,"\u0645\u0627\u0646 \u0631\u0627 \u0635\u062F\u0627 \u0628\u0632\u0646\u06CC\u0645:"),gt.forEach(a),fo=h(d),Xe=s(d,"DIV",{dir:!0});var bl=n(Xe);C($e.$$.fragment,bl),bl.forEach(a),_o=h(d),Yt=s(d,"P",{});var wl=n(Yt);uo=r(wl,"\u0627\u06CC\u0646 \u06A9\u0627\u0631\u060C \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0631\u0627 \u0634\u0631\u0648\u0639 \u0645\u06CC\u200C\u06A9\u0646\u062F (\u06A9\u0647 \u0628\u0627\u06CC\u062F \u0686\u0646\u062F \u062F\u0642\u06CC\u0642\u0647 \u0631\u0648\u06CC GPU \u0637\u0648\u0644 \u0628\u06A9\u0634\u062F) \u0648 \u0647\u0632\u06CC\u0646\u0647 \u062A\u0639\u0644\u06CC\u0645 \u0631\u0627 \u0647\u0631 \u06F5\u06F0\u06F0 \u0645\u0631\u062D\u0644\u0647 \u06CC\u06A9\u200C\u0628\u0627\u0631 \u06AF\u0632\u0627\u0631\u0634 \u0645\u06CC\u200C\u06A9\u0646\u062F. \u0628\u0627 \u0627\u06CC\u0646 \u062D\u0627\u0644 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0645\u06CC\u200C\u06AF\u0648\u06CC\u062F \u06A9\u0647 \u0645\u062F\u0644\u200C\u062A\u0627\u0646 \u0686\u0642\u062F\u0631 \u062E\u0648\u0628 (\u06CC\u0627 \u0628\u062F) \u0639\u0645\u0644 \u0645\u06CC\u200C\u06A9\u0646\u062F. \u0627\u06CC\u0646 \u0628\u0647 \u0627\u06CC\u0646 \u062E\u0627\u0637\u0631 \u0627\u0633\u062A \u06A9\u0647:"),wl.forEach(a),mo=h(d),q=s(d,"P",{});var B=n(q);Eo=r(B,"\u06F1. \u0645\u0627 \u0628\u0647 "),Jt=s(B,"CODE",{});var jl=n(Jt);vo=r(jl,"Trainer"),jl.forEach(a),go=r(B," \u0646\u06AF\u0641\u062A\u06CC\u0645 \u06A9\u0647 \u062F\u0631 \u062D\u06CC\u0646 \u062A\u0639\u0644\u06CC\u0645 \u06A9\u06CC\u0641\u06CC\u062A \u0645\u062F\u0644 \u0631\u0627 \u0627\u0646\u062F\u0627\u0632\u0647\u200C\u06AF\u06CC\u0631\u06CC \u06A9\u0646\u062F. \u06A9\u0627\u0631\u06CC \u06A9\u0647 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u0633\u062A\u06CC\u0645 \u0628\u0627 \u0645\u0642\u062F\u0627\u0631\u062F\u0647\u06CC \u067E\u0627\u0631\u0627\u0645\u062A\u0631 "),Xt=s(B,"CODE",{});var Al=n(Xt);$o=r(Al,"evaluation_strategy"),Al.forEach(a),Co=r(B," \u0628\u0647 "),Kt=s(B,"CODE",{});var Sl=n(Kt);Do=r(Sl,'"steps"'),Sl.forEach(a),Po=r(B," (\u0628\u0631\u0627\u06CC \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u062F\u0631 \u0647\u0631 "),Qt=s(B,"CODE",{});var ql=n(Qt);ko=r(ql,"eval_steps"),ql.forEach(a),To=r(B,") \u06CC\u0627 \u0628\u0647 "),Zt=s(B,"CODE",{});var yl=n(Zt);Oo=r(yl,'"epoch"'),yl.forEach(a),bo=r(B," (\u0628\u0631\u0627\u06CC \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u062F\u0631 \u0627\u0646\u062A\u0647\u0627\u06CC \u0647\u0631 epoch) \u0627\u0646\u062C\u0627\u0645 \u062F\u0647\u06CC\u0645."),B.forEach(a),wo=h(d),re=s(d,"P",{});var $t=n(re);jo=r($t,"\u06F2. \u0645\u0627 \u062A\u0627\u0628\u0639 "),Ke=s($t,"SPAN",{dir:!0});var Nl=n(Ke);er=s(Nl,"CODE",{});var zl=n(er);Ao=r(zl,"compute_metrics()"),zl.forEach(a),Nl.forEach(a),So=r($t," \u0631\u0627 \u0628\u0631\u0627\u06CC "),tr=s($t,"CODE",{});var xl=n(tr);qo=r(xl,"Trainer"),xl.forEach(a),yo=r($t," \u0641\u0631\u0627\u0647\u0645 \u0646\u06A9\u0631\u062F\u06CC\u0645 \u062A\u0627 \u0628\u062A\u0648\u0627\u0646\u062F \u0645\u0639\u06CC\u0627\u0631\u0647\u0627 \u0631\u0627 \u062F\u0631 \u062D\u06CC\u0646 \u0627\u0635\u0637\u0644\u0627\u062D\u0627 \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u0645\u062D\u0627\u0633\u0628\u0647 \u06A9\u0646\u062F (\u06A9\u0647 \u062F\u0631 \u063A\u06CC\u0631 \u0627\u06CC\u0646 \u0635\u0648\u0631\u062A\u060C \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u0641\u0642\u0637 \u0647\u0632\u06CC\u0646\u0647 \u0631\u0627 \u0686\u0627\u067E \u0645\u06CC\u200C\u06A9\u0646\u062F \u06A9\u0647 \u0639\u062F\u062F \u0686\u0646\u062F\u0627\u0646 \u06AF\u0648\u06CC\u0627\u06CC\u06CC \u0647\u0645 \u0646\u06CC\u0633\u062A) ."),$t.forEach(a),No=h(d),Qe=s(d,"H3",{id:!0});var Il=n(Qe);zo=r(Il,"\u0627\u0631\u0632\u06CC\u0627\u0628\u06CC"),Il.forEach(a),xo=h(d),y=s(d,"P",{});var W=n(y);Io=r(W,"\u0627\u062C\u0627\u0632\u0647 \u062F\u0647\u06CC\u062F \u0628\u0628\u06CC\u0646\u06CC\u0645 \u0686\u06AF\u0648\u0646\u0647 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u062A\u0627\u0628\u0639 "),Ze=s(W,"SPAN",{dir:!0});var Ul=n(Ze);rr=s(Ul,"CODE",{});var Gl=n(rr);Uo=r(Gl,"compute_metrics()"),Gl.forEach(a),Ul.forEach(a),Go=r(W," \u0645\u0641\u06CC\u062F\u06CC \u0628\u0633\u0627\u0632\u06CC\u0645 \u0648 \u062F\u0631 \u062A\u0639\u0644\u06CC\u0645 \u0628\u0639\u062F\u06CC \u0627\u0632 \u0622\u0646 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u0645. \u062A\u0627\u0628\u0639 \u0628\u0627\u06CC\u062F \u06CC\u06A9 \u0634\u06CC\u0621 "),ar=s(W,"CODE",{});var Fl=n(ar);Fo=r(Fl,"EvalPrediction"),Fl.forEach(a),Mo=r(W," \u062F\u0631\u06CC\u0627\u0641\u062A \u06A9\u0646\u062F (\u06A9\u0647 \u062A\u0627\u067E\u0644\u06CC \u0627\u0633\u062A \u0634\u0627\u0645\u0644 \u0641\u06CC\u0644\u062F\u0647\u0627\u06CC "),or=s(W,"CODE",{});var Ml=n(or);Vo=r(Ml,"predictions"),Ml.forEach(a),Ro=r(W," \u0648 "),sr=s(W,"CODE",{});var Vl=n(sr);Lo=r(Vl,"label_ids"),Vl.forEach(a),Bo=r(W,") \u0648 \u06CC\u06A9 \u062F\u06CC\u06A9\u0634\u0646\u0631\u06CC \u0628\u0627\u0632 \u06AF\u0631\u062F\u0627\u0646\u062F \u06A9\u0647 \u0631\u0634\u062A\u0647\u200C\u0647\u0627\u06CC \u0645\u062A\u0646\u06CC \u0631\u0627 \u0628\u0647 \u0627\u0639\u062F\u0627\u062F \u062D\u0642\u06CC\u0642\u06CC \u062A\u0628\u062F\u06CC\u0644 \u0645\u06CC\u200C\u06A9\u0646\u062F (\u0631\u0634\u062A\u0647\u200C\u0647\u0627\u06CC \u0645\u062A\u0646\u06CC \u0646\u0627\u0645 \u0645\u0639\u06CC\u0627\u0631\u0647\u0627\u06CC \u0628\u0627\u0632\u06AF\u0631\u062F\u0627\u0646\u062F\u0647 \u0634\u0648\u0646\u062F\u0647 \u0648 \u0627\u0639\u062F\u0627\u062F \u062D\u0642\u06CC\u0642\u06CC \u0645\u0642\u0627\u062F\u06CC\u0631 \u0622\u0646\u200C\u0647\u0627 \u0645\u06CC \u0628\u0627\u0634\u0646\u062F). \u0628\u0631\u0627\u06CC \u0627\u0633\u062A\u062E\u0631\u0627\u062C \u0686\u0646\u062F \u067E\u06CC\u0634\u200C\u0628\u06CC\u0646\u06CC\u200C \u0627\u0632 \u0645\u062F\u0644\u200C\u0645\u0627\u0646\u060C \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u0627\u0632 \u062F\u0633\u062A\u0648\u0631 "),et=s(W,"SPAN",{dir:!0});var Rl=n(et);nr=s(Rl,"CODE",{});var Ll=n(nr);Wo=r(Ll,"Trainer.predict()"),Ll.forEach(a),Rl.forEach(a),Ho=r(W," \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u0645:"),W.forEach(a),Yo=h(d),le=s(d,"DIV",{dir:!0});var Fr=n(le);C(Ce.$$.fragment,Fr),Jo=h(Fr),C(De.$$.fragment,Fr),Fr.forEach(a),Xo=h(d),u=s(d,"P",{});var O=n(u);Ko=r(O,"\u062E\u0631\u0648\u062C\u06CC \u062A\u0627\u0628\u0639 "),tt=s(O,"SPAN",{dir:!0});var Bl=n(tt);lr=s(Bl,"CODE",{});var Wl=n(lr);Qo=r(Wl,"predict()"),Wl.forEach(a),Bl.forEach(a),Zo=r(O," \u062A\u0627\u067E\u0644 \u0646\u0627\u0645 \u06AF\u0630\u0627\u0631\u06CC \u0634\u062F\u0647 \u062F\u06CC\u06AF\u0631\u06CC \u0634\u0627\u0645\u0644 \u0633\u0647 \u0641\u06CC\u0644\u062F: "),dr=s(O,"CODE",{});var Hl=n(dr);es=r(Hl,"predictions"),Hl.forEach(a),ts=r(O,"\u060C "),cr=s(O,"CODE",{});var Yl=n(cr);rs=r(Yl,"label_ids"),Yl.forEach(a),as=r(O," \u0648 "),ir=s(O,"CODE",{});var Jl=n(ir);os=r(Jl,"metrics"),Jl.forEach(a),ss=r(O," \u0645\u06CC\u200C\u0628\u0627\u0634\u062F. \u0641\u06CC\u0644\u062F "),pr=s(O,"CODE",{});var Xl=n(pr);ns=r(Xl,"metrics"),Xl.forEach(a),ls=r(O," \u0641\u0642\u0637 \u0634\u0627\u0645\u0644 \u0647\u0632\u06CC\u0646\u0647 \u062F\u0627\u062F\u0647 \u0639\u0628\u0648\u0631 \u06A9\u0631\u062F\u0647 \u0648 \u0628\u0631\u062E\u06CC \u0645\u0639\u06CC\u0627\u0631\u0647\u0627\u06CC \u0632\u0645\u0627\u0646 (\u067E\u06CC\u0634\u200C\u0628\u06CC\u0646\u06CC\u200C\u060C \u062F\u0631 \u0645\u062C\u0645\u0648\u0639 \u0648 \u0628\u0647 \u0637\u0648\u0631 \u0645\u06CC\u0627\u0646\u06AF\u06CC\u0646\u060C \u0686\u0642\u062F\u0631 \u0637\u0648\u0644 \u06A9\u0634\u06CC\u062F\u0647) \u0645\u06CC\u200C\u0628\u0627\u0634\u062F. \u0628\u0647 \u0645\u062D\u0636 \u0627\u06CC\u0646 \u06A9\u0647 \u062A\u0627\u0628\u0639 "),rt=s(O,"SPAN",{dir:!0});var Kl=n(rt);hr=s(Kl,"CODE",{});var Ql=n(hr);ds=r(Ql,"compute_metrics()"),Ql.forEach(a),Kl.forEach(a),cs=r(O," \u0631\u0627 \u06A9\u0627\u0645\u0644 \u06A9\u0631\u062F\u0647 \u0648 \u0622\u0646 \u0631\u0627 \u0628\u0647 "),fr=s(O,"CODE",{});var Zl=n(fr);is=r(Zl,"Trainer"),Zl.forEach(a),ps=r(O," \u0627\u0631\u0633\u0627\u0644 \u06A9\u0646\u06CC\u0645\u060C \u0622\u0646 \u0641\u06CC\u0644\u062F \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627\u06CC \u0628\u0627\u0632\u06AF\u0634\u062A\u06CC \u0627\u0632 "),at=s(O,"SPAN",{dir:!0});var ed=n(at);_r=s(ed,"CODE",{});var td=n(_r);hs=r(td,"compute_metrics()"),td.forEach(a),ed.forEach(a),fs=r(O," \u0631\u0627 \u0646\u06CC\u0632 \u062F\u0631 \u0628\u0631 \u062E\u0648\u0627\u0647\u062F \u062F\u0627\u0634\u062A."),O.forEach(a),_s=h(d),U=s(d,"P",{});var K=n(U);us=r(K,"\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06A9\u0647 \u0645\u06CC\u200C\u0628\u06CC\u0646\u06CC\u062F\u060C "),ur=s(K,"CODE",{});var rd=n(ur);ms=r(rd,"predictions"),rd.forEach(a),Es=r(K," \u0622\u0631\u0627\u06CC\u0647\u200C\u0627\u06CC \u062F\u0648 \u0628\u0639\u062F\u06CC \u0627\u0633\u062A \u0628\u0627 \u0634\u06A9\u0644 "),ot=s(K,"SPAN",{dir:!0});var ad=n(ot);vs=r(ad,"\u06F4\u06F0\u06F8 x \u06F2"),ad.forEach(a),gs=r(K," (\u06A9\u0647 \u06F4\u06F0\u06F8 \u062A\u0639\u062F\u0627\u062F \u0639\u0646\u0627\u0635\u0631 \u062F\u0631 \u062F\u06CC\u062A\u0627\u0633\u0650\u062A \u0645\u0648\u0631\u062F \u0627\u0633\u062A\u0641\u0627\u062F\u0647\u200C \u0645\u0627 \u0645\u06CC\u200C\u0628\u0627\u0634\u062F). \u0627\u06CC\u0646 \u0647\u0627 logits \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0647\u0631\u06CC\u06A9 \u0627\u0632 \u0639\u0646\u0627\u0635\u0631 \u062F\u06CC\u062A\u0627\u0633\u0650\u062A\u06CC \u0647\u0633\u062A\u0646\u062F \u06A9\u0647 \u0645\u0627 \u0628\u0647 \u062A\u0627\u0628\u0639 "),st=s(K,"SPAN",{dir:!0});var od=n(st);mr=s(od,"CODE",{});var sd=n(mr);$s=r(sd,"predict()"),sd.forEach(a),od.forEach(a),Cs=r(K," \u0627\u0631\u0633\u0627\u0644 \u06A9\u0631\u062F\u06CC\u0645 (\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06A9\u0647 \u062F\u0631 "),nt=s(K,"A",{href:!0});var nd=n(nt);Ds=r(nd,"\u0641\u0635\u0644 \u0642\u0628\u0644"),nd.forEach(a),Ps=r(K," \u062F\u06CC\u062F\u06CC\u062F\u060C \u0647\u0645\u0647 \u0645\u062F\u0644\u200C\u0647\u0627\u06CC \u062A\u0631\u064E\u0646\u0633\u0641\u0648\u0631\u0645\u0650\u0631 logits \u0631\u0627 \u0628\u0627\u0632 \u0645\u06CC\u200C\u06AF\u0631\u062F\u0627\u0646\u0646\u062F). \u0628\u0631\u0627\u06CC \u062A\u0628\u062F\u06CC\u0644 logits \u0628\u0647 \u067E\u06CC\u0634\u200C\u0628\u06CC\u0646\u06CC\u200C\u200C\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u0628\u062A\u0648\u0627\u0646\u06CC\u0645 \u0628\u0627 \u0628\u0631\u0686\u0633\u0628\u200C\u0647\u0627\u06CC\u0645\u0627\u0646 \u0645\u0642\u0627\u06CC\u0633\u0647 \u06A9\u0646\u06CC\u0645\u060C \u0646\u06CC\u0627\u0632 \u062F\u0627\u0631\u06CC\u0645 \u0627\u0646\u062F\u06CC\u0633 \u0645\u0642\u062F\u0627\u0631 \u0628\u06CC\u0634\u06CC\u0646\u0647 \u0631\u0648\u06CC \u0628\u0639\u062F \u062F\u0648\u0645 \u0631\u0627 \u0628\u0631\u062F\u0627\u0631\u06CC\u0645:"),K.forEach(a),ks=h(d),lt=s(d,"DIV",{dir:!0});var ld=n(lt);C(Pe.$$.fragment,ld),ld.forEach(a),Ts=h(d),G=s(d,"P",{});var Q=n(G);Os=r(Q,"\u0627\u06A9\u0646\u0648\u0646 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 "),Er=s(Q,"CODE",{});var dd=n(Er);bs=r(dd,"preds"),dd.forEach(a),ws=r(Q," \u0631\u0627 \u0628\u0627 \u0628\u0631\u0686\u0633\u0628\u200C\u0647\u0627 \u0645\u0642\u0627\u06CC\u0633\u0647 \u06A9\u0646\u06CC\u0645. \u0628\u0631\u0627\u06CC \u0633\u0627\u062E\u062A\u0646 \u062A\u0627\u0628\u0639 "),dt=s(Q,"SPAN",{dir:!0});var cd=n(dt);vr=s(cd,"CODE",{});var id=n(vr);js=r(id,"compute_metric()"),id.forEach(a),cd.forEach(a),As=r(Q,"\u060C \u0628\u0647 \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627\u06CC \u06A9\u062A\u0627\u0628\u062E\u0627\u0646\u0647 \u062F\u0627\u062F\u0647\u200C\u0647\u0627\u06CC \u0647\u0627\u06AF\u06CC\u0646\u06AF\u200C\u0641\u0650\u06CC\u0633 \u062A\u06A9\u06CC\u0647 \u062E\u0648\u0627\u0647\u06CC\u0645 \u06A9\u0631\u062F. \u0645\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627\u06CC \u0648\u0627\u0628\u0633\u062A\u0647 \u0628\u0647 \u062F\u06CC\u062A\u0627\u0633\u0650\u062A MRPC \u0631\u0627 \u0628\u0647 \u0631\u0627\u062D\u062A\u06CC \u062E\u0648\u062F \u062F\u06CC\u062A\u0627\u0633\u0650\u062A\u060C \u0627\u0645\u0627 \u0627\u06CC\u0646 \u0628\u0627\u0631 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u062A\u0627\u0628\u0639 "),ct=s(Q,"SPAN",{dir:!0});var pd=n(ct);gr=s(pd,"CODE",{});var hd=n(gr);Ss=r(hd,"load_metric()"),hd.forEach(a),pd.forEach(a),qs=r(Q,"\u060C \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u06A9\u0646\u06CC\u0645. \u0634\u06CC\u0621 \u0628\u0627\u0632\u06AF\u0631\u062F\u0627\u0646\u062F\u0647 \u0634\u062F\u0647 \u062A\u0627\u0628\u0639\u06CC \u0628\u0647 \u0646\u0627\u0645 "),it=s(Q,"SPAN",{dir:!0});var fd=n(it);$r=s(fd,"CODE",{});var _d=n($r);ys=r(_d,"compute()"),_d.forEach(a),fd.forEach(a),Ns=r(Q," \u062F\u0627\u0631\u062F \u06A9\u0647 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u0628\u0631\u0627\u06CC \u0645\u062D\u0627\u0633\u0628\u0647 \u0645\u062A\u0631\u06CC\u06A9 \u0627\u0632 \u0622\u0646 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u0645:"),Q.forEach(a),zs=h(d),de=s(d,"DIV",{dir:!0});var Mr=n(de);C(ke.$$.fragment,Mr),xs=h(Mr),C(Te.$$.fragment,Mr),Mr.forEach(a),Is=h(d),g=s(d,"P",{});var j=n(g);Us=r(j,"\u0627\u0632 \u0622\u0646\u062C\u0627\u06CC\u06CC \u06A9\u0647 \u0645\u0642\u062F\u0627\u0631\u062F\u0647\u06CC \u062A\u0635\u0627\u062F\u0641\u06CC \u0627\u0648\u0644\u06CC\u0647 \u0645\u062F\u0644 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u062F \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627\u06CC \u0646\u0647\u0627\u06CC\u06CC \u0631\u0627 \u062A\u063A\u06CC\u06CC\u0631 \u062F\u0647\u062F\u060C \u0646\u062A\u0627\u06CC\u062C \u062F\u0642\u06CC\u0642\u06CC \u06A9\u0647 \u0634\u0645\u0627 \u0628\u062F\u0633\u062A \u0645\u06CC\u200C\u0622\u0648\u0631\u06CC\u062F \u0645\u0645\u06A9\u0646 \u0627\u0633\u062A \u0645\u062A\u0641\u0627\u0648\u062A \u0628\u0627\u0634\u062F. \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627 \u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u06CC\u0645 \u0628\u0628\u06CC\u0646\u06CC\u0645 \u06A9\u0647 \u0645\u062F\u0644 \u0645\u0627 "),Cr=s(j,"CODE",{});var ud=n(Cr);Gs=r(ud,"accuracy"),ud.forEach(a),Fs=r(j," \u0645\u0639\u0627\u062F\u0644 \u06F8\u06F5.\u06F7\u06F8\u066A \u0648 "),Dr=s(j,"CODE",{});var md=n(Dr);Ms=r(md,"F1 Score"),md.forEach(a),Vs=r(j," \u0645\u0639\u0627\u062F\u0644 \u06F8\u06F9.\u06F9\u06F7\u066A \u0631\u0648\u06CC \u0645\u062C\u0645\u0648\u0639\u0647 "),Pr=s(j,"CODE",{});var Ed=n(Pr);Rs=r(Ed,"validation"),Ed.forEach(a),Ls=r(j," \u0628\u062F\u0633\u062A \u0645\u06CC\u200C\u0622\u0648\u0631\u062F. \u0622\u0646\u0647\u0627 \u062F\u0648 \u0645\u062A\u0631\u06CC\u06A9 \u0628\u0631\u0627\u06CC \u0627\u0631\u0632\u06CC\u0627\u0628\u06CC \u0646\u062A\u0627\u06CC\u062C \u0645\u062D\u06A9 GLUE \u0631\u0648\u06CC \u062F\u06CC\u062A\u0627\u0633\u0650\u062A MRPC \u0647\u0633\u062A\u0646\u062F. \u062C\u062F\u0648\u0644 \u0646\u062A\u0627\u06CC\u062C \u062F\u0631 \u0645\u0642\u0627\u0644\u0647 "),Oe=s(j,"A",{href:!0,rel:!0});var vd=n(Oe);Bs=r(vd,"BERT"),vd.forEach(a),Ws=r(j,"\u060C \u0628\u0631\u0627\u06CC \u0645\u062F\u0644 \u067E\u0627\u06CC\u0647\u060C  "),kr=s(j,"CODE",{});var gd=n(kr);Hs=r(gd,"F1 Score"),gd.forEach(a),Ys=r(j," \u0645\u0639\u0627\u062F\u0644 \u06F8\u06F8.\u06F9 \u0631\u0627 \u06AF\u0632\u0627\u0631\u0634 \u0645\u06CC\u200C\u06A9\u0646\u062F. \u062A\u0648\u062C\u0647 \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u06CC\u062F \u06A9\u0647 \u0622\u0646 \u0645\u062F\u0644 "),Tr=s(j,"CODE",{});var $d=n(Tr);Js=r($d,"uncased"),$d.forEach(a),Xs=r(j," \u0628\u0648\u062F\u060C \u062D\u0627\u0644 \u0622\u0646 \u06A9\u0647 \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627 \u0645\u0627 \u0627\u0632 \u0645\u062F\u0644 "),Or=s(j,"CODE",{});var Cd=n(Or);Ks=r(Cd,"cased"),Cd.forEach(a),Qs=r(j," \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u0645\u060C \u06A9\u0647 \u062F\u0633\u062A\u06CC\u0627\u0628\u06CC \u0628\u0647 \u0646\u062A\u0627\u06CC\u062C \u0628\u0647\u062A\u0631 \u0631\u0627 \u062A\u0648\u0636\u06CC\u062D \u0645\u06CC\u200C\u062F\u0647\u062F."),j.forEach(a),Zs=h(d),be=s(d,"P",{});var Vr=n(be);en=r(Vr,"\u0627\u06A9\u0646\u0648\u0646 \u0628\u0627 \u0642\u0631\u0627\u0631 \u062F\u0627\u062F\u0646 \u0647\u0645\u0647 \u0686\u06CC\u0632 \u06A9\u0646\u0627\u0631\u0647\u0645 \u062A\u0627\u0628\u0639 "),pt=s(Vr,"SPAN",{dir:!0});var Dd=n(pt);br=s(Dd,"CODE",{});var Pd=n(br);tn=r(Pd,"compute_metrics()"),Pd.forEach(a),Dd.forEach(a),rn=r(Vr," \u0631\u0627 \u0628\u062F\u0633\u062A \u062E\u0648\u0627\u0647\u06CC\u0645 \u0622\u0648\u0631\u062F:"),Vr.forEach(a),an=h(d),ht=s(d,"DIV",{dir:!0});var kd=n(ht);C(we.$$.fragment,kd),kd.forEach(a),on=h(d),ae=s(d,"P",{});var Ct=n(ae);sn=r(Ct,"\u0648 \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627 \u0646\u0634\u0627\u0646 \u0645\u06CC\u200C\u062F\u0647\u06CC\u0645 \u06A9\u0647 \u0686\u06AF\u0648\u0646\u0647 \u06CC\u06A9 "),wr=s(Ct,"CODE",{});var Td=n(wr);nn=r(Td,"Trainer"),Td.forEach(a),ln=r(Ct," \u062C\u062F\u06CC\u062F \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u062A\u0627\u0628\u0639 "),ft=s(Ct,"SPAN",{dir:!0});var Od=n(ft);jr=s(Od,"CODE",{});var bd=n(jr);dn=r(bd,"compute_metrics()"),bd.forEach(a),Od.forEach(a),cn=r(Ct," \u062A\u0639\u0631\u06CC\u0641 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u0645\u060C \u062A\u0627 \u0628\u062A\u0648\u0627\u0646\u06CC\u0645 \u0639\u0645\u0644\u06A9\u0631\u062F \u0622\u0646 \u0631\u0627 \u062F\u0631 \u062D\u06CC\u0646 \u06AF\u0632\u0627\u0631\u0634 \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627 \u062F\u0631 \u067E\u0627\u06CC\u0627\u0646 \u0647\u0631 epoch \u0645\u0634\u0627\u0647\u062F\u0647 \u06A9\u0646\u06CC\u0645:"),Ct.forEach(a),pn=h(d),_t=s(d,"DIV",{dir:!0});var wd=n(_t);C(je.$$.fragment,wd),wd.forEach(a),hn=h(d),H=s(d,"P",{});var ie=n(H);fn=r(ie,"\u062A\u0648\u062C\u0647 \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u06CC\u062F \u06A9\u0647 \u0645\u0627 \u0645\u062F\u0644\u06CC \u062C\u062F\u06CC\u062F \u0648 "),Ar=s(ie,"CODE",{});var jd=n(Ar);_n=r(jd,"TrainingArguments"),jd.forEach(a),un=r(ie," \u062C\u062F\u06CC\u062F\u06CC \u06A9\u0647 "),Sr=s(ie,"CODE",{});var Ad=n(Sr);mn=r(Ad,"evaluation_strategy"),Ad.forEach(a),En=r(ie," \u0622\u0646 "),qr=s(ie,"CODE",{});var Sd=n(qr);vn=r(Sd,'"epoch"'),Sd.forEach(a),gn=r(ie," \u0627\u0633\u062A \u0645\u06CC\u200C\u0633\u0627\u0632\u06CC\u0645 - \u062F\u0631 \u063A\u06CC\u0631 \u0627\u06CC\u0646 \u0635\u0648\u0631\u062A \u0641\u0642\u0637 \u062A\u0639\u0644\u06CC\u0645 \u0645\u062F\u0644\u06CC \u06A9\u0647 \u0627\u0632 \u067E\u06CC\u0634 \u062A\u0639\u0644\u06CC\u0645 \u062F\u06CC\u062F\u0647 \u0628\u0648\u062F \u0631\u0627 \u0627\u062F\u0627\u0645\u0647 \u0645\u06CC\u200C\u062F\u0627\u062F\u06CC\u0645. \u0628\u0631\u0627\u06CC \u0631\u0627\u0647\u200C\u0627\u0646\u062F\u0627\u0632\u06CC \u062F\u0648\u0631 \u062C\u062F\u06CC\u062F \u062A\u0639\u0644\u06CC\u0645\u060C \u062F\u0633\u062A\u0648\u0631 \u0632\u06CC\u0631 \u0631\u0627 \u0627\u062C\u0631\u0627 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u0645:"),ie.forEach(a),$n=h(d),ut=s(d,"DIV",{dir:!0});var qd=n(ut);C(Ae.$$.fragment,qd),qd.forEach(a),Cn=h(d),Se=s(d,"P",{});var Rr=n(Se);Dn=r(Rr,"\u0627\u06CC\u0646 \u0628\u0627\u0631 \u0647\u0632\u06CC\u0646\u0647 validation \u0648 \u0645\u062A\u0631\u06CC\u06A9\u200C\u0647\u0627 \u0631\u0627 \u062F\u0631 \u067E\u0627\u06CC\u0627\u0646 \u0647\u0631 epoch \u0648 \u062F\u0631 \u0628\u0627\u0644\u0627\u06CC \u0647\u0632\u06CC\u0646\u0647 \u062A\u0639\u0644\u06CC\u0645 \u06AF\u0632\u0627\u0631\u0634 \u0645\u06CC\u200C\u06A9\u0646\u06CC\u0645. \u062F\u0648\u0628\u0627\u0631\u0647\u060C \u0628\u0647 \u062E\u0627\u0637\u0631 \u0645\u0642\u062F\u0627\u0631 \u062F\u0647\u06CC \u062A\u0635\u0627\u062F\u0641\u06CC \u0627\u0648\u0644\u06CC\u0647 \u0644\u0627\u06CC\u0647 \u0633\u0631 \u0645\u062F\u0644\u060C \u0645\u0642\u0627\u062F\u06CC\u0631 \u062F\u0642\u06CC\u0642 "),mt=s(Rr,"SPAN",{dir:!0});var yd=n(mt);Pn=r(yd,"accuracy/F1 score"),yd.forEach(a),kn=r(Rr," \u06A9\u0647 \u0634\u0645\u0627 \u0628\u062F\u0633\u062A \u0645\u06CC\u200C\u0622\u0648\u0631\u06CC\u062F \u0645\u0645\u06A9\u0646 \u0627\u0633\u062A \u06A9\u0645\u06CC \u0645\u062A\u0641\u0627\u0648\u062A \u0627\u0632 \u0622\u0646\u0686\u0647 \u0645\u0627 \u0628\u062F\u0633\u062A \u0622\u0648\u0631\u062F\u0647\u200C\u0627\u06CC\u0645 \u0628\u0627\u0634\u062F\u060C \u0627\u0645\u0627 \u0627\u06CC\u0646 \u0645\u0642\u0627\u062F\u06CC\u0631 \u0628\u0627\u06CC\u062F \u062F\u0631 \u0645\u062D\u062F\u0648\u062F\u0647 \u062A\u062E\u0645\u06CC\u0646\u06CC \u06CC\u06A9\u0633\u0627\u0646\u06CC \u0628\u0627\u0634\u0646\u062F."),Rr.forEach(a),Tn=h(d),oe=s(d,"P",{});var Dt=n(oe);On=r(Dt,"\u0628\u0647 \u0635\u0648\u0631\u062A \u067E\u06CC\u0634 \u0641\u0631\u0636\u060C "),yr=s(Dt,"CODE",{});var Nd=n(yr);bn=r(Nd,"Trainer"),Nd.forEach(a),wn=r(Dt," \u0631\u0648\u06CC \u0686\u0646\u062F\u06CC\u0646 GPU \u06CC\u0627 TPU \u06A9\u0627\u0631 \u062E\u0648\u0627\u0647\u062F \u06A9\u0631\u062F \u0648 \u06AF\u0632\u06CC\u0646\u0647\u200C\u0647\u0627\u06CC \u0641\u0631\u0627\u0648\u0627\u0646\u06CC\u060C \u0645\u062B\u0644 \u062A\u0639\u0644\u06CC\u0645 mixed-precision (\u0627\u0632 \u0645\u0642\u062F\u0627\u0631 "),Nr=s(Dt,"CODE",{});var zd=n(Nr);jn=r(zd,"fp16 = True"),zd.forEach(a),An=r(Dt," \u062F\u0631 \u0622\u0631\u06AF\u0648\u0645\u0627\u0646\u200C\u0647\u0627\u06CC \u062A\u0639\u0644\u06CC\u0645 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F) \u0641\u0631\u0627\u0647\u0645 \u0645\u06CC\u200C\u06A9\u0646\u062F. \u062F\u0631 \u0641\u0635\u0644 \u06F1\u06F0 \u0647\u0645\u0647 \u062D\u0627\u0644\u062A\u200C\u0647\u0627\u06CC\u06CC \u06A9\u0647 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0645\u06CC\u200C\u06A9\u0646\u062F \u0631\u0627 \u0645\u0631\u0648\u0631 \u062E\u0648\u0627\u0647\u06CC\u0645 \u06A9\u0631\u062F."),Dt.forEach(a),Sn=h(d),se=s(d,"P",{});var Pt=n(se);qn=r(Pt,"\u0627\u06CC\u0646 \u067E\u0627\u06CC\u0627\u0646 \u0645\u0642\u062F\u0645\u0647\u200C\u0627\u06CC \u0628\u0631 \u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 "),zr=s(Pt,"CODE",{});var xd=n(zr);yn=r(xd,"Trainer"),xd.forEach(a),Nn=r(Pt," API \u0645\u06CC\u200C\u0628\u0627\u0634\u062F. \u062F\u0631 "),Et=s(Pt,"A",{href:!0});var Id=n(Et);zn=r(Id,"\u0641\u0635\u0644 \u06F7"),Id.forEach(a),xn=r(Pt," \u0645\u062B\u0627\u0644\u06CC \u0628\u0631\u0627\u06CC \u0646\u0634\u0627\u0646 \u062F\u0627\u062F\u0646 \u0686\u06AF\u0648\u0646\u06AF\u06CC \u0627\u0646\u062C\u0627\u0645 \u0627\u06CC\u0646 \u06A9\u0627\u0631 \u0628\u0631\u0627\u06CC \u0645\u0639\u0645\u0648\u0644\u200C\u062A\u0631\u06CC\u0646 \u0645\u0633\u0626\u0644\u0647\u200C\u0647\u0627\u06CC NLP \u0627\u0631\u0627\u0626\u0647 \u062E\u0648\u0627\u0647\u06CC\u0645 \u06A9\u0631\u062F\u060C \u0627\u0645\u0627 \u0627\u06A9\u0646\u0648\u0646 \u0627\u062C\u0627\u0632\u0647 \u062F\u0647\u06CC\u062F \u0628\u0628\u06CC\u0646\u06CC\u0645 \u0686\u06AF\u0648\u0646\u0647 \u0647\u0645\u06CC\u0646 \u06A9\u0627\u0631 \u0631\u0627 \u0635\u0631\u0641\u0627 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 PyTorch \u0627\u0646\u062C\u0627\u0645 \u062F\u0647\u06CC\u0645."),Pt.forEach(a),In=h(d),C(ce.$$.fragment,d),d.forEach(a),this.h()},h(){i(f,"name","hf:doc:metadata"),i(f,"content",JSON.stringify(Kd)),i(E,"id","api-trainer"),i(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"),i(E,"href","#api-trainer"),i(m,"class","relative group"),i(ze,"dir","ltr"),i(_e,"href","https://colab.research.google.com/"),i(_e,"rel","nofollow"),i(xe,"dir","ltr"),i(Ie,"id",""),i(Ue,"dir","ltr"),i(Ge,"href","/course/chapter2"),i(Fe,"dir","ltr"),i(Me,"href","/course/chapter2"),i(Ve,"dir","ltr"),i(Re,"dir","ltr"),i(Le,"dir","ltr"),i(Be,"dir","ltr"),i(We,"dir","ltr"),i(He,"dir","ltr"),i(Ye,"dir","ltr"),i(Je,"dir","ltr"),i(Xe,"dir","ltr"),i(Ke,"dir","ltr"),i(Qe,"id",""),i(Ze,"dir","ltr"),i(et,"dir","ltr"),i(le,"dir","ltr"),i(tt,"dir","ltr"),i(rt,"dir","ltr"),i(at,"dir","ltr"),i(ot,"dir","ltr"),i(st,"dir","ltr"),i(nt,"href","/course/chapter2"),i(lt,"dir","ltr"),i(dt,"dir","ltr"),i(ct,"dir","ltr"),i(it,"dir","ltr"),i(de,"dir","ltr"),i(Oe,"href","https://arxiv.org/pdf/1810.04805.pdf"),i(Oe,"rel","nofollow"),i(pt,"dir","ltr"),i(ht,"dir","ltr"),i(ft,"dir","ltr"),i(_t,"dir","ltr"),i(ut,"dir","ltr"),i(mt,"dir","ltr"),i(Et,"href","/course/chapter7"),i(l,"dir","rtl")},m(c,F){e(document.head,f),Ir(c,N,F),D(_,c,F),Ir(c,z,F),Ir(c,l,F),e(l,m),e(m,E),e(E,V),D(x,V,null),e(m,he),e(m,Y),e(Y,Z),e(Y,b),e(b,ye),e(l,Ne),D(J,l,null),e(l,Lr),D(fe,l,null),e(l,Br),e(l,I),e(I,Wr),e(I,kt),e(kt,Hr),e(I,Yr),e(I,Tt),e(Tt,Jr),e(I,Xr),e(I,ze),e(ze,Ot),e(Ot,Kr),e(I,Qr),e(I,_e),e(_e,Zr),e(I,ea),e(l,ta),e(l,bt),e(bt,ra),e(l,aa),e(l,xe),D(ue,xe,null),e(l,oa),e(l,Ie),e(Ie,sa),e(l,na),e(l,A),e(A,la),e(A,wt),e(wt,da),e(A,ca),e(A,jt),e(jt,ia),e(A,pa),e(A,At),e(At,ha),e(A,fa),e(A,St),e(St,_a),e(A,ua),e(A,qt),e(qt,ma),e(A,Ea),e(l,va),e(l,Ue),D(me,Ue,null),e(l,ga),D(ne,l,null),e(l,$a),e(l,ee),e(ee,Ca),e(ee,Ge),e(Ge,Da),e(ee,Pa),e(ee,yt),e(yt,ka),e(ee,Ta),e(l,Oa),e(l,Fe),D(Ee,Fe,null),e(l,ba),e(l,ve),e(ve,wa),e(ve,Me),e(Me,ja),e(ve,Aa),e(l,Sa),e(l,v),e(v,qa),e(v,Nt),e(Nt,ya),e(v,Na),e(v,Ve),e(Ve,zt),e(zt,za),e(v,xa),e(v,Re),e(Re,xt),e(xt,Ia),e(v,Ua),e(v,Le),e(Le,It),e(It,Ga),e(v,Fa),e(v,Be),e(Be,Ut),e(Ut,Ma),e(v,Va),e(v,We),e(We,Gt),e(Gt,Ra),e(v,La),e(v,He),e(He,Ft),e(Ft,Ba),e(v,Wa),e(l,Ha),e(l,Ye),D(ge,Ye,null),e(l,Ya),e(l,S),e(S,Ja),e(S,Mt),e(Mt,Xa),e(S,Ka),e(S,Vt),e(Vt,Qa),e(S,Za),e(S,Rt),e(Rt,eo),e(S,to),e(S,Lt),e(Lt,ro),e(S,ao),e(S,Bt),e(Bt,oo),e(S,so),e(l,no),e(l,te),e(te,lo),e(te,Je),e(Je,Wt),e(Wt,co),e(te,io),e(te,Ht),e(Ht,po),e(te,ho),e(l,fo),e(l,Xe),D($e,Xe,null),e(l,_o),e(l,Yt),e(Yt,uo),e(l,mo),e(l,q),e(q,Eo),e(q,Jt),e(Jt,vo),e(q,go),e(q,Xt),e(Xt,$o),e(q,Co),e(q,Kt),e(Kt,Do),e(q,Po),e(q,Qt),e(Qt,ko),e(q,To),e(q,Zt),e(Zt,Oo),e(q,bo),e(l,wo),e(l,re),e(re,jo),e(re,Ke),e(Ke,er),e(er,Ao),e(re,So),e(re,tr),e(tr,qo),e(re,yo),e(l,No),e(l,Qe),e(Qe,zo),e(l,xo),e(l,y),e(y,Io),e(y,Ze),e(Ze,rr),e(rr,Uo),e(y,Go),e(y,ar),e(ar,Fo),e(y,Mo),e(y,or),e(or,Vo),e(y,Ro),e(y,sr),e(sr,Lo),e(y,Bo),e(y,et),e(et,nr),e(nr,Wo),e(y,Ho),e(l,Yo),e(l,le),D(Ce,le,null),e(le,Jo),D(De,le,null),e(l,Xo),e(l,u),e(u,Ko),e(u,tt),e(tt,lr),e(lr,Qo),e(u,Zo),e(u,dr),e(dr,es),e(u,ts),e(u,cr),e(cr,rs),e(u,as),e(u,ir),e(ir,os),e(u,ss),e(u,pr),e(pr,ns),e(u,ls),e(u,rt),e(rt,hr),e(hr,ds),e(u,cs),e(u,fr),e(fr,is),e(u,ps),e(u,at),e(at,_r),e(_r,hs),e(u,fs),e(l,_s),e(l,U),e(U,us),e(U,ur),e(ur,ms),e(U,Es),e(U,ot),e(ot,vs),e(U,gs),e(U,st),e(st,mr),e(mr,$s),e(U,Cs),e(U,nt),e(nt,Ds),e(U,Ps),e(l,ks),e(l,lt),D(Pe,lt,null),e(l,Ts),e(l,G),e(G,Os),e(G,Er),e(Er,bs),e(G,ws),e(G,dt),e(dt,vr),e(vr,js),e(G,As),e(G,ct),e(ct,gr),e(gr,Ss),e(G,qs),e(G,it),e(it,$r),e($r,ys),e(G,Ns),e(l,zs),e(l,de),D(ke,de,null),e(de,xs),D(Te,de,null),e(l,Is),e(l,g),e(g,Us),e(g,Cr),e(Cr,Gs),e(g,Fs),e(g,Dr),e(Dr,Ms),e(g,Vs),e(g,Pr),e(Pr,Rs),e(g,Ls),e(g,Oe),e(Oe,Bs),e(g,Ws),e(g,kr),e(kr,Hs),e(g,Ys),e(g,Tr),e(Tr,Js),e(g,Xs),e(g,Or),e(Or,Ks),e(g,Qs),e(l,Zs),e(l,be),e(be,en),e(be,pt),e(pt,br),e(br,tn),e(be,rn),e(l,an),e(l,ht),D(we,ht,null),e(l,on),e(l,ae),e(ae,sn),e(ae,wr),e(wr,nn),e(ae,ln),e(ae,ft),e(ft,jr),e(jr,dn),e(ae,cn),e(l,pn),e(l,_t),D(je,_t,null),e(l,hn),e(l,H),e(H,fn),e(H,Ar),e(Ar,_n),e(H,un),e(H,Sr),e(Sr,mn),e(H,En),e(H,qr),e(qr,vn),e(H,gn),e(l,$n),e(l,ut),D(Ae,ut,null),e(l,Cn),e(l,Se),e(Se,Dn),e(Se,mt),e(mt,Pn),e(Se,kn),e(l,Tn),e(l,oe),e(oe,On),e(oe,yr),e(yr,bn),e(oe,wn),e(oe,Nr),e(Nr,jn),e(oe,An),e(l,Sn),e(l,se),e(se,qn),e(se,zr),e(zr,yn),e(se,Nn),e(se,Et),e(Et,zn),e(se,xn),e(l,In),D(ce,l,null),Ur=!0},p(c,[F]){const d={};F&1&&(d.fw=c[0]),_.$set(d);const qe={};F&2&&(qe.$$scope={dirty:F,ctx:c}),ne.$set(qe);const xr={};F&2&&(xr.$$scope={dirty:F,ctx:c}),ce.$set(xr)},i(c){Ur||(P(_.$$.fragment,c),P(x.$$.fragment,c),P(J.$$.fragment,c),P(fe.$$.fragment,c),P(ue.$$.fragment,c),P(me.$$.fragment,c),P(ne.$$.fragment,c),P(Ee.$$.fragment,c),P(ge.$$.fragment,c),P($e.$$.fragment,c),P(Ce.$$.fragment,c),P(De.$$.fragment,c),P(Pe.$$.fragment,c),P(ke.$$.fragment,c),P(Te.$$.fragment,c),P(we.$$.fragment,c),P(je.$$.fragment,c),P(Ae.$$.fragment,c),P(ce.$$.fragment,c),Ur=!0)},o(c){k(_.$$.fragment,c),k(x.$$.fragment,c),k(J.$$.fragment,c),k(fe.$$.fragment,c),k(ue.$$.fragment,c),k(me.$$.fragment,c),k(ne.$$.fragment,c),k(Ee.$$.fragment,c),k(ge.$$.fragment,c),k($e.$$.fragment,c),k(Ce.$$.fragment,c),k(De.$$.fragment,c),k(Pe.$$.fragment,c),k(ke.$$.fragment,c),k(Te.$$.fragment,c),k(we.$$.fragment,c),k(je.$$.fragment,c),k(Ae.$$.fragment,c),k(ce.$$.fragment,c),Ur=!1},d(c){a(f),c&&a(N),T(_,c),c&&a(z),c&&a(l),T(x),T(J),T(fe),T(ue),T(me),T(ne),T(Ee),T(ge),T($e),T(Ce),T(De),T(Pe),T(ke),T(Te),T(we),T(je),T(Ae),T(ce)}}}const Kd={local:"api-trainer",sections:[{local:"",title:"\u062A\u0639\u0644\u06CC\u0645"},{local:"",title:"\u0627\u0631\u0632\u06CC\u0627\u0628\u06CC"}],title:"\u06A9\u0648\u06A9 \u06A9\u0631\u062F\u0646 \u0645\u062F\u0644\u200C\u0647\u0627 \u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 API `Trainer`"};function Qd(pe,f,N){let _="pt";return Rd(()=>{const z=new URLSearchParams(window.location.search);N(0,_=z.get("fw")||"pt")}),[_]}class nc extends Gd{constructor(f){super();Fd(this,f,Qd,Xd,Md,{})}}export{nc as default,Kd as metadata};
