import{S as Ml,i as Ll,s as Il,e as a,k as p,w as $,t as o,M as Rl,c as l,d as r,m as d,x as E,a as i,h as s,b as w,G as t,g as c,y as h,q as v,o as k,B as C,v as Nl}from"../../chunks/vendor-hf-doc-builder.js";import{T as Fl}from"../../chunks/Tip-hf-doc-builder.js";import{Y as Bl}from"../../chunks/Youtube-hf-doc-builder.js";import{I as Wl}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as U}from"../../chunks/CodeBlock-hf-doc-builder.js";import{D as Hl}from"../../chunks/DocNotebookDropdown-hf-doc-builder.js";import{F as Yl}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";function Jl(fe){let f,z,m,A,T,u,O,y,W,ee,me;return{c(){f=a("p"),z=o("\u{1F4A1} \u092F\u0926\u093F \u0906\u092A \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u0905\u092A\u0928\u0947 \u092E\u0949\u0921\u0932 \u0915\u094B \u0939\u092C \u092A\u0930 \u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 \u0905\u092A\u0932\u094B\u0921 \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902, \u0924\u094B \u0906\u092A "),m=a("code"),A=o("TrainingArguments"),T=o(" \u092E\u0947\u0902 "),u=a("code"),O=o("push_to_hub=True"),y=o(" \u0915\u0947 \u0938\u093E\u0925 \u092A\u093E\u0938 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u0939\u092E \u0907\u0938\u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 "),W=a("a"),ee=o("\u0905\u0927\u094D\u092F\u093E\u092F 4"),me=o(" \u092E\u0947\u0902 \u0914\u0930 \u091C\u093E\u0928\u0947\u0902\u0917\u0947"),this.h()},l(H){f=l(H,"P",{});var b=i(f);z=s(b,"\u{1F4A1} \u092F\u0926\u093F \u0906\u092A \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u0905\u092A\u0928\u0947 \u092E\u0949\u0921\u0932 \u0915\u094B \u0939\u092C \u092A\u0930 \u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 \u0905\u092A\u0932\u094B\u0921 \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902, \u0924\u094B \u0906\u092A "),m=l(b,"CODE",{});var _e=i(m);A=s(_e,"TrainingArguments"),_e.forEach(r),T=s(b," \u092E\u0947\u0902 "),u=l(b,"CODE",{});var Y=i(u);O=s(Y,"push_to_hub=True"),Y.forEach(r),y=s(b," \u0915\u0947 \u0938\u093E\u0925 \u092A\u093E\u0938 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u0939\u092E \u0907\u0938\u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 "),W=l(b,"A",{href:!0});var ue=i(W);ee=s(ue,"\u0905\u0927\u094D\u092F\u093E\u092F 4"),ue.forEach(r),me=s(b," \u092E\u0947\u0902 \u0914\u0930 \u091C\u093E\u0928\u0947\u0902\u0917\u0947"),b.forEach(r),this.h()},h(){w(W,"href","/course/chapter4/3")},m(H,b){c(H,f,b),t(f,z),t(f,m),t(m,A),t(f,T),t(f,u),t(u,O),t(f,y),t(f,W),t(W,ee),t(f,me)},d(H){H&&r(f)}}}function Xl(fe){let f,z,m,A,T;return{c(){f=a("p"),z=o("\u270F\uFE0F "),m=a("strong"),A=o("\u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0915\u0947 \u0926\u0947\u0916\u0947!"),T=o(" GLUE SST-2 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930 \u090F\u0915 \u092E\u0949\u0921\u0932 \u0915\u094B \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928 \u0915\u0930\u0947\u0902, \u0921\u0947\u091F\u093E \u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0930\u0923 \u092F\u093E\u0928\u093F \u0921\u0947\u091F\u093E \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u093F\u0902\u0917 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u091C\u093F\u0938\u0947 \u0906\u092A\u0928\u0947 \u0938\u0947\u0915\u094D\u0936\u0928 2 \u092E\u0947\u0902 \u0915\u093F\u092F\u093E \u0925\u093E")},l(u){f=l(u,"P",{});var O=i(f);z=s(O,"\u270F\uFE0F "),m=l(O,"STRONG",{});var y=i(m);A=s(y,"\u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0915\u0947 \u0926\u0947\u0916\u0947!"),y.forEach(r),T=s(O," GLUE SST-2 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930 \u090F\u0915 \u092E\u0949\u0921\u0932 \u0915\u094B \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928 \u0915\u0930\u0947\u0902, \u0921\u0947\u091F\u093E \u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0930\u0923 \u092F\u093E\u0928\u093F \u0921\u0947\u091F\u093E \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u093F\u0902\u0917 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u091C\u093F\u0938\u0947 \u0906\u092A\u0928\u0947 \u0938\u0947\u0915\u094D\u0936\u0928 2 \u092E\u0947\u0902 \u0915\u093F\u092F\u093E \u0925\u093E"),O.forEach(r)},m(u,O){c(u,f,O),t(f,z),t(f,m),t(m,A),t(f,T)},d(u){u&&r(f)}}}function Kl(fe){let f,z,m,A,T,u,O,y,W,ee,me,H,b,_e,Y,ue,x,Fr,He,Mr,Lr,Ye,Ir,Rr,Je,Nr,Br,$e,Wr,Hr,Qt,xe,Yr,Vt,Ee,Zt,he,Jr,er,G,Xr,Xe,Kr,Qr,Ke,Vr,Zr,Qe,eo,to,tr,ve,rr,oe,or,J,ro,Se,oo,so,Ve,ao,lo,sr,ke,ar,se,io,Ue,no,co,lr,P,po,Ze,fo,mo,et,_o,uo,tt,$o,Eo,rt,ho,vo,ot,ko,Co,ir,Ce,nr,g,bo,st,To,Do,at,wo,Oo,lt,Po,go,it,jo,qo,nt,zo,Ao,cr,X,yo,ct,xo,So,pt,Uo,Go,pr,be,dr,Ge,Fo,fr,ae,q,Mo,dt,Lo,Io,ft,Ro,No,mt,Bo,Wo,_t,Ho,Yo,ut,Jo,Xo,Ko,te,Qo,$t,Vo,Zo,Et,es,ts,mr,Te,rs,_r,j,os,ht,ss,as,vt,ls,is,kt,ns,cs,Ct,ps,ds,bt,fs,ms,ur,De,$r,we,Er,_,Tt,_s,us,Dt,$s,Es,wt,hs,vs,Ot,ks,Cs,Pt,bs,Ts,gt,Ds,ws,jt,Os,Ps,qt,gs,js,hr,F,qs,zt,zs,As,At,ys,xs,Fe,Ss,Us,vr,Oe,kr,S,Gs,yt,Fs,Ms,xt,Ls,Is,St,Rs,Ns,Ut,Bs,Ws,Cr,Pe,br,ge,Tr,M,Hs,je,Ys,Js,Gt,Xs,Ks,Ft,Qs,Vs,Dr,le,Zs,Mt,ea,ta,wr,qe,Or,K,ra,Lt,oa,sa,It,aa,la,Pr,ze,gr,L,ia,Rt,na,ca,Nt,pa,da,Bt,fa,ma,jr,Ae,qr,Me,_a,zr,re,Wt,ua,$a,Ht,Ea,ha,Ar,Q,va,Yt,ka,Ca,Le,ba,Ta,yr,ie,xr;return m=new Yl({props:{fw:fe[0]}}),y=new Wl({}),b=new Hl({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"}]}}),Y=new Bl({props:{id:"nvBXf7s7vTI"}}),Ee=new U({props:{code:`from datasets import load_dataset
from transformers import AutoTokenizer, DataCollatorWithPadding

raw_datasets = load_dataset("glue", "mrpc")
checkpoint = "bert-base-uncased"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)


def tokenize_function(example):
    return tokenizer(example["sentence1"], example["sentence2"], truncation=True)


tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
data_collator = DataCollatorWithPadding(tokenizer=tokenizer)`,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)`}}),ve=new U({props:{code:`from transformers import TrainingArguments

training_args = TrainingArguments("test-trainer")`,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>)`}}),oe=new Fl({props:{$$slots:{default:[Jl]},$$scope:{ctx:fe}}}),ke=new U({props:{code:`from transformers import AutoModelForSequenceClassification

model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=2)`,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>)`}}),Ce=new U({props:{code:`from transformers import Trainer

trainer = Trainer(
    model,
    training_args,
    train_dataset=tokenized_datasets["train"],
    eval_dataset=tokenized_datasets["validation"],
    data_collator=data_collator,
    tokenizer=tokenizer,
)`,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,
)`}}),be=new U({props:{code:"trainer.train()",highlighted:"trainer.train()"}}),De=new U({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)`}}),we=new U({props:{code:"(408, 2) (408,)",highlighted:'(<span class="hljs-number">408</span>, <span class="hljs-number">2</span>) (<span class="hljs-number">408</span>,)'}}),Oe=new U({props:{code:`import numpy as np

preds = np.argmax(predictions.predictions, axis=-1)`,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>)`}}),Pe=new U({props:{code:`from datasets import load_metric

metric = load_metric("glue", "mrpc")
metric.compute(predictions=preds, references=predictions.label_ids)`,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)`}}),ge=new U({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>}'}}),qe=new U({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)`}}),ze=new U({props:{code:`training_args = TrainingArguments("test-trainer", evaluation_strategy="epoch")
model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=2)

trainer = Trainer(
    model,
    training_args,
    train_dataset=tokenized_datasets["train"],
    eval_dataset=tokenized_datasets["validation"],
    data_collator=data_collator,
    tokenizer=tokenizer,
    compute_metrics=compute_metrics,
)`,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 U({props:{code:"trainer.train()",highlighted:'trainer.trai<span class="hljs-meta">n</span>()'}}),ie=new Fl({props:{$$slots:{default:[Xl]},$$scope:{ctx:fe}}}),{c(){f=a("meta"),z=p(),$(m.$$.fragment),A=p(),T=a("h1"),u=a("a"),O=a("span"),$(y.$$.fragment),W=p(),ee=a("span"),me=o("\u092E\u0949\u0921\u0932 \u0915\u093F Trainer API \u0915\u0947 \u0938\u093E\u0925"),H=p(),$(b.$$.fragment),_e=p(),$(Y.$$.fragment),ue=p(),x=a("p"),Fr=o("\u{1F917} \u091F\u094D\u0930\u093E\u0928\u094D\u0938\u092B\u093C\u0949\u0930\u094D\u092E\u0930 \u090F\u0915 "),He=a("code"),Mr=o("\u091F\u094D\u0930\u0947\u0928\u0930"),Lr=o(" \u0915\u094D\u0932\u093E\u0938 \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0924\u093E \u0939\u0948 \u091C\u093F\u0938\u0938\u0947 \u0906\u092A\u0915\u094B \u0909\u092A\u0932\u092C\u094D\u0927 \u0915\u0930\u093E\u090F \u0917\u090F \u0915\u093F\u0938\u0940 \u092D\u0940 \u092A\u0942\u0930\u094D\u0935-\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u092E\u0949\u0921\u0932 \u0915\u094B \u0905\u092A\u0928\u0947 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930  \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u092E\u0926\u0926 \u092E\u093F\u0932\u0924\u0940 \u0939\u0948\u0964 \u090F\u0915 \u092C\u093E\u0930 \u091C\u092C \u0906\u092A \u0905\u0902\u0924\u093F\u092E \u0916\u0902\u0921 \u092E\u0947\u0902 \u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u092A\u0942\u0930\u094D\u0935 \u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0930\u0923 \u0915\u093E\u0930\u094D\u092F \u0915\u0930 \u0932\u0947\u0924\u0947 \u0939\u0948\u0902, \u0924\u094B \u0906\u092A\u0915\u0947 \u092A\u093E\u0938 "),Ye=a("code"),Ir=o("\u091F\u094D\u0930\u0947\u0928\u0930"),Rr=o(" \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092C\u0938 \u0915\u0941\u091B \u0939\u0940 \u091A\u0930\u0923 \u0936\u0947\u0937 \u0939\u0948\u0902\u0964 \u0938\u092C\u0938\u0947 \u0915\u0920\u093F\u0928 \u0939\u093F\u0938\u094D\u0938\u093E "),Je=a("code"),Nr=o("Trainer.train()"),Br=o(" \u0915\u094B \u091A\u0932\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0935\u093E\u0924\u093E\u0935\u0930\u0923 \u0915\u094B \u0924\u0948\u092F\u093E\u0930 \u0915\u0930\u0928\u0947 \u0915\u0940 \u0938\u0902\u092D\u093E\u0935\u0928\u093E \u0939\u0948, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092F\u0939 CPU \u092A\u0930 \u092C\u0939\u0941\u0924 \u0927\u0940\u092E\u0940 \u0917\u0924\u093F \u0938\u0947 \u091A\u0932\u0947\u0917\u093E\u0964 \u092F\u0926\u093F \u0906\u092A\u0915\u0947 \u092A\u093E\u0938 GPU \u0938\u0947\u091F \u0905\u092A \u0928\u0939\u0940\u0902 \u0939\u0948, \u0924\u094B \u0906\u092A "),$e=a("a"),Wr=o("Google Colab"),Hr=o(" \u092A\u0930 \u0928\u093F\u0903\u0936\u0941\u0932\u094D\u0915 GPUs \u092F\u093E TPUs \u0915\u093E \u090F\u0915\u094D\u0938\u0947\u0938 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964"),Qt=p(),xe=a("p"),Yr=o("\u0928\u0940\u091A\u0947 \u0926\u093F\u090F \u0917\u090F \u0915\u094B\u0921 \u0909\u0926\u093E\u0939\u0930\u0923 \u092E\u093E\u0928\u0924\u0947 \u0939\u0948\u0902 \u0915\u093F \u0906\u092A\u0928\u0947 \u092A\u093F\u091B\u0932\u0947 \u0916\u0902\u0921 \u092E\u0947\u0902 \u0909\u0926\u093E\u0939\u0930\u0923\u094B\u0902 \u0915\u094B \u092A\u0939\u0932\u0947 \u0939\u0940 \u0928\u093F\u0937\u094D\u092A\u093E\u0926\u093F\u0924 \u0915\u0930 \u0926\u093F\u092F\u093E \u0939\u0948\u0964 \u092F\u0939\u093E\u0902 \u090F\u0915 \u0938\u0902\u0915\u094D\u0937\u093F\u092A\u094D\u0924 \u0938\u093E\u0930\u093E\u0902\u0936 \u0926\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948 \u091C\u093F\u0938\u0915\u0940 \u0906\u092A\u0915\u094B \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0939\u0948:"),Vt=p(),$(Ee.$$.fragment),Zt=p(),he=a("h3"),Jr=o("\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923"),er=p(),G=a("p"),Xr=o("\u0939\u092E\u093E\u0930\u0947 "),Xe=a("code"),Kr=o("\u091F\u094D\u0930\u0947\u0928\u0930"),Qr=o(" \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u0947 \u0938\u0947 \u092A\u0939\u0932\u0947 \u092A\u0939\u0932\u093E \u0915\u0926\u092E \u0939\u0948 \u090F\u0915 "),Ke=a("code"),Vr=o("TrainingArguments"),Zr=o(" \u0915\u094D\u0932\u093E\u0938  \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u093E \u091C\u093F\u0938\u092E\u0947\u0902 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0914\u0930 \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0947 \u0932\u093F\u090F "),Qe=a("code"),eo=o("\u091F\u094D\u0930\u0947\u0928\u0930"),to=o(" \u0926\u094D\u0935\u093E\u0930\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u090F \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u0947 \u0938\u092D\u0940 \u0939\u093E\u0907\u092A\u0930\u092A\u0948\u0930\u093E\u092E\u0940\u091F\u0930 \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0902\u0917\u0947\u0964 \u090F\u0915\u092E\u093E\u0924\u094D\u0930 \u0906\u0930\u094D\u0917\u0942\u092E\u0947\u0928\u094D\u091F \u091C\u094B \u0906\u092A\u0915\u094B \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0928\u093E \u0939\u0948 \u0935\u0939 \u0939\u0948 \u090F\u0915 \u0928\u093F\u0930\u094D\u0926\u0947\u0936\u093F\u0915\u093E \u091C\u0939\u093E\u0902 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u092E\u0949\u0921\u0932 \u0938\u0939\u0947\u091C\u093E \u091C\u093E\u090F\u0917\u093E, \u0938\u093E\u0925 \u0939\u0940 \u0938\u093E\u0925 \u091A\u094C\u0915\u093F\u092F\u094B\u0902 \u0915\u094B \u092D\u0940\u0964 \u092C\u093E\u0915\u0940 \u0938\u092D\u0940 \u0915\u0947 \u0932\u093F\u090F, \u0906\u092A \u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F \u0930\u0942\u092A \u092E\u0947\u0902 \u091B\u094B\u0921\u093C \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u091C\u094B \u090F\u0915 \u092C\u0941\u0928\u093F\u092F\u093E\u0926\u0940 \u092B\u093C\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928\u093F\u0902\u0917 \u0915\u0947 \u0932\u093F\u090F \u092C\u0939\u0941\u0924 \u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947 \u0915\u093E\u092E \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u093F\u090F\u0964"),tr=p(),$(ve.$$.fragment),rr=p(),$(oe.$$.fragment),or=p(),J=a("p"),ro=o("\u0926\u0942\u0938\u0930\u093E \u0915\u0926\u092E \u0939\u092E\u093E\u0930\u0947 \u092E\u0949\u0921\u0932 \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u093E \u0939\u0948\u0964 "),Se=a("a"),oo=o("\u092A\u093F\u091B\u0932\u0947 \u0905\u0927\u094D\u092F\u093E\u092F"),so=o(" \u0915\u0940 \u0924\u0930\u0939, \u0939\u092E "),Ve=a("code"),ao=o("AutoModelForSequenceClassification"),lo=o(" \u0935\u0930\u094D\u0917 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902\u0917\u0947, \u0926\u094B \u0932\u0947\u092C\u0932 \u0915\u0947 \u0938\u093E\u0925 :"),sr=p(),$(ke.$$.fragment),ar=p(),se=a("p"),io=o("\u0906\u092A \u0926\u0947\u0916\u0947\u0902\u0917\u0947 \u0915\u093F "),Ue=a("a"),no=o("\u0905\u0927\u094D\u092F\u093E\u092F 2"),co=o(" \u0915\u0947 \u0935\u093F\u092A\u0930\u0940\u0924, \u0906\u092A\u0915\u094B \u0907\u0938 \u092A\u0942\u0930\u094D\u0935-\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u092E\u0949\u0921\u0932 \u0915\u094B \u0907\u0928\u094D\u0938\u094D\u091F\u0948\u0928\u094D\u0936\u0940\u0910\u091F \u0915\u0930\u0928\u0947 \u0915\u0947 \u092C\u093E\u0926 \u090F\u0915 \u091A\u0947\u0924\u093E\u0935\u0928\u0940 \u092E\u093F\u0932\u0924\u0940 \u0939\u0948\u0964 \u0910\u0938\u093E \u0907\u0938\u0932\u093F\u090F \u0939\u0948 \u0915\u094D\u092F\u094B\u0902\u0915\u093F BERT \u0915\u094B \u0935\u093E\u0915\u094D\u092F\u094B\u0902 \u0915\u0947 \u091C\u094B\u0921\u093C\u0947 \u0915\u093E \u0935\u0930\u094D\u0917\u0940\u0915\u0930\u0923 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u0942\u0930\u094D\u0935 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0907\u0938\u0932\u093F\u090F \u092A\u0942\u0930\u094D\u0935-\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u092E\u0949\u0921\u0932 \u0915\u0947 \u092A\u094D\u0930\u092E\u0941\u0916 \u0915\u094B \u0924\u094D\u092F\u093E\u0917 \u0926\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948 \u0914\u0930 \u0907\u0938\u0915\u0947 \u092C\u091C\u093E\u092F\u0947 \u0905\u0928\u0941\u0915\u094D\u0930\u092E \u0935\u0930\u094D\u0917\u0940\u0915\u0930\u0923 \u0915\u0947 \u0932\u093F\u090F \u0909\u092A\u092F\u0941\u0915\u094D\u0924 \u090F\u0915 \u0928\u092F\u093E \u092A\u094D\u0930\u092E\u0941\u0916 \u0921\u093E\u0932\u093E \u0917\u092F\u093E \u0939\u0948\u0964 \u0907\u0928 \u091A\u0947\u0924\u093E\u0935\u0928\u093F\u092F\u094B\u0902 \u0938\u0947 \u0938\u0902\u0915\u0947\u0924 \u092E\u093F\u0932\u0924\u093E \u0939\u0948 \u0915\u093F \u0915\u0941\u091B \u0935\u091C\u093C\u0928 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0925\u093E (\u0924\u094D\u092F\u093E\u0917\u0947 \u0917\u090F \u092A\u0942\u0930\u094D\u0935-\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0915\u0947 \u092A\u094D\u0930\u092E\u0941\u0916 \u0915\u0947 \u0905\u0928\u0941\u0930\u0942\u092A) \u0914\u0930 \u0915\u0941\u091B \u0905\u0928\u094D\u092F \u0915\u094D\u0930\u092E\u0930\u0939\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 \u092A\u094D\u0930\u093E\u0930\u0902\u092D \u0915\u093F\u090F \u0917\u090F \u0925\u0947 (\u0928\u090F \u092A\u094D\u0930\u092E\u0941\u0916 \u0915\u0947 \u0932\u093F\u090F \u0935\u093E\u0932\u0947)\u0964 \u092F\u0939 \u0938\u092E\u093E\u092A\u0928 \u0906\u092A\u0915\u094B \u092E\u0949\u0921\u0932 \u0915\u094B \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u094B\u0924\u094D\u0938\u093E\u0939\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0938\u093E\u0925 \u0939\u094B\u0917\u093E, \u091C\u094B \u0915\u093F \u0905\u092C \u0939\u092E \u0915\u0930\u0928\u0947 \u091C\u093E \u0930\u0939\u0947 \u0939\u0948\u0902\u0964"),lr=p(),P=a("p"),po=o("\u090F\u0915 \u092C\u093E\u0930 \u091C\u092C \u0939\u092E\u093E\u0930\u0947 \u092A\u093E\u0938 \u0939\u092E\u093E\u0930\u093E \u092E\u0949\u0921\u0932 \u0939\u094B\u0917\u093E, \u0924\u094B \u0939\u092E \u090F\u0915 "),Ze=a("code"),fo=o("Trainer"),mo=o(" \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0905\u092C \u0924\u0915 \u0915\u0940 \u0928\u093F\u0930\u094D\u092E\u093F\u0924 \u0938\u092D\u0940 \u0935\u0938\u094D\u0924\u0941\u0913\u0902 \u0915\u094B \u092A\u093E\u0938 \u0915\u0930\u0915\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948 \u2014 "),et=a("code"),_o=o("model"),uo=o(", "),tt=a("code"),$o=o("training_args"),Eo=o(", \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0914\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0921\u0947\u091F\u093E\u0938\u0947\u091F, \u0939\u092E\u093E\u0930\u0947 "),rt=a("code"),ho=o("data_collator"),vo=o(", \u0914\u0930 \u0939\u092E\u093E\u0930\u0947 "),ot=a("code"),ko=o("tokenizer"),Co=o(":"),ir=p(),$(Ce.$$.fragment),nr=p(),g=a("p"),bo=o("\u0927\u094D\u092F\u093E\u0928 \u0926\u0947\u0902 \u0915\u093F \u091C\u092C \u0906\u092A "),st=a("code"),To=o("tokenizer"),Do=o(" \u092A\u093E\u0938 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902 \u091C\u0948\u0938\u093E \u0915\u093F \u0939\u092E\u0928\u0947 \u092F\u0939\u093E\u0902 \u0915\u093F\u092F\u093E \u0925\u093E, \u0924\u094B "),at=a("code"),wo=o("Trainer"),Oo=o(" \u0926\u094D\u0935\u093E\u0930\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u093E \u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F "),lt=a("code"),Po=o("data_colllator"),go=o(" \u090F\u0915 "),it=a("code"),jo=o("DataCollatorWithPadding"),qo=o(" \u0939\u094B\u0917\u093E \u091C\u0948\u0938\u093E \u0915\u093F \u092A\u0939\u0932\u0947 \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0925\u093E, \u0907\u0938\u0932\u093F\u090F \u0906\u092A \u0907\u0938 \u0915\u0949\u0932 \u092E\u0947\u0902 "),nt=a("code"),zo=o("data_collator=data_collator"),Ao=o(" \u0932\u093E\u0907\u0928 \u0915\u094B \u091B\u094B\u0921\u093C \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u0906\u092A\u0915\u094B \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u093F\u0902\u0917 \u0915\u0947 \u0907\u0938 \u092D\u093E\u0917 \u0915\u094B \u0916\u0902\u0921 2 \u092E\u0947\u0902 \u0926\u093F\u0916\u093E\u0928\u093E \u092B\u093F\u0930 \u092D\u0940 \u092E\u0939\u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923 \u0925\u093E!"),cr=p(),X=a("p"),yo=o("\u092E\u0949\u0921\u0932 \u0915\u094B \u0939\u092E\u093E\u0930\u0947 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930 \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0939\u092E\u0947\u0902 \u092C\u0938 \u0905\u092A\u0928\u0947 "),ct=a("code"),xo=o("Trainer"),So=o(" \u0915\u0947 "),pt=a("code"),Uo=o("train()"),Go=o(" \u0935\u093F\u0927\u093F \u0915\u094B \u0915\u0949\u0932 \u0915\u0930\u0928\u093E \u0939\u094B\u0917\u093E:"),pr=p(),$(be.$$.fragment),dr=p(),Ge=a("p"),Fo=o("\u092F\u0939 \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928\u093F\u0902\u0917 \u0915\u094B \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0917\u093E (\u091C\u093F\u0938\u092E\u0947\u0902 GPU \u092A\u0930 \u0915\u0941\u091B \u092E\u093F\u0928\u091F \u0932\u0917\u0928\u0947 \u091A\u093E\u0939\u093F\u090F) \u0914\u0930 \u0939\u0930 500 \u0915\u0926\u092E \u092A\u0930 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0932\u0949\u0938 \u0915\u0940 \u0930\u093F\u092A\u094B\u0930\u094D\u091F \u0915\u0930\u0947\u0917\u093E \u0964 \u0939\u093E\u0932\u093E\u0902\u0915\u093F, \u092F\u0939 \u0906\u092A\u0915\u094B \u092F\u0939 \u0928\u0939\u0940\u0902 \u092C\u0924\u093E\u090F\u0917\u093E \u0915\u093F \u0906\u092A\u0915\u093E \u092E\u0949\u0921\u0932 \u0915\u093F\u0924\u0928\u093E \u0905\u091A\u094D\u091B\u093E (\u092F\u093E \u0916\u0930\u093E\u092C) \u092A\u094D\u0930\u0926\u0930\u094D\u0936\u0928 \u0915\u0930 \u0930\u0939\u093E \u0939\u0948\u0964 \u092F\u0939 \u0939\u0948 \u0915\u094D\u092F\u094B\u0902\u0915\u093F:"),fr=p(),ae=a("ol"),q=a("li"),Mo=o("\u0939\u092E\u0928\u0947 "),dt=a("code"),Lo=o("Trainer"),Io=o(" \u0915\u094B \u0928\u0939\u0940\u0902 \u092C\u0924\u093E\u092F\u093E \u0915\u0940 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F  "),ft=a("code"),Ro=o("evaluation_strategy"),No=o(" \u0915\u094B \u092F\u093E \u0924\u094B "),mt=a("code"),Bo=o('"steps"'),Wo=o("(\u0939\u0930 "),_t=a("code"),Ho=o("eval_steps"),Yo=o(" \u0915\u093E \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0930\u0947\u0902) \u092F\u093E "),ut=a("code"),Jo=o('"epoch"'),Xo=o(" (\u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u090F\u092A\u0949\u0915 \u0915\u0947 \u0905\u0902\u0924 \u092E\u0947\u0902 \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928) \u0915\u094B \u0938\u0947\u091F \u0915\u0930\u0947\u0964"),Ko=p(),te=a("li"),Qo=o("\u0939\u092E\u0928\u0947 "),$t=a("code"),Vo=o("Trainer"),Zo=o(" \u0915\u094B "),Et=a("code"),es=o("compute_metrics()"),ts=o(" \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u0947 \u0938\u093E\u0925 \u092A\u094D\u0930\u0926\u093E\u0928 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u094B \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u092E\u0940\u091F\u094D\u0930\u093F\u0915 \u0915\u0940 \u0917\u0923\u0928\u093E \u0915\u0930\u0924\u093E \u0939\u0948 (\u0905\u0928\u094D\u092F\u0925\u093E \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0928\u0947 \u0915\u0947\u0935\u0932 \u0932\u0949\u0938 \u0915\u094B \u092E\u0941\u0926\u094D\u0930\u093F\u0924 \u0915\u093F\u092F\u093E \u0939\u094B\u0917\u093E, \u091C\u094B \u092C\u0939\u0941\u0924 \u0938\u0939\u091C \u0938\u0902\u0916\u094D\u092F\u093E \u0928\u0939\u0940\u0902 \u0939\u0948)"),mr=p(),Te=a("h3"),rs=o("\u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928"),_r=p(),j=a("p"),os=o("\u0906\u0907\u090F \u0926\u0947\u0916\u0947\u0902 \u0915\u093F \u0939\u092E \u090F\u0915 \u0909\u092A\u092F\u094B\u0917\u0940 "),ht=a("code"),ss=o("compute_metrics()"),as=o(" \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u0948\u0938\u0947 \u092C\u0928\u093E \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930 \u0905\u0917\u0932\u0940 \u092C\u093E\u0930 \u091C\u092C \u0939\u092E \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0915\u0930\u0947\u0902\u0917\u0947 \u0924\u094B \u0907\u0938\u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0948\u0938\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u094B \u090F\u0915 "),vt=a("code"),ls=o("EvalPrediction"),is=o(" \u0911\u092C\u094D\u091C\u0947\u0915\u094D\u091F \u0932\u0947\u0928\u093E \u0939\u094B\u0917\u093E (\u091C\u094B \u090F\u0915 "),kt=a("code"),ns=o("predictions"),cs=o(" \u092B\u093C\u0940\u0932\u094D\u0921 \u0914\u0930 \u090F\u0915 "),Ct=a("code"),ps=o("label_ids"),ds=o(" \u092B\u093C\u0940\u0932\u094D\u0921 \u0915\u0947 \u0938\u093E\u0925 \u090F\u0915 \u0928\u093E\u092E\u093F\u0924 \u091F\u092A\u0932 \u0939\u0948) \u0914\u0930 \u0932\u094C\u091F\u093E\u090F\u0917\u093E \u090F\u0915 \u0921\u093F\u0915\u094D\u0936\u0928\u0930\u0940 \u091C\u094B \u092E\u0948\u092A \u0915\u0930\u0947\u0917\u093E \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917\u094D\u0938 \u0915\u094B \u092B\u093C\u094D\u0932\u094B\u091F \u092E\u0947\u0902 (\u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917\u094D\u0938 \u0932\u094C\u091F\u093E\u090F \u0917\u090F \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0915\u0947 \u0928\u093E\u092E \u0939\u0948\u0902, \u0914\u0930 \u092B\u093C\u094D\u0932\u094B\u091F \u0909\u0928\u0915\u0940 \u0935\u0948\u0932\u094D\u092F\u0942\u091C)\u0964 \u0939\u092E\u093E\u0930\u0947 \u092E\u0949\u0921\u0932 \u0938\u0947 \u0915\u0941\u091B \u092A\u094D\u0930\u093F\u0921\u093F\u0915\u094D\u0936\u0928\u094D\u0938 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0939\u092E "),bt=a("code"),fs=o("Trainer.predict()"),ms=o(" \u0915\u092E\u093E\u0902\u0921 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902:"),ur=p(),$(De.$$.fragment),$r=p(),$(we.$$.fragment),Er=p(),_=a("p"),Tt=a("code"),_s=o("predict()"),us=o(" \u0935\u093F\u0927\u093F \u0915\u093E \u0906\u0909\u091F\u092A\u0941\u091F \u0928\u093E\u092E\u093F\u0924 \u091F\u092A\u0932 \u0939\u0948 \u0924\u0940\u0928 \u0915\u094D\u0937\u0947\u0924\u094D\u0930\u094B\u0902 \u0915\u0947 \u0938\u093E\u0925 : "),Dt=a("code"),$s=o("predictions"),Es=o(", "),wt=a("code"),hs=o("label_ids"),vs=o(", \u0914\u0930 "),Ot=a("code"),ks=o("metrics"),Cs=o("\u0964 "),Pt=a("code"),bs=o("metrics"),Ts=o(" \u092B\u093C\u0940\u0932\u094D\u0921 \u092E\u0947\u0902 \u0915\u0947\u0935\u0932 \u092A\u093E\u0938 \u0915\u093F\u090F \u0917\u090F \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930 \u0939\u094B\u0928\u0947 \u0935\u093E\u0932\u093E \u0932\u0949\u0938 \u0939\u094B\u0917\u093E, \u0938\u093E\u0925 \u0939\u0940 \u0938\u093E\u0925 \u0915\u0941\u091B \u0938\u092E\u092F \u092E\u0940\u091F\u094D\u0930\u093F\u0915 (\u0915\u0941\u0932 \u0914\u0930 \u0914\u0938\u0924 \u0930\u0942\u092A \u0938\u0947 \u092A\u094D\u0930\u093F\u0921\u093F\u0915\u094D\u091F \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0915\u093F\u0924\u0928\u093E \u0938\u092E\u092F \u0932\u0917\u093E) \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0902\u0917\u0947\u0964 \u090F\u0915 \u092C\u093E\u0930 \u091C\u092C \u0939\u092E \u0905\u092A\u0928\u093E "),gt=a("code"),Ds=o("compute_metrics()"),ws=o(" \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u092A\u0942\u0930\u093E \u0915\u0930 \u0932\u0947\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930 \u0907\u0938\u0947 "),jt=a("code"),Os=o("\u091F\u094D\u0930\u0947\u0928\u0930"),Ps=o(" \u0915\u094B \u092A\u093E\u0938 \u0915\u0930 \u0926\u0947\u0924\u0947 \u0939\u0948\u0902, \u0924\u094B \u0909\u0938 \u092B\u093C\u0940\u0932\u094D\u0921 \u092E\u0947\u0902 "),qt=a("code"),gs=o("compute_metrics()"),js=o(" \u0926\u094D\u0935\u093E\u0930\u093E \u0932\u094C\u091F\u093E\u090F \u0917\u090F \u092E\u0940\u091F\u094D\u0930\u093F\u0915 \u092D\u0940 \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0902\u0917\u0947\u0964"),hr=p(),F=a("p"),qs=o("\u091C\u0948\u0938\u093E \u0915\u093F \u0906\u092A \u0926\u0947\u0916 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, "),zt=a("code"),zs=o("predictions"),As=o(" \u090F\u0915 2-\u0921\u093F\u092E\u0947\u0928\u094D\u0936\u0928\u0932 \u0938\u0930\u0923\u0940 \u0939\u0948 \u091C\u093F\u0938\u0915\u093E \u0906\u0915\u093E\u0930 408 x 2 (408 \u0939\u092E\u093E\u0930\u0947 \u0926\u094D\u0935\u093E\u0930\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u090F \u0917\u090F \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092E\u0947\u0902 \u0924\u0924\u094D\u0935\u094B\u0902 \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E \u0939\u0948)\u0964 \u0935\u0947 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u0915\u0947 \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0924\u0924\u094D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u091F \u0939\u0948\u0902 \u091C\u093F\u0928\u094D\u0939\u0947\u0902 \u0939\u092E\u0928\u0947 "),At=a("code"),ys=o("predict()"),xs=o(" \u092E\u0947\u0902 \u092A\u093E\u0938 \u0915\u093F\u092F\u093E \u0939\u0948 (\u091C\u0948\u0938\u093E \u0915\u093F \u0906\u092A\u0928\u0947 "),Fe=a("a"),Ss=o("\u092A\u093F\u091B\u0932\u0947 \u0905\u0927\u094D\u092F\u093E\u092F"),Us=o(" \u092E\u0947\u0902 \u0926\u0947\u0916\u093E \u0925\u093E, \u0938\u092D\u0940 \u091F\u094D\u0930\u093E\u0902\u0938\u092B\u0949\u0930\u094D\u092E\u0930 \u092E\u0949\u0921\u0932 \u0932\u0949\u0917\u093F\u091F \u0932\u094C\u091F\u093E\u0924\u0947 \u0939\u0948\u0902)\u0964 \u0909\u0928\u094D\u0939\u0947\u0902 \u092D\u0935\u093F\u0937\u094D\u092F\u0935\u093E\u0923\u093F\u092F\u094B\u0902 \u092F\u093E\u0928\u093F \u092A\u094D\u0930\u093F\u0921\u093F\u0915\u094D\u0936\u0928\u094D\u0938 \u092E\u0947\u0902 \u092C\u0926\u0932\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u091C\u093F\u0928\u094D\u0939\u0947\u0902 \u0939\u092E \u0905\u092A\u0928\u0947 \u0932\u0947\u092C\u0932 \u0938\u0947 \u0924\u0941\u0932\u0928\u093E \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u0939\u092E\u0947\u0902 \u0926\u0942\u0938\u0930\u0940 \u090F\u0915\u094D\u0938\u093F\u0938 \u092A\u0930 \u0905\u0927\u093F\u0915\u0924\u092E \u092E\u0942\u0932\u094D\u092F \u0915\u0947 \u0938\u093E\u0925 \u0907\u0928\u094D\u0921\u0947\u0915\u094D\u0938 \u0932\u0947\u0928\u0947 \u0915\u0940 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0939\u0948:"),vr=p(),$(Oe.$$.fragment),kr=p(),S=a("p"),Gs=o("\u0905\u092C \u0939\u092E \u0909\u0928 "),yt=a("code"),Fs=o("preds"),Ms=o(" \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u0932\u0947\u092C\u0932 \u0938\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u0939\u092E\u093E\u0930\u0947 "),xt=a("code"),Ls=o("compute_metric()"),Is=o(" \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u094B \u092C\u0928\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0939\u092E \u{1F917} \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u0932\u093E\u0907\u092C\u094D\u0930\u0947\u0930\u0940 \u0915\u0947 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u092A\u0930 \u0928\u093F\u0930\u094D\u092D\u0930 \u0939\u0948\u0964 \u0939\u092E MRPC \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u0938\u0947 \u091C\u0941\u0921\u093C\u0947 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0915\u094B \u0909\u0924\u0928\u0940 \u0939\u0940 \u0906\u0938\u093E\u0928\u0940 \u0938\u0947 \u0932\u094B\u0921 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u091C\u093F\u0924\u0928\u0940 \u0906\u0938\u093E\u0928\u0940 \u0938\u0947 \u0939\u092E\u0928\u0947 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u0932\u094B\u0921 \u0915\u093F\u092F\u093E, \u0907\u0938 \u092C\u093E\u0930 "),St=a("code"),Rs=o("load_metric()"),Ns=o(" \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u0947 \u0938\u093E\u0925\u0964 \u0907\u0938\u0928\u0947 \u090F\u0915 \u0935\u0938\u094D\u0924\u0941 \u0932\u094C\u091F\u093E\u092F\u093E \u091C\u093F\u0938\u092E\u0947 \u090F\u0915 "),Ut=a("code"),Bs=o("compute()"),Ws=o(" \u0935\u093F\u0927\u093F \u0939\u0948 \u091C\u093F\u0938\u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0939\u092E \u092E\u0940\u091F\u094D\u0930\u093F\u0915 \u0917\u0923\u0928\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902:"),Cr=p(),$(Pe.$$.fragment),br=p(),$(ge.$$.fragment),Tr=p(),M=a("p"),Hs=o("\u0906\u092A\u0915\u094B \u092E\u093F\u0932\u0928\u0947 \u0935\u093E\u0932\u0947 \u0938\u091F\u0940\u0915 \u092A\u0930\u093F\u0923\u093E\u092E \u0905\u0932\u0917-\u0905\u0932\u0917 \u0939\u094B \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092E\u0949\u0921\u0932 \u0939\u0947\u0921 \u0915\u0947 \u0915\u094D\u0930\u092E\u0930\u0939\u093F\u0924 \u0907\u0928\u093F\u0936\u093F\u092F\u0932\u093E\u0907\u091C\u093C\u0947\u0936\u0928 \u0938\u0947 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u092E\u0947\u0902 \u092C\u0926\u0932\u093E\u0935 \u0939\u094B \u0938\u0915\u0924\u093E \u0939\u0948\u0964 \u092F\u0939\u093E\u0902, \u0939\u092E \u0926\u0947\u0916 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u0915\u093F \u0939\u092E\u093E\u0930\u0947 \u092E\u0949\u0921\u0932 \u0915\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0938\u0947\u091F \u092A\u0930 85.78% \u0915\u0940 \u0938\u091F\u0940\u0915\u0924\u093E \u0939\u0948 \u0914\u0930 89.97 \u0915\u093E F1 \u0938\u094D\u0915\u094B\u0930 \u0939\u0948\u0964 \u0935\u0947 \u0926\u094B  \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0939\u0948\u0902 \u091C\u093F\u0928\u0915\u093E \u0909\u092A\u092F\u094B\u0917 GLUE \u092C\u0947\u0902\u091A\u092E\u093E\u0930\u094D\u0915 \u0915\u0947 \u0932\u093F\u090F MRPC \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930 \u092A\u0930\u093F\u0923\u093E\u092E\u094B\u0902 \u0915\u093E \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u093F\u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948\u0964 "),je=a("a"),Ys=o("BERT \u092A\u0947\u092A\u0930"),Js=o(" \u092E\u0947\u0902 \u091F\u0947\u092C\u0932 \u0928\u0947 \u092C\u0947\u0938 \u092E\u0949\u0921\u0932 \u0915\u0947 \u0932\u093F\u090F F1 \u0938\u094D\u0915\u094B\u0930 88.9 \u092C\u0924\u093E\u092F\u093E\u0964 \u0935\u0939 \u090F\u0915 "),Gt=a("code"),Xs=o("uncased"),Ks=o(" \u092E\u0949\u0921\u0932 \u0925\u093E \u091C\u092C\u0915\u093F \u0939\u092E \u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092E\u0947\u0902 "),Ft=a("code"),Qs=o("cased"),Vs=o(" \u092E\u0949\u0921\u0932 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930 \u0930\u0939\u0947 \u0939\u0948\u0902, \u091C\u094B \u092C\u0947\u0939\u0924\u0930 \u092A\u0930\u093F\u0923\u093E\u092E \u0915\u0940 \u0935\u094D\u092F\u093E\u0916\u094D\u092F\u093E \u0915\u0930\u0924\u093E \u0939\u0948\u0964"),Dr=p(),le=a("p"),Zs=o("\u0938\u092C \u0915\u0941\u091B \u090F\u0915 \u0938\u093E\u0925 \u0932\u092A\u0947\u091F\u0915\u0930, \u0939\u092E\u0947\u0902 \u0905\u092A\u0928\u093E "),Mt=a("code"),ea=o("compute_metrics()"),ta=o(" \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u092E\u093F\u0932\u0924\u093E \u0939\u0948:"),wr=p(),$(qe.$$.fragment),Or=p(),K=a("p"),ra=o("\u0914\u0930 \u0907\u0938\u0947 \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u090F\u092A\u0949\u0915 \u0915\u0947 \u0905\u0902\u0924 \u092E\u0947\u0902 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0915\u0940 \u0930\u093F\u092A\u094B\u0930\u094D\u091F \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0907\u0938\u0915\u0947 \u0909\u092A\u092F\u094B\u0917 \u0915\u0940 \u0915\u094D\u0930\u093F\u092F\u093E \u0915\u094B \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u092F\u0939\u093E\u0902 \u092C\u0924\u093E\u092F\u093E \u0917\u092F\u093E \u0939\u0948 \u0915\u093F \u0939\u092E \u0907\u0938 "),Lt=a("code"),oa=o("compute_metrics()"),sa=o(" \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u0947 \u0938\u093E\u0925 \u090F\u0915 \u0928\u092F\u093E "),It=a("code"),aa=o("Trainer"),la=o(" \u0915\u0948\u0938\u0947 \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902:"),Pr=p(),$(ze.$$.fragment),gr=p(),L=a("p"),ia=o("\u0927\u094D\u092F\u093E\u0928 \u0926\u0947\u0902 \u0915\u093F \u0939\u092E \u090F\u0915 \u0928\u092F\u093E "),Rt=a("code"),na=o("TrainingArguments"),ca=o(" \u0909\u0938\u0915\u0947 "),Nt=a("code"),pa=o("evaluation_strategy"),da=o(" \u091C\u093F\u0938\u0947 \u0938\u0947\u091F \u0915\u093F\u092F\u093E \u0939\u0948 "),Bt=a("code"),fa=o('"epoch"'),ma=o(" \u0914\u0930 \u090F\u0915 \u0928\u090F \u092E\u0949\u0921\u0932 \u0915\u0947 \u0938\u093E\u0925 \u092C\u0928\u093E\u0924\u0947 \u0939\u0948 \u2014 \u0905\u0928\u094D\u092F\u0925\u093E, \u0939\u092E \u0915\u0947\u0935\u0932 \u0909\u0938 \u092E\u0949\u0921\u0932 \u0915\u093E \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u091C\u093E\u0930\u0940 \u0930\u0916 \u0930\u0939\u0947 \u0939\u094B\u0924\u0947 \u091C\u093F\u0938\u0947 \u0939\u092E\u0928\u0947 \u092A\u0939\u0932\u0947 \u0939\u0940 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u0915\u093F\u092F\u093E \u0939\u0948\u0964 \u090F\u0915 \u0928\u092F\u093E \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0930\u0928 \u0936\u0941\u0930\u0942 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0939\u092E \u0928\u093F\u0937\u094D\u092A\u093E\u0926\u093F\u0924 \u092F\u093E\u0928\u093F \u090F\u0915\u094D\u0938\u0915\u094D\u092F\u0942\u091F \u0915\u0930\u0924\u0947 \u0939\u0948\u0902:"),jr=p(),$(Ae.$$.fragment),qr=p(),Me=a("p"),_a=o("\u0907\u0938 \u092C\u093E\u0930, \u092F\u0939 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0932\u0949\u0938 \u0914\u0930 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0915\u0940 \u0930\u093F\u092A\u094B\u0930\u094D\u091F \u0939\u0930 \u090F\u092A\u0949\u0915 \u0915\u0947 \u0905\u0902\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0932\u0949\u0938 \u0915\u0947 \u090A\u092A\u0930 \u0915\u0930\u0947\u0917\u093E\u0964 \u092B\u093F\u0930 \u0938\u0947, \u090F\u0915 \u0938\u091F\u0940\u0915 \u090F\u0915\u094D\u092F\u0942\u0930\u0947\u0938\u0940/F1 \u0938\u094D\u0915\u094B\u0930 \u091C\u093F\u0938\u092A\u0947 \u0939\u092E \u092A\u0939\u0941\u0902\u091A\u0947 \u0925\u094B\u095C\u093E \u0905\u0932\u0917 \u0939\u094B \u0938\u0915\u0924\u093E \u0939\u0948 \u0909\u0938\u0938\u0947 \u091C\u094B \u0939\u092E\u0928\u0947 \u092A\u093E\u092F\u093E, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092E\u0949\u0921\u0932 \u0915\u0947 \u0930\u0948\u0902\u0921\u092E \u0939\u0947\u0921 \u0907\u0928\u093F\u0936\u093F\u092F\u0932\u093E\u0907\u091C\u093C\u0947\u0936\u0928 \u0915\u0947 \u0915\u093E\u0930\u0923, \u0932\u0947\u0915\u093F\u0928 \u092F\u0939 \u0909\u0938\u0940 \u092C\u0949\u0932\u092A\u093E\u0930\u094D\u0915 \u092E\u0947\u0902 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F\u0964"),zr=p(),re=a("p"),Wt=a("code"),ua=o("Trainer"),$a=o(" \u0915\u0908 GPUs \u092F\u093E TPUs \u092A\u0930 \u092C\u093F\u0932\u0915\u0941\u0932 \u0939\u091F\u0915\u0930 \u0915\u093E\u092E \u0915\u0930\u0947\u0917\u093E \u0914\u0930 \u092C\u0939\u0941\u0924 \u0938\u093E\u0930\u0947 \u0935\u093F\u0915\u0932\u094D\u092A \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0924\u093E \u0939\u0948, \u091C\u0948\u0938\u0947 \u092E\u093F\u0936\u094D\u0930\u093F\u0924-\u0938\u091F\u0940\u0915 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 (\u0905\u092A\u0928\u0947 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0906\u0930\u094D\u0917\u0942\u092E\u0947\u0928\u094D\u091F \u092E\u0947\u0902 "),Ht=a("code"),Ea=o("fp16 = True"),ha=o(" \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902)\u0964 \u0939\u092E \u0905\u0927\u094D\u092F\u093E\u092F 10 \u092E\u0947\u0902 \u0907\u0938\u0915\u0947 \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u092E\u0930\u094D\u0925\u093F\u0924 \u0939\u0930 \u091A\u0940\u091C \u092A\u0930 \u0905\u0927\u094D\u092F\u092F\u0928 \u0915\u0930\u0947\u0902\u0917\u0947\u0964"),Ar=p(),Q=a("p"),va=o("\u092F\u0939 "),Yt=a("code"),ka=o("Trainer"),Ca=o(" API \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928\u093F\u0902\u0917 \u0915\u0947 \u092A\u0930\u093F\u091A\u092F \u0915\u094B \u0938\u092E\u093E\u092A\u094D\u0924 \u0915\u0930\u0924\u093E \u0939\u0948\u0964 \u0905\u0927\u093F\u0915\u093E\u0902\u0936 \u0938\u093E\u092E\u093E\u0928\u094D\u092F NLP \u0915\u093E\u0930\u094D\u092F\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F \u0910\u0938\u093E \u0915\u0930\u0928\u0947 \u0915\u093E \u090F\u0915 \u0909\u0926\u093E\u0939\u0930\u0923 "),Le=a("a"),ba=o("\u0905\u0927\u094D\u092F\u093E\u092F 7"),Ta=o(" \u092E\u0947\u0902 \u0926\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E,  \u0932\u0947\u0915\u093F\u0928 \u0905\u092D\u0940 \u0915\u0947 \u0932\u093F\u090F \u0906\u0907\u090F \u0926\u0947\u0916\u0947\u0902 \u0915\u093F \u0936\u0941\u0926\u094D\u0927 PyTorch \u092E\u0947\u0902 \u0935\u0939\u0940 \u0915\u093E\u092E \u0915\u0948\u0938\u0947 \u0915\u0930\u0947\u0902\u0964"),yr=p(),$(ie.$$.fragment),this.h()},l(e){const n=Rl('[data-svelte="svelte-1phssyn"]',document.head);f=l(n,"META",{name:!0,content:!0}),n.forEach(r),z=d(e),E(m.$$.fragment,e),A=d(e),T=l(e,"H1",{class:!0});var ye=i(T);u=l(ye,"A",{id:!0,class:!0,href:!0});var Jt=i(u);O=l(Jt,"SPAN",{});var Xt=i(O);E(y.$$.fragment,Xt),Xt.forEach(r),Jt.forEach(r),W=d(ye),ee=l(ye,"SPAN",{});var Da=i(ee);me=s(Da,"\u092E\u0949\u0921\u0932 \u0915\u093F Trainer API \u0915\u0947 \u0938\u093E\u0925"),Da.forEach(r),ye.forEach(r),H=d(e),E(b.$$.fragment,e),_e=d(e),E(Y.$$.fragment,e),ue=d(e),x=l(e,"P",{});var V=i(x);Fr=s(V,"\u{1F917} \u091F\u094D\u0930\u093E\u0928\u094D\u0938\u092B\u093C\u0949\u0930\u094D\u092E\u0930 \u090F\u0915 "),He=l(V,"CODE",{});var wa=i(He);Mr=s(wa,"\u091F\u094D\u0930\u0947\u0928\u0930"),wa.forEach(r),Lr=s(V," \u0915\u094D\u0932\u093E\u0938 \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0924\u093E \u0939\u0948 \u091C\u093F\u0938\u0938\u0947 \u0906\u092A\u0915\u094B \u0909\u092A\u0932\u092C\u094D\u0927 \u0915\u0930\u093E\u090F \u0917\u090F \u0915\u093F\u0938\u0940 \u092D\u0940 \u092A\u0942\u0930\u094D\u0935-\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u092E\u0949\u0921\u0932 \u0915\u094B \u0905\u092A\u0928\u0947 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930  \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u092E\u0926\u0926 \u092E\u093F\u0932\u0924\u0940 \u0939\u0948\u0964 \u090F\u0915 \u092C\u093E\u0930 \u091C\u092C \u0906\u092A \u0905\u0902\u0924\u093F\u092E \u0916\u0902\u0921 \u092E\u0947\u0902 \u0938\u092D\u0940 \u0921\u0947\u091F\u093E \u092A\u0942\u0930\u094D\u0935 \u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0930\u0923 \u0915\u093E\u0930\u094D\u092F \u0915\u0930 \u0932\u0947\u0924\u0947 \u0939\u0948\u0902, \u0924\u094B \u0906\u092A\u0915\u0947 \u092A\u093E\u0938 "),Ye=l(V,"CODE",{});var Oa=i(Ye);Ir=s(Oa,"\u091F\u094D\u0930\u0947\u0928\u0930"),Oa.forEach(r),Rr=s(V," \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092C\u0938 \u0915\u0941\u091B \u0939\u0940 \u091A\u0930\u0923 \u0936\u0947\u0937 \u0939\u0948\u0902\u0964 \u0938\u092C\u0938\u0947 \u0915\u0920\u093F\u0928 \u0939\u093F\u0938\u094D\u0938\u093E "),Je=l(V,"CODE",{});var Pa=i(Je);Nr=s(Pa,"Trainer.train()"),Pa.forEach(r),Br=s(V," \u0915\u094B \u091A\u0932\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0935\u093E\u0924\u093E\u0935\u0930\u0923 \u0915\u094B \u0924\u0948\u092F\u093E\u0930 \u0915\u0930\u0928\u0947 \u0915\u0940 \u0938\u0902\u092D\u093E\u0935\u0928\u093E \u0939\u0948, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092F\u0939 CPU \u092A\u0930 \u092C\u0939\u0941\u0924 \u0927\u0940\u092E\u0940 \u0917\u0924\u093F \u0938\u0947 \u091A\u0932\u0947\u0917\u093E\u0964 \u092F\u0926\u093F \u0906\u092A\u0915\u0947 \u092A\u093E\u0938 GPU \u0938\u0947\u091F \u0905\u092A \u0928\u0939\u0940\u0902 \u0939\u0948, \u0924\u094B \u0906\u092A "),$e=l(V,"A",{href:!0,rel:!0});var ga=i($e);Wr=s(ga,"Google Colab"),ga.forEach(r),Hr=s(V," \u092A\u0930 \u0928\u093F\u0903\u0936\u0941\u0932\u094D\u0915 GPUs \u092F\u093E TPUs \u0915\u093E \u090F\u0915\u094D\u0938\u0947\u0938 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964"),V.forEach(r),Qt=d(e),xe=l(e,"P",{});var ja=i(xe);Yr=s(ja,"\u0928\u0940\u091A\u0947 \u0926\u093F\u090F \u0917\u090F \u0915\u094B\u0921 \u0909\u0926\u093E\u0939\u0930\u0923 \u092E\u093E\u0928\u0924\u0947 \u0939\u0948\u0902 \u0915\u093F \u0906\u092A\u0928\u0947 \u092A\u093F\u091B\u0932\u0947 \u0916\u0902\u0921 \u092E\u0947\u0902 \u0909\u0926\u093E\u0939\u0930\u0923\u094B\u0902 \u0915\u094B \u092A\u0939\u0932\u0947 \u0939\u0940 \u0928\u093F\u0937\u094D\u092A\u093E\u0926\u093F\u0924 \u0915\u0930 \u0926\u093F\u092F\u093E \u0939\u0948\u0964 \u092F\u0939\u093E\u0902 \u090F\u0915 \u0938\u0902\u0915\u094D\u0937\u093F\u092A\u094D\u0924 \u0938\u093E\u0930\u093E\u0902\u0936 \u0926\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948 \u091C\u093F\u0938\u0915\u0940 \u0906\u092A\u0915\u094B \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0939\u0948:"),ja.forEach(r),Vt=d(e),E(Ee.$$.fragment,e),Zt=d(e),he=l(e,"H3",{id:!0});var qa=i(he);Jr=s(qa,"\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923"),qa.forEach(r),er=d(e),G=l(e,"P",{});var ne=i(G);Xr=s(ne,"\u0939\u092E\u093E\u0930\u0947 "),Xe=l(ne,"CODE",{});var za=i(Xe);Kr=s(za,"\u091F\u094D\u0930\u0947\u0928\u0930"),za.forEach(r),Qr=s(ne," \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u0947 \u0938\u0947 \u092A\u0939\u0932\u0947 \u092A\u0939\u0932\u093E \u0915\u0926\u092E \u0939\u0948 \u090F\u0915 "),Ke=l(ne,"CODE",{});var Aa=i(Ke);Vr=s(Aa,"TrainingArguments"),Aa.forEach(r),Zr=s(ne," \u0915\u094D\u0932\u093E\u0938  \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u093E \u091C\u093F\u0938\u092E\u0947\u0902 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0914\u0930 \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0947 \u0932\u093F\u090F "),Qe=l(ne,"CODE",{});var ya=i(Qe);eo=s(ya,"\u091F\u094D\u0930\u0947\u0928\u0930"),ya.forEach(r),to=s(ne," \u0926\u094D\u0935\u093E\u0930\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u090F \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u0947 \u0938\u092D\u0940 \u0939\u093E\u0907\u092A\u0930\u092A\u0948\u0930\u093E\u092E\u0940\u091F\u0930 \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0902\u0917\u0947\u0964 \u090F\u0915\u092E\u093E\u0924\u094D\u0930 \u0906\u0930\u094D\u0917\u0942\u092E\u0947\u0928\u094D\u091F \u091C\u094B \u0906\u092A\u0915\u094B \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0928\u093E \u0939\u0948 \u0935\u0939 \u0939\u0948 \u090F\u0915 \u0928\u093F\u0930\u094D\u0926\u0947\u0936\u093F\u0915\u093E \u091C\u0939\u093E\u0902 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u092E\u0949\u0921\u0932 \u0938\u0939\u0947\u091C\u093E \u091C\u093E\u090F\u0917\u093E, \u0938\u093E\u0925 \u0939\u0940 \u0938\u093E\u0925 \u091A\u094C\u0915\u093F\u092F\u094B\u0902 \u0915\u094B \u092D\u0940\u0964 \u092C\u093E\u0915\u0940 \u0938\u092D\u0940 \u0915\u0947 \u0932\u093F\u090F, \u0906\u092A \u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F \u0930\u0942\u092A \u092E\u0947\u0902 \u091B\u094B\u0921\u093C \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u091C\u094B \u090F\u0915 \u092C\u0941\u0928\u093F\u092F\u093E\u0926\u0940 \u092B\u093C\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928\u093F\u0902\u0917 \u0915\u0947 \u0932\u093F\u090F \u092C\u0939\u0941\u0924 \u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947 \u0915\u093E\u092E \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u093F\u090F\u0964"),ne.forEach(r),tr=d(e),E(ve.$$.fragment,e),rr=d(e),E(oe.$$.fragment,e),or=d(e),J=l(e,"P",{});var Ie=i(J);ro=s(Ie,"\u0926\u0942\u0938\u0930\u093E \u0915\u0926\u092E \u0939\u092E\u093E\u0930\u0947 \u092E\u0949\u0921\u0932 \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u093E \u0939\u0948\u0964 "),Se=l(Ie,"A",{href:!0});var xa=i(Se);oo=s(xa,"\u092A\u093F\u091B\u0932\u0947 \u0905\u0927\u094D\u092F\u093E\u092F"),xa.forEach(r),so=s(Ie," \u0915\u0940 \u0924\u0930\u0939, \u0939\u092E "),Ve=l(Ie,"CODE",{});var Sa=i(Ve);ao=s(Sa,"AutoModelForSequenceClassification"),Sa.forEach(r),lo=s(Ie," \u0935\u0930\u094D\u0917 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902\u0917\u0947, \u0926\u094B \u0932\u0947\u092C\u0932 \u0915\u0947 \u0938\u093E\u0925 :"),Ie.forEach(r),sr=d(e),E(ke.$$.fragment,e),ar=d(e),se=l(e,"P",{});var Sr=i(se);io=s(Sr,"\u0906\u092A \u0926\u0947\u0916\u0947\u0902\u0917\u0947 \u0915\u093F "),Ue=l(Sr,"A",{href:!0});var Ua=i(Ue);no=s(Ua,"\u0905\u0927\u094D\u092F\u093E\u092F 2"),Ua.forEach(r),co=s(Sr," \u0915\u0947 \u0935\u093F\u092A\u0930\u0940\u0924, \u0906\u092A\u0915\u094B \u0907\u0938 \u092A\u0942\u0930\u094D\u0935-\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u092E\u0949\u0921\u0932 \u0915\u094B \u0907\u0928\u094D\u0938\u094D\u091F\u0948\u0928\u094D\u0936\u0940\u0910\u091F \u0915\u0930\u0928\u0947 \u0915\u0947 \u092C\u093E\u0926 \u090F\u0915 \u091A\u0947\u0924\u093E\u0935\u0928\u0940 \u092E\u093F\u0932\u0924\u0940 \u0939\u0948\u0964 \u0910\u0938\u093E \u0907\u0938\u0932\u093F\u090F \u0939\u0948 \u0915\u094D\u092F\u094B\u0902\u0915\u093F BERT \u0915\u094B \u0935\u093E\u0915\u094D\u092F\u094B\u0902 \u0915\u0947 \u091C\u094B\u0921\u093C\u0947 \u0915\u093E \u0935\u0930\u094D\u0917\u0940\u0915\u0930\u0923 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u0942\u0930\u094D\u0935 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0907\u0938\u0932\u093F\u090F \u092A\u0942\u0930\u094D\u0935-\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u092E\u0949\u0921\u0932 \u0915\u0947 \u092A\u094D\u0930\u092E\u0941\u0916 \u0915\u094B \u0924\u094D\u092F\u093E\u0917 \u0926\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948 \u0914\u0930 \u0907\u0938\u0915\u0947 \u092C\u091C\u093E\u092F\u0947 \u0905\u0928\u0941\u0915\u094D\u0930\u092E \u0935\u0930\u094D\u0917\u0940\u0915\u0930\u0923 \u0915\u0947 \u0932\u093F\u090F \u0909\u092A\u092F\u0941\u0915\u094D\u0924 \u090F\u0915 \u0928\u092F\u093E \u092A\u094D\u0930\u092E\u0941\u0916 \u0921\u093E\u0932\u093E \u0917\u092F\u093E \u0939\u0948\u0964 \u0907\u0928 \u091A\u0947\u0924\u093E\u0935\u0928\u093F\u092F\u094B\u0902 \u0938\u0947 \u0938\u0902\u0915\u0947\u0924 \u092E\u093F\u0932\u0924\u093E \u0939\u0948 \u0915\u093F \u0915\u0941\u091B \u0935\u091C\u093C\u0928 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0925\u093E (\u0924\u094D\u092F\u093E\u0917\u0947 \u0917\u090F \u092A\u0942\u0930\u094D\u0935-\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0915\u0947 \u092A\u094D\u0930\u092E\u0941\u0916 \u0915\u0947 \u0905\u0928\u0941\u0930\u0942\u092A) \u0914\u0930 \u0915\u0941\u091B \u0905\u0928\u094D\u092F \u0915\u094D\u0930\u092E\u0930\u0939\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 \u092A\u094D\u0930\u093E\u0930\u0902\u092D \u0915\u093F\u090F \u0917\u090F \u0925\u0947 (\u0928\u090F \u092A\u094D\u0930\u092E\u0941\u0916 \u0915\u0947 \u0932\u093F\u090F \u0935\u093E\u0932\u0947)\u0964 \u092F\u0939 \u0938\u092E\u093E\u092A\u0928 \u0906\u092A\u0915\u094B \u092E\u0949\u0921\u0932 \u0915\u094B \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u094B\u0924\u094D\u0938\u093E\u0939\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0938\u093E\u0925 \u0939\u094B\u0917\u093E, \u091C\u094B \u0915\u093F \u0905\u092C \u0939\u092E \u0915\u0930\u0928\u0947 \u091C\u093E \u0930\u0939\u0947 \u0939\u0948\u0902\u0964"),Sr.forEach(r),lr=d(e),P=l(e,"P",{});var I=i(P);po=s(I,"\u090F\u0915 \u092C\u093E\u0930 \u091C\u092C \u0939\u092E\u093E\u0930\u0947 \u092A\u093E\u0938 \u0939\u092E\u093E\u0930\u093E \u092E\u0949\u0921\u0932 \u0939\u094B\u0917\u093E, \u0924\u094B \u0939\u092E \u090F\u0915 "),Ze=l(I,"CODE",{});var Ga=i(Ze);fo=s(Ga,"Trainer"),Ga.forEach(r),mo=s(I," \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0905\u092C \u0924\u0915 \u0915\u0940 \u0928\u093F\u0930\u094D\u092E\u093F\u0924 \u0938\u092D\u0940 \u0935\u0938\u094D\u0924\u0941\u0913\u0902 \u0915\u094B \u092A\u093E\u0938 \u0915\u0930\u0915\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948 \u2014 "),et=l(I,"CODE",{});var Fa=i(et);_o=s(Fa,"model"),Fa.forEach(r),uo=s(I,", "),tt=l(I,"CODE",{});var Ma=i(tt);$o=s(Ma,"training_args"),Ma.forEach(r),Eo=s(I,", \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0914\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0921\u0947\u091F\u093E\u0938\u0947\u091F, \u0939\u092E\u093E\u0930\u0947 "),rt=l(I,"CODE",{});var La=i(rt);ho=s(La,"data_collator"),La.forEach(r),vo=s(I,", \u0914\u0930 \u0939\u092E\u093E\u0930\u0947 "),ot=l(I,"CODE",{});var Ia=i(ot);ko=s(Ia,"tokenizer"),Ia.forEach(r),Co=s(I,":"),I.forEach(r),ir=d(e),E(Ce.$$.fragment,e),nr=d(e),g=l(e,"P",{});var R=i(g);bo=s(R,"\u0927\u094D\u092F\u093E\u0928 \u0926\u0947\u0902 \u0915\u093F \u091C\u092C \u0906\u092A "),st=l(R,"CODE",{});var Ra=i(st);To=s(Ra,"tokenizer"),Ra.forEach(r),Do=s(R," \u092A\u093E\u0938 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902 \u091C\u0948\u0938\u093E \u0915\u093F \u0939\u092E\u0928\u0947 \u092F\u0939\u093E\u0902 \u0915\u093F\u092F\u093E \u0925\u093E, \u0924\u094B "),at=l(R,"CODE",{});var Na=i(at);wo=s(Na,"Trainer"),Na.forEach(r),Oo=s(R," \u0926\u094D\u0935\u093E\u0930\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u093E \u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F "),lt=l(R,"CODE",{});var Ba=i(lt);Po=s(Ba,"data_colllator"),Ba.forEach(r),go=s(R," \u090F\u0915 "),it=l(R,"CODE",{});var Wa=i(it);jo=s(Wa,"DataCollatorWithPadding"),Wa.forEach(r),qo=s(R," \u0939\u094B\u0917\u093E \u091C\u0948\u0938\u093E \u0915\u093F \u092A\u0939\u0932\u0947 \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0925\u093E, \u0907\u0938\u0932\u093F\u090F \u0906\u092A \u0907\u0938 \u0915\u0949\u0932 \u092E\u0947\u0902 "),nt=l(R,"CODE",{});var Ha=i(nt);zo=s(Ha,"data_collator=data_collator"),Ha.forEach(r),Ao=s(R," \u0932\u093E\u0907\u0928 \u0915\u094B \u091B\u094B\u0921\u093C \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u0906\u092A\u0915\u094B \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u093F\u0902\u0917 \u0915\u0947 \u0907\u0938 \u092D\u093E\u0917 \u0915\u094B \u0916\u0902\u0921 2 \u092E\u0947\u0902 \u0926\u093F\u0916\u093E\u0928\u093E \u092B\u093F\u0930 \u092D\u0940 \u092E\u0939\u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923 \u0925\u093E!"),R.forEach(r),cr=d(e),X=l(e,"P",{});var Re=i(X);yo=s(Re,"\u092E\u0949\u0921\u0932 \u0915\u094B \u0939\u092E\u093E\u0930\u0947 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930 \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0939\u092E\u0947\u0902 \u092C\u0938 \u0905\u092A\u0928\u0947 "),ct=l(Re,"CODE",{});var Ya=i(ct);xo=s(Ya,"Trainer"),Ya.forEach(r),So=s(Re," \u0915\u0947 "),pt=l(Re,"CODE",{});var Ja=i(pt);Uo=s(Ja,"train()"),Ja.forEach(r),Go=s(Re," \u0935\u093F\u0927\u093F \u0915\u094B \u0915\u0949\u0932 \u0915\u0930\u0928\u093E \u0939\u094B\u0917\u093E:"),Re.forEach(r),pr=d(e),E(be.$$.fragment,e),dr=d(e),Ge=l(e,"P",{});var Xa=i(Ge);Fo=s(Xa,"\u092F\u0939 \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928\u093F\u0902\u0917 \u0915\u094B \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0917\u093E (\u091C\u093F\u0938\u092E\u0947\u0902 GPU \u092A\u0930 \u0915\u0941\u091B \u092E\u093F\u0928\u091F \u0932\u0917\u0928\u0947 \u091A\u093E\u0939\u093F\u090F) \u0914\u0930 \u0939\u0930 500 \u0915\u0926\u092E \u092A\u0930 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0932\u0949\u0938 \u0915\u0940 \u0930\u093F\u092A\u094B\u0930\u094D\u091F \u0915\u0930\u0947\u0917\u093E \u0964 \u0939\u093E\u0932\u093E\u0902\u0915\u093F, \u092F\u0939 \u0906\u092A\u0915\u094B \u092F\u0939 \u0928\u0939\u0940\u0902 \u092C\u0924\u093E\u090F\u0917\u093E \u0915\u093F \u0906\u092A\u0915\u093E \u092E\u0949\u0921\u0932 \u0915\u093F\u0924\u0928\u093E \u0905\u091A\u094D\u091B\u093E (\u092F\u093E \u0916\u0930\u093E\u092C) \u092A\u094D\u0930\u0926\u0930\u094D\u0936\u0928 \u0915\u0930 \u0930\u0939\u093E \u0939\u0948\u0964 \u092F\u0939 \u0939\u0948 \u0915\u094D\u092F\u094B\u0902\u0915\u093F:"),Xa.forEach(r),fr=d(e),ae=l(e,"OL",{});var Ur=i(ae);q=l(Ur,"LI",{});var N=i(q);Mo=s(N,"\u0939\u092E\u0928\u0947 "),dt=l(N,"CODE",{});var Ka=i(dt);Lo=s(Ka,"Trainer"),Ka.forEach(r),Io=s(N," \u0915\u094B \u0928\u0939\u0940\u0902 \u092C\u0924\u093E\u092F\u093E \u0915\u0940 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F  "),ft=l(N,"CODE",{});var Qa=i(ft);Ro=s(Qa,"evaluation_strategy"),Qa.forEach(r),No=s(N," \u0915\u094B \u092F\u093E \u0924\u094B "),mt=l(N,"CODE",{});var Va=i(mt);Bo=s(Va,'"steps"'),Va.forEach(r),Wo=s(N,"(\u0939\u0930 "),_t=l(N,"CODE",{});var Za=i(_t);Ho=s(Za,"eval_steps"),Za.forEach(r),Yo=s(N," \u0915\u093E \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0930\u0947\u0902) \u092F\u093E "),ut=l(N,"CODE",{});var el=i(ut);Jo=s(el,'"epoch"'),el.forEach(r),Xo=s(N," (\u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u090F\u092A\u0949\u0915 \u0915\u0947 \u0905\u0902\u0924 \u092E\u0947\u0902 \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928) \u0915\u094B \u0938\u0947\u091F \u0915\u0930\u0947\u0964"),N.forEach(r),Ko=d(Ur),te=l(Ur,"LI",{});var Ne=i(te);Qo=s(Ne,"\u0939\u092E\u0928\u0947 "),$t=l(Ne,"CODE",{});var tl=i($t);Vo=s(tl,"Trainer"),tl.forEach(r),Zo=s(Ne," \u0915\u094B "),Et=l(Ne,"CODE",{});var rl=i(Et);es=s(rl,"compute_metrics()"),rl.forEach(r),ts=s(Ne," \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u0947 \u0938\u093E\u0925 \u092A\u094D\u0930\u0926\u093E\u0928 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u094B \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u092E\u0940\u091F\u094D\u0930\u093F\u0915 \u0915\u0940 \u0917\u0923\u0928\u093E \u0915\u0930\u0924\u093E \u0939\u0948 (\u0905\u0928\u094D\u092F\u0925\u093E \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0928\u0947 \u0915\u0947\u0935\u0932 \u0932\u0949\u0938 \u0915\u094B \u092E\u0941\u0926\u094D\u0930\u093F\u0924 \u0915\u093F\u092F\u093E \u0939\u094B\u0917\u093E, \u091C\u094B \u092C\u0939\u0941\u0924 \u0938\u0939\u091C \u0938\u0902\u0916\u094D\u092F\u093E \u0928\u0939\u0940\u0902 \u0939\u0948)"),Ne.forEach(r),Ur.forEach(r),mr=d(e),Te=l(e,"H3",{id:!0});var ol=i(Te);rs=s(ol,"\u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928"),ol.forEach(r),_r=d(e),j=l(e,"P",{});var B=i(j);os=s(B,"\u0906\u0907\u090F \u0926\u0947\u0916\u0947\u0902 \u0915\u093F \u0939\u092E \u090F\u0915 \u0909\u092A\u092F\u094B\u0917\u0940 "),ht=l(B,"CODE",{});var sl=i(ht);ss=s(sl,"compute_metrics()"),sl.forEach(r),as=s(B," \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u0948\u0938\u0947 \u092C\u0928\u093E \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930 \u0905\u0917\u0932\u0940 \u092C\u093E\u0930 \u091C\u092C \u0939\u092E \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0915\u0930\u0947\u0902\u0917\u0947 \u0924\u094B \u0907\u0938\u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0948\u0938\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u094B \u090F\u0915 "),vt=l(B,"CODE",{});var al=i(vt);ls=s(al,"EvalPrediction"),al.forEach(r),is=s(B," \u0911\u092C\u094D\u091C\u0947\u0915\u094D\u091F \u0932\u0947\u0928\u093E \u0939\u094B\u0917\u093E (\u091C\u094B \u090F\u0915 "),kt=l(B,"CODE",{});var ll=i(kt);ns=s(ll,"predictions"),ll.forEach(r),cs=s(B," \u092B\u093C\u0940\u0932\u094D\u0921 \u0914\u0930 \u090F\u0915 "),Ct=l(B,"CODE",{});var il=i(Ct);ps=s(il,"label_ids"),il.forEach(r),ds=s(B," \u092B\u093C\u0940\u0932\u094D\u0921 \u0915\u0947 \u0938\u093E\u0925 \u090F\u0915 \u0928\u093E\u092E\u093F\u0924 \u091F\u092A\u0932 \u0939\u0948) \u0914\u0930 \u0932\u094C\u091F\u093E\u090F\u0917\u093E \u090F\u0915 \u0921\u093F\u0915\u094D\u0936\u0928\u0930\u0940 \u091C\u094B \u092E\u0948\u092A \u0915\u0930\u0947\u0917\u093E \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917\u094D\u0938 \u0915\u094B \u092B\u093C\u094D\u0932\u094B\u091F \u092E\u0947\u0902 (\u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917\u094D\u0938 \u0932\u094C\u091F\u093E\u090F \u0917\u090F \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0915\u0947 \u0928\u093E\u092E \u0939\u0948\u0902, \u0914\u0930 \u092B\u093C\u094D\u0932\u094B\u091F \u0909\u0928\u0915\u0940 \u0935\u0948\u0932\u094D\u092F\u0942\u091C)\u0964 \u0939\u092E\u093E\u0930\u0947 \u092E\u0949\u0921\u0932 \u0938\u0947 \u0915\u0941\u091B \u092A\u094D\u0930\u093F\u0921\u093F\u0915\u094D\u0936\u0928\u094D\u0938 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0939\u092E "),bt=l(B,"CODE",{});var nl=i(bt);fs=s(nl,"Trainer.predict()"),nl.forEach(r),ms=s(B," \u0915\u092E\u093E\u0902\u0921 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902:"),B.forEach(r),ur=d(e),E(De.$$.fragment,e),$r=d(e),E(we.$$.fragment,e),Er=d(e),_=l(e,"P",{});var D=i(_);Tt=l(D,"CODE",{});var cl=i(Tt);_s=s(cl,"predict()"),cl.forEach(r),us=s(D," \u0935\u093F\u0927\u093F \u0915\u093E \u0906\u0909\u091F\u092A\u0941\u091F \u0928\u093E\u092E\u093F\u0924 \u091F\u092A\u0932 \u0939\u0948 \u0924\u0940\u0928 \u0915\u094D\u0937\u0947\u0924\u094D\u0930\u094B\u0902 \u0915\u0947 \u0938\u093E\u0925 : "),Dt=l(D,"CODE",{});var pl=i(Dt);$s=s(pl,"predictions"),pl.forEach(r),Es=s(D,", "),wt=l(D,"CODE",{});var dl=i(wt);hs=s(dl,"label_ids"),dl.forEach(r),vs=s(D,", \u0914\u0930 "),Ot=l(D,"CODE",{});var fl=i(Ot);ks=s(fl,"metrics"),fl.forEach(r),Cs=s(D,"\u0964 "),Pt=l(D,"CODE",{});var ml=i(Pt);bs=s(ml,"metrics"),ml.forEach(r),Ts=s(D," \u092B\u093C\u0940\u0932\u094D\u0921 \u092E\u0947\u0902 \u0915\u0947\u0935\u0932 \u092A\u093E\u0938 \u0915\u093F\u090F \u0917\u090F \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930 \u0939\u094B\u0928\u0947 \u0935\u093E\u0932\u093E \u0932\u0949\u0938 \u0939\u094B\u0917\u093E, \u0938\u093E\u0925 \u0939\u0940 \u0938\u093E\u0925 \u0915\u0941\u091B \u0938\u092E\u092F \u092E\u0940\u091F\u094D\u0930\u093F\u0915 (\u0915\u0941\u0932 \u0914\u0930 \u0914\u0938\u0924 \u0930\u0942\u092A \u0938\u0947 \u092A\u094D\u0930\u093F\u0921\u093F\u0915\u094D\u091F \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0915\u093F\u0924\u0928\u093E \u0938\u092E\u092F \u0932\u0917\u093E) \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0902\u0917\u0947\u0964 \u090F\u0915 \u092C\u093E\u0930 \u091C\u092C \u0939\u092E \u0905\u092A\u0928\u093E "),gt=l(D,"CODE",{});var _l=i(gt);Ds=s(_l,"compute_metrics()"),_l.forEach(r),ws=s(D," \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u092A\u0942\u0930\u093E \u0915\u0930 \u0932\u0947\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930 \u0907\u0938\u0947 "),jt=l(D,"CODE",{});var ul=i(jt);Os=s(ul,"\u091F\u094D\u0930\u0947\u0928\u0930"),ul.forEach(r),Ps=s(D," \u0915\u094B \u092A\u093E\u0938 \u0915\u0930 \u0926\u0947\u0924\u0947 \u0939\u0948\u0902, \u0924\u094B \u0909\u0938 \u092B\u093C\u0940\u0932\u094D\u0921 \u092E\u0947\u0902 "),qt=l(D,"CODE",{});var $l=i(qt);gs=s($l,"compute_metrics()"),$l.forEach(r),js=s(D," \u0926\u094D\u0935\u093E\u0930\u093E \u0932\u094C\u091F\u093E\u090F \u0917\u090F \u092E\u0940\u091F\u094D\u0930\u093F\u0915 \u092D\u0940 \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0902\u0917\u0947\u0964"),D.forEach(r),hr=d(e),F=l(e,"P",{});var ce=i(F);qs=s(ce,"\u091C\u0948\u0938\u093E \u0915\u093F \u0906\u092A \u0926\u0947\u0916 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, "),zt=l(ce,"CODE",{});var El=i(zt);zs=s(El,"predictions"),El.forEach(r),As=s(ce," \u090F\u0915 2-\u0921\u093F\u092E\u0947\u0928\u094D\u0936\u0928\u0932 \u0938\u0930\u0923\u0940 \u0939\u0948 \u091C\u093F\u0938\u0915\u093E \u0906\u0915\u093E\u0930 408 x 2 (408 \u0939\u092E\u093E\u0930\u0947 \u0926\u094D\u0935\u093E\u0930\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u090F \u0917\u090F \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092E\u0947\u0902 \u0924\u0924\u094D\u0935\u094B\u0902 \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E \u0939\u0948)\u0964 \u0935\u0947 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u0915\u0947 \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0924\u0924\u094D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u091F \u0939\u0948\u0902 \u091C\u093F\u0928\u094D\u0939\u0947\u0902 \u0939\u092E\u0928\u0947 "),At=l(ce,"CODE",{});var hl=i(At);ys=s(hl,"predict()"),hl.forEach(r),xs=s(ce," \u092E\u0947\u0902 \u092A\u093E\u0938 \u0915\u093F\u092F\u093E \u0939\u0948 (\u091C\u0948\u0938\u093E \u0915\u093F \u0906\u092A\u0928\u0947 "),Fe=l(ce,"A",{href:!0});var vl=i(Fe);Ss=s(vl,"\u092A\u093F\u091B\u0932\u0947 \u0905\u0927\u094D\u092F\u093E\u092F"),vl.forEach(r),Us=s(ce," \u092E\u0947\u0902 \u0926\u0947\u0916\u093E \u0925\u093E, \u0938\u092D\u0940 \u091F\u094D\u0930\u093E\u0902\u0938\u092B\u0949\u0930\u094D\u092E\u0930 \u092E\u0949\u0921\u0932 \u0932\u0949\u0917\u093F\u091F \u0932\u094C\u091F\u093E\u0924\u0947 \u0939\u0948\u0902)\u0964 \u0909\u0928\u094D\u0939\u0947\u0902 \u092D\u0935\u093F\u0937\u094D\u092F\u0935\u093E\u0923\u093F\u092F\u094B\u0902 \u092F\u093E\u0928\u093F \u092A\u094D\u0930\u093F\u0921\u093F\u0915\u094D\u0936\u0928\u094D\u0938 \u092E\u0947\u0902 \u092C\u0926\u0932\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u091C\u093F\u0928\u094D\u0939\u0947\u0902 \u0939\u092E \u0905\u092A\u0928\u0947 \u0932\u0947\u092C\u0932 \u0938\u0947 \u0924\u0941\u0932\u0928\u093E \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u0939\u092E\u0947\u0902 \u0926\u0942\u0938\u0930\u0940 \u090F\u0915\u094D\u0938\u093F\u0938 \u092A\u0930 \u0905\u0927\u093F\u0915\u0924\u092E \u092E\u0942\u0932\u094D\u092F \u0915\u0947 \u0938\u093E\u0925 \u0907\u0928\u094D\u0921\u0947\u0915\u094D\u0938 \u0932\u0947\u0928\u0947 \u0915\u0940 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0939\u0948:"),ce.forEach(r),vr=d(e),E(Oe.$$.fragment,e),kr=d(e),S=l(e,"P",{});var Z=i(S);Gs=s(Z,"\u0905\u092C \u0939\u092E \u0909\u0928 "),yt=l(Z,"CODE",{});var kl=i(yt);Fs=s(kl,"preds"),kl.forEach(r),Ms=s(Z," \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u0932\u0947\u092C\u0932 \u0938\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u0939\u092E\u093E\u0930\u0947 "),xt=l(Z,"CODE",{});var Cl=i(xt);Ls=s(Cl,"compute_metric()"),Cl.forEach(r),Is=s(Z," \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u094B \u092C\u0928\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0939\u092E \u{1F917} \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u0932\u093E\u0907\u092C\u094D\u0930\u0947\u0930\u0940 \u0915\u0947 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u092A\u0930 \u0928\u093F\u0930\u094D\u092D\u0930 \u0939\u0948\u0964 \u0939\u092E MRPC \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u0938\u0947 \u091C\u0941\u0921\u093C\u0947 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0915\u094B \u0909\u0924\u0928\u0940 \u0939\u0940 \u0906\u0938\u093E\u0928\u0940 \u0938\u0947 \u0932\u094B\u0921 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u091C\u093F\u0924\u0928\u0940 \u0906\u0938\u093E\u0928\u0940 \u0938\u0947 \u0939\u092E\u0928\u0947 \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u0932\u094B\u0921 \u0915\u093F\u092F\u093E, \u0907\u0938 \u092C\u093E\u0930 "),St=l(Z,"CODE",{});var bl=i(St);Rs=s(bl,"load_metric()"),bl.forEach(r),Ns=s(Z," \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u0947 \u0938\u093E\u0925\u0964 \u0907\u0938\u0928\u0947 \u090F\u0915 \u0935\u0938\u094D\u0924\u0941 \u0932\u094C\u091F\u093E\u092F\u093E \u091C\u093F\u0938\u092E\u0947 \u090F\u0915 "),Ut=l(Z,"CODE",{});var Tl=i(Ut);Bs=s(Tl,"compute()"),Tl.forEach(r),Ws=s(Z," \u0935\u093F\u0927\u093F \u0939\u0948 \u091C\u093F\u0938\u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0939\u092E \u092E\u0940\u091F\u094D\u0930\u093F\u0915 \u0917\u0923\u0928\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902:"),Z.forEach(r),Cr=d(e),E(Pe.$$.fragment,e),br=d(e),E(ge.$$.fragment,e),Tr=d(e),M=l(e,"P",{});var pe=i(M);Hs=s(pe,"\u0906\u092A\u0915\u094B \u092E\u093F\u0932\u0928\u0947 \u0935\u093E\u0932\u0947 \u0938\u091F\u0940\u0915 \u092A\u0930\u093F\u0923\u093E\u092E \u0905\u0932\u0917-\u0905\u0932\u0917 \u0939\u094B \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092E\u0949\u0921\u0932 \u0939\u0947\u0921 \u0915\u0947 \u0915\u094D\u0930\u092E\u0930\u0939\u093F\u0924 \u0907\u0928\u093F\u0936\u093F\u092F\u0932\u093E\u0907\u091C\u093C\u0947\u0936\u0928 \u0938\u0947 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u092E\u0947\u0902 \u092C\u0926\u0932\u093E\u0935 \u0939\u094B \u0938\u0915\u0924\u093E \u0939\u0948\u0964 \u092F\u0939\u093E\u0902, \u0939\u092E \u0926\u0947\u0916 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u0915\u093F \u0939\u092E\u093E\u0930\u0947 \u092E\u0949\u0921\u0932 \u0915\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0938\u0947\u091F \u092A\u0930 85.78% \u0915\u0940 \u0938\u091F\u0940\u0915\u0924\u093E \u0939\u0948 \u0914\u0930 89.97 \u0915\u093E F1 \u0938\u094D\u0915\u094B\u0930 \u0939\u0948\u0964 \u0935\u0947 \u0926\u094B  \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0939\u0948\u0902 \u091C\u093F\u0928\u0915\u093E \u0909\u092A\u092F\u094B\u0917 GLUE \u092C\u0947\u0902\u091A\u092E\u093E\u0930\u094D\u0915 \u0915\u0947 \u0932\u093F\u090F MRPC \u0921\u0947\u091F\u093E\u0938\u0947\u091F \u092A\u0930 \u092A\u0930\u093F\u0923\u093E\u092E\u094B\u0902 \u0915\u093E \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u093F\u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948\u0964 "),je=l(pe,"A",{href:!0,rel:!0});var Dl=i(je);Ys=s(Dl,"BERT \u092A\u0947\u092A\u0930"),Dl.forEach(r),Js=s(pe," \u092E\u0947\u0902 \u091F\u0947\u092C\u0932 \u0928\u0947 \u092C\u0947\u0938 \u092E\u0949\u0921\u0932 \u0915\u0947 \u0932\u093F\u090F F1 \u0938\u094D\u0915\u094B\u0930 88.9 \u092C\u0924\u093E\u092F\u093E\u0964 \u0935\u0939 \u090F\u0915 "),Gt=l(pe,"CODE",{});var wl=i(Gt);Xs=s(wl,"uncased"),wl.forEach(r),Ks=s(pe," \u092E\u0949\u0921\u0932 \u0925\u093E \u091C\u092C\u0915\u093F \u0939\u092E \u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u092E\u0947\u0902 "),Ft=l(pe,"CODE",{});var Ol=i(Ft);Qs=s(Ol,"cased"),Ol.forEach(r),Vs=s(pe," \u092E\u0949\u0921\u0932 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930 \u0930\u0939\u0947 \u0939\u0948\u0902, \u091C\u094B \u092C\u0947\u0939\u0924\u0930 \u092A\u0930\u093F\u0923\u093E\u092E \u0915\u0940 \u0935\u094D\u092F\u093E\u0916\u094D\u092F\u093E \u0915\u0930\u0924\u093E \u0939\u0948\u0964"),pe.forEach(r),Dr=d(e),le=l(e,"P",{});var Gr=i(le);Zs=s(Gr,"\u0938\u092C \u0915\u0941\u091B \u090F\u0915 \u0938\u093E\u0925 \u0932\u092A\u0947\u091F\u0915\u0930, \u0939\u092E\u0947\u0902 \u0905\u092A\u0928\u093E "),Mt=l(Gr,"CODE",{});var Pl=i(Mt);ea=s(Pl,"compute_metrics()"),Pl.forEach(r),ta=s(Gr," \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u092E\u093F\u0932\u0924\u093E \u0939\u0948:"),Gr.forEach(r),wr=d(e),E(qe.$$.fragment,e),Or=d(e),K=l(e,"P",{});var Be=i(K);ra=s(Be,"\u0914\u0930 \u0907\u0938\u0947 \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u090F\u092A\u0949\u0915 \u0915\u0947 \u0905\u0902\u0924 \u092E\u0947\u0902 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0915\u0940 \u0930\u093F\u092A\u094B\u0930\u094D\u091F \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0907\u0938\u0915\u0947 \u0909\u092A\u092F\u094B\u0917 \u0915\u0940 \u0915\u094D\u0930\u093F\u092F\u093E \u0915\u094B \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u092F\u0939\u093E\u0902 \u092C\u0924\u093E\u092F\u093E \u0917\u092F\u093E \u0939\u0948 \u0915\u093F \u0939\u092E \u0907\u0938 "),Lt=l(Be,"CODE",{});var gl=i(Lt);oa=s(gl,"compute_metrics()"),gl.forEach(r),sa=s(Be," \u092B\u093C\u0902\u0915\u094D\u0936\u0928 \u0915\u0947 \u0938\u093E\u0925 \u090F\u0915 \u0928\u092F\u093E "),It=l(Be,"CODE",{});var jl=i(It);aa=s(jl,"Trainer"),jl.forEach(r),la=s(Be," \u0915\u0948\u0938\u0947 \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902:"),Be.forEach(r),Pr=d(e),E(ze.$$.fragment,e),gr=d(e),L=l(e,"P",{});var de=i(L);ia=s(de,"\u0927\u094D\u092F\u093E\u0928 \u0926\u0947\u0902 \u0915\u093F \u0939\u092E \u090F\u0915 \u0928\u092F\u093E "),Rt=l(de,"CODE",{});var ql=i(Rt);na=s(ql,"TrainingArguments"),ql.forEach(r),ca=s(de," \u0909\u0938\u0915\u0947 "),Nt=l(de,"CODE",{});var zl=i(Nt);pa=s(zl,"evaluation_strategy"),zl.forEach(r),da=s(de," \u091C\u093F\u0938\u0947 \u0938\u0947\u091F \u0915\u093F\u092F\u093E \u0939\u0948 "),Bt=l(de,"CODE",{});var Al=i(Bt);fa=s(Al,'"epoch"'),Al.forEach(r),ma=s(de," \u0914\u0930 \u090F\u0915 \u0928\u090F \u092E\u0949\u0921\u0932 \u0915\u0947 \u0938\u093E\u0925 \u092C\u0928\u093E\u0924\u0947 \u0939\u0948 \u2014 \u0905\u0928\u094D\u092F\u0925\u093E, \u0939\u092E \u0915\u0947\u0935\u0932 \u0909\u0938 \u092E\u0949\u0921\u0932 \u0915\u093E \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u091C\u093E\u0930\u0940 \u0930\u0916 \u0930\u0939\u0947 \u0939\u094B\u0924\u0947 \u091C\u093F\u0938\u0947 \u0939\u092E\u0928\u0947 \u092A\u0939\u0932\u0947 \u0939\u0940 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u093F\u0924 \u0915\u093F\u092F\u093E \u0939\u0948\u0964 \u090F\u0915 \u0928\u092F\u093E \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0930\u0928 \u0936\u0941\u0930\u0942 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0939\u092E \u0928\u093F\u0937\u094D\u092A\u093E\u0926\u093F\u0924 \u092F\u093E\u0928\u093F \u090F\u0915\u094D\u0938\u0915\u094D\u092F\u0942\u091F \u0915\u0930\u0924\u0947 \u0939\u0948\u0902:"),de.forEach(r),jr=d(e),E(Ae.$$.fragment,e),qr=d(e),Me=l(e,"P",{});var yl=i(Me);_a=s(yl,"\u0907\u0938 \u092C\u093E\u0930, \u092F\u0939 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0932\u0949\u0938 \u0914\u0930 \u092E\u0947\u091F\u094D\u0930\u093F\u0915\u094D\u0938 \u0915\u0940 \u0930\u093F\u092A\u094B\u0930\u094D\u091F \u0939\u0930 \u090F\u092A\u0949\u0915 \u0915\u0947 \u0905\u0902\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0932\u0949\u0938 \u0915\u0947 \u090A\u092A\u0930 \u0915\u0930\u0947\u0917\u093E\u0964 \u092B\u093F\u0930 \u0938\u0947, \u090F\u0915 \u0938\u091F\u0940\u0915 \u090F\u0915\u094D\u092F\u0942\u0930\u0947\u0938\u0940/F1 \u0938\u094D\u0915\u094B\u0930 \u091C\u093F\u0938\u092A\u0947 \u0939\u092E \u092A\u0939\u0941\u0902\u091A\u0947 \u0925\u094B\u095C\u093E \u0905\u0932\u0917 \u0939\u094B \u0938\u0915\u0924\u093E \u0939\u0948 \u0909\u0938\u0938\u0947 \u091C\u094B \u0939\u092E\u0928\u0947 \u092A\u093E\u092F\u093E, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092E\u0949\u0921\u0932 \u0915\u0947 \u0930\u0948\u0902\u0921\u092E \u0939\u0947\u0921 \u0907\u0928\u093F\u0936\u093F\u092F\u0932\u093E\u0907\u091C\u093C\u0947\u0936\u0928 \u0915\u0947 \u0915\u093E\u0930\u0923, \u0932\u0947\u0915\u093F\u0928 \u092F\u0939 \u0909\u0938\u0940 \u092C\u0949\u0932\u092A\u093E\u0930\u094D\u0915 \u092E\u0947\u0902 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F\u0964"),yl.forEach(r),zr=d(e),re=l(e,"P",{});var Kt=i(re);Wt=l(Kt,"CODE",{});var xl=i(Wt);ua=s(xl,"Trainer"),xl.forEach(r),$a=s(Kt," \u0915\u0908 GPUs \u092F\u093E TPUs \u092A\u0930 \u092C\u093F\u0932\u0915\u0941\u0932 \u0939\u091F\u0915\u0930 \u0915\u093E\u092E \u0915\u0930\u0947\u0917\u093E \u0914\u0930 \u092C\u0939\u0941\u0924 \u0938\u093E\u0930\u0947 \u0935\u093F\u0915\u0932\u094D\u092A \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0924\u093E \u0939\u0948, \u091C\u0948\u0938\u0947 \u092E\u093F\u0936\u094D\u0930\u093F\u0924-\u0938\u091F\u0940\u0915 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 (\u0905\u092A\u0928\u0947 \u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0906\u0930\u094D\u0917\u0942\u092E\u0947\u0928\u094D\u091F \u092E\u0947\u0902 "),Ht=l(Kt,"CODE",{});var Sl=i(Ht);Ea=s(Sl,"fp16 = True"),Sl.forEach(r),ha=s(Kt," \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902)\u0964 \u0939\u092E \u0905\u0927\u094D\u092F\u093E\u092F 10 \u092E\u0947\u0902 \u0907\u0938\u0915\u0947 \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u092E\u0930\u094D\u0925\u093F\u0924 \u0939\u0930 \u091A\u0940\u091C \u092A\u0930 \u0905\u0927\u094D\u092F\u092F\u0928 \u0915\u0930\u0947\u0902\u0917\u0947\u0964"),Kt.forEach(r),Ar=d(e),Q=l(e,"P",{});var We=i(Q);va=s(We,"\u092F\u0939 "),Yt=l(We,"CODE",{});var Ul=i(Yt);ka=s(Ul,"Trainer"),Ul.forEach(r),Ca=s(We," API \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092B\u093E\u0907\u0928-\u091F\u094D\u092F\u0942\u0928\u093F\u0902\u0917 \u0915\u0947 \u092A\u0930\u093F\u091A\u092F \u0915\u094B \u0938\u092E\u093E\u092A\u094D\u0924 \u0915\u0930\u0924\u093E \u0939\u0948\u0964 \u0905\u0927\u093F\u0915\u093E\u0902\u0936 \u0938\u093E\u092E\u093E\u0928\u094D\u092F NLP \u0915\u093E\u0930\u094D\u092F\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F \u0910\u0938\u093E \u0915\u0930\u0928\u0947 \u0915\u093E \u090F\u0915 \u0909\u0926\u093E\u0939\u0930\u0923 "),Le=l(We,"A",{href:!0});var Gl=i(Le);ba=s(Gl,"\u0905\u0927\u094D\u092F\u093E\u092F 7"),Gl.forEach(r),Ta=s(We," \u092E\u0947\u0902 \u0926\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E,  \u0932\u0947\u0915\u093F\u0928 \u0905\u092D\u0940 \u0915\u0947 \u0932\u093F\u090F \u0906\u0907\u090F \u0926\u0947\u0916\u0947\u0902 \u0915\u093F \u0936\u0941\u0926\u094D\u0927 PyTorch \u092E\u0947\u0902 \u0935\u0939\u0940 \u0915\u093E\u092E \u0915\u0948\u0938\u0947 \u0915\u0930\u0947\u0902\u0964"),We.forEach(r),yr=d(e),E(ie.$$.fragment,e),this.h()},h(){w(f,"name","hf:doc:metadata"),w(f,"content",JSON.stringify(Ql)),w(u,"id","trainer-api"),w(u,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),w(u,"href","#trainer-api"),w(T,"class","relative group"),w($e,"href","https://colab.research.google.com/"),w($e,"rel","nofollow"),w(he,"id",""),w(Se,"href","/course/chapter2"),w(Ue,"href","/course/chapter2"),w(Te,"id",""),w(Fe,"href","/course/chapter2"),w(je,"href","https://arxiv.org/pdf/1810.04805.pdf"),w(je,"rel","nofollow"),w(Le,"href","course/chapter7")},m(e,n){t(document.head,f),c(e,z,n),h(m,e,n),c(e,A,n),c(e,T,n),t(T,u),t(u,O),h(y,O,null),t(T,W),t(T,ee),t(ee,me),c(e,H,n),h(b,e,n),c(e,_e,n),h(Y,e,n),c(e,ue,n),c(e,x,n),t(x,Fr),t(x,He),t(He,Mr),t(x,Lr),t(x,Ye),t(Ye,Ir),t(x,Rr),t(x,Je),t(Je,Nr),t(x,Br),t(x,$e),t($e,Wr),t(x,Hr),c(e,Qt,n),c(e,xe,n),t(xe,Yr),c(e,Vt,n),h(Ee,e,n),c(e,Zt,n),c(e,he,n),t(he,Jr),c(e,er,n),c(e,G,n),t(G,Xr),t(G,Xe),t(Xe,Kr),t(G,Qr),t(G,Ke),t(Ke,Vr),t(G,Zr),t(G,Qe),t(Qe,eo),t(G,to),c(e,tr,n),h(ve,e,n),c(e,rr,n),h(oe,e,n),c(e,or,n),c(e,J,n),t(J,ro),t(J,Se),t(Se,oo),t(J,so),t(J,Ve),t(Ve,ao),t(J,lo),c(e,sr,n),h(ke,e,n),c(e,ar,n),c(e,se,n),t(se,io),t(se,Ue),t(Ue,no),t(se,co),c(e,lr,n),c(e,P,n),t(P,po),t(P,Ze),t(Ze,fo),t(P,mo),t(P,et),t(et,_o),t(P,uo),t(P,tt),t(tt,$o),t(P,Eo),t(P,rt),t(rt,ho),t(P,vo),t(P,ot),t(ot,ko),t(P,Co),c(e,ir,n),h(Ce,e,n),c(e,nr,n),c(e,g,n),t(g,bo),t(g,st),t(st,To),t(g,Do),t(g,at),t(at,wo),t(g,Oo),t(g,lt),t(lt,Po),t(g,go),t(g,it),t(it,jo),t(g,qo),t(g,nt),t(nt,zo),t(g,Ao),c(e,cr,n),c(e,X,n),t(X,yo),t(X,ct),t(ct,xo),t(X,So),t(X,pt),t(pt,Uo),t(X,Go),c(e,pr,n),h(be,e,n),c(e,dr,n),c(e,Ge,n),t(Ge,Fo),c(e,fr,n),c(e,ae,n),t(ae,q),t(q,Mo),t(q,dt),t(dt,Lo),t(q,Io),t(q,ft),t(ft,Ro),t(q,No),t(q,mt),t(mt,Bo),t(q,Wo),t(q,_t),t(_t,Ho),t(q,Yo),t(q,ut),t(ut,Jo),t(q,Xo),t(ae,Ko),t(ae,te),t(te,Qo),t(te,$t),t($t,Vo),t(te,Zo),t(te,Et),t(Et,es),t(te,ts),c(e,mr,n),c(e,Te,n),t(Te,rs),c(e,_r,n),c(e,j,n),t(j,os),t(j,ht),t(ht,ss),t(j,as),t(j,vt),t(vt,ls),t(j,is),t(j,kt),t(kt,ns),t(j,cs),t(j,Ct),t(Ct,ps),t(j,ds),t(j,bt),t(bt,fs),t(j,ms),c(e,ur,n),h(De,e,n),c(e,$r,n),h(we,e,n),c(e,Er,n),c(e,_,n),t(_,Tt),t(Tt,_s),t(_,us),t(_,Dt),t(Dt,$s),t(_,Es),t(_,wt),t(wt,hs),t(_,vs),t(_,Ot),t(Ot,ks),t(_,Cs),t(_,Pt),t(Pt,bs),t(_,Ts),t(_,gt),t(gt,Ds),t(_,ws),t(_,jt),t(jt,Os),t(_,Ps),t(_,qt),t(qt,gs),t(_,js),c(e,hr,n),c(e,F,n),t(F,qs),t(F,zt),t(zt,zs),t(F,As),t(F,At),t(At,ys),t(F,xs),t(F,Fe),t(Fe,Ss),t(F,Us),c(e,vr,n),h(Oe,e,n),c(e,kr,n),c(e,S,n),t(S,Gs),t(S,yt),t(yt,Fs),t(S,Ms),t(S,xt),t(xt,Ls),t(S,Is),t(S,St),t(St,Rs),t(S,Ns),t(S,Ut),t(Ut,Bs),t(S,Ws),c(e,Cr,n),h(Pe,e,n),c(e,br,n),h(ge,e,n),c(e,Tr,n),c(e,M,n),t(M,Hs),t(M,je),t(je,Ys),t(M,Js),t(M,Gt),t(Gt,Xs),t(M,Ks),t(M,Ft),t(Ft,Qs),t(M,Vs),c(e,Dr,n),c(e,le,n),t(le,Zs),t(le,Mt),t(Mt,ea),t(le,ta),c(e,wr,n),h(qe,e,n),c(e,Or,n),c(e,K,n),t(K,ra),t(K,Lt),t(Lt,oa),t(K,sa),t(K,It),t(It,aa),t(K,la),c(e,Pr,n),h(ze,e,n),c(e,gr,n),c(e,L,n),t(L,ia),t(L,Rt),t(Rt,na),t(L,ca),t(L,Nt),t(Nt,pa),t(L,da),t(L,Bt),t(Bt,fa),t(L,ma),c(e,jr,n),h(Ae,e,n),c(e,qr,n),c(e,Me,n),t(Me,_a),c(e,zr,n),c(e,re,n),t(re,Wt),t(Wt,ua),t(re,$a),t(re,Ht),t(Ht,Ea),t(re,ha),c(e,Ar,n),c(e,Q,n),t(Q,va),t(Q,Yt),t(Yt,ka),t(Q,Ca),t(Q,Le),t(Le,ba),t(Q,Ta),c(e,yr,n),h(ie,e,n),xr=!0},p(e,[n]){const ye={};n&1&&(ye.fw=e[0]),m.$set(ye);const Jt={};n&2&&(Jt.$$scope={dirty:n,ctx:e}),oe.$set(Jt);const Xt={};n&2&&(Xt.$$scope={dirty:n,ctx:e}),ie.$set(Xt)},i(e){xr||(v(m.$$.fragment,e),v(y.$$.fragment,e),v(b.$$.fragment,e),v(Y.$$.fragment,e),v(Ee.$$.fragment,e),v(ve.$$.fragment,e),v(oe.$$.fragment,e),v(ke.$$.fragment,e),v(Ce.$$.fragment,e),v(be.$$.fragment,e),v(De.$$.fragment,e),v(we.$$.fragment,e),v(Oe.$$.fragment,e),v(Pe.$$.fragment,e),v(ge.$$.fragment,e),v(qe.$$.fragment,e),v(ze.$$.fragment,e),v(Ae.$$.fragment,e),v(ie.$$.fragment,e),xr=!0)},o(e){k(m.$$.fragment,e),k(y.$$.fragment,e),k(b.$$.fragment,e),k(Y.$$.fragment,e),k(Ee.$$.fragment,e),k(ve.$$.fragment,e),k(oe.$$.fragment,e),k(ke.$$.fragment,e),k(Ce.$$.fragment,e),k(be.$$.fragment,e),k(De.$$.fragment,e),k(we.$$.fragment,e),k(Oe.$$.fragment,e),k(Pe.$$.fragment,e),k(ge.$$.fragment,e),k(qe.$$.fragment,e),k(ze.$$.fragment,e),k(Ae.$$.fragment,e),k(ie.$$.fragment,e),xr=!1},d(e){r(f),e&&r(z),C(m,e),e&&r(A),e&&r(T),C(y),e&&r(H),C(b,e),e&&r(_e),C(Y,e),e&&r(ue),e&&r(x),e&&r(Qt),e&&r(xe),e&&r(Vt),C(Ee,e),e&&r(Zt),e&&r(he),e&&r(er),e&&r(G),e&&r(tr),C(ve,e),e&&r(rr),C(oe,e),e&&r(or),e&&r(J),e&&r(sr),C(ke,e),e&&r(ar),e&&r(se),e&&r(lr),e&&r(P),e&&r(ir),C(Ce,e),e&&r(nr),e&&r(g),e&&r(cr),e&&r(X),e&&r(pr),C(be,e),e&&r(dr),e&&r(Ge),e&&r(fr),e&&r(ae),e&&r(mr),e&&r(Te),e&&r(_r),e&&r(j),e&&r(ur),C(De,e),e&&r($r),C(we,e),e&&r(Er),e&&r(_),e&&r(hr),e&&r(F),e&&r(vr),C(Oe,e),e&&r(kr),e&&r(S),e&&r(Cr),C(Pe,e),e&&r(br),C(ge,e),e&&r(Tr),e&&r(M),e&&r(Dr),e&&r(le),e&&r(wr),C(qe,e),e&&r(Or),e&&r(K),e&&r(Pr),C(ze,e),e&&r(gr),e&&r(L),e&&r(jr),C(Ae,e),e&&r(qr),e&&r(Me),e&&r(zr),e&&r(re),e&&r(Ar),e&&r(Q),e&&r(yr),C(ie,e)}}}const Ql={local:"trainer-api",sections:[{local:"",title:"\u092A\u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923"},{local:"",title:"\u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928"}],title:"\u092E\u0949\u0921\u0932 \u0915\u093F Trainer API \u0915\u0947 \u0938\u093E\u0925"};function Vl(fe,f,z){let m="pt";return Nl(()=>{const A=new URLSearchParams(window.location.search);z(0,m=A.get("fw")||"pt")}),[m]}class li extends Ml{constructor(f){super();Ll(this,f,Vl,Kl,Il,{})}}export{li as default,Ql as metadata};
