import{s as Ur,o as Cr,n as I}from"../chunks/scheduler.889ebb13.js";import{S as Zr,i as Rr,g as c,s as p,u as $,A as Gr,h as m,f as l,c as i,j as _,v as g,y as j,k as J,o as h,a,w as M,d as y,t as b,x as w}from"../chunks/index.8980e686.js";import{T as Us}from"../chunks/Tip.7191df11.js";import{Y as Jr}from"../chunks/Youtube.532e53e0.js";import{I as B}from"../chunks/IconCopyLink.357761cd.js";import{C as k}from"../chunks/CodeBlock.25fc3430.js";import{D as Wr}from"../chunks/DocNotebookDropdown.f8a50280.js";import{F as as,M as E}from"../chunks/Markdown.31057263.js";function Hr(v){let s,o;return s=new k({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRvcmNo",highlighted:"pip install torch"}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p:I,i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function xr(v){let s,o;return s=new E({props:{$$slots:{default:[Hr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Ir(v){let s,o;return s=new k({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRlbnNvcmZsb3c=",highlighted:"pip install tensorflow"}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p:I,i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Vr(v){let s,o;return s=new E({props:{$$slots:{default:[Ir]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Xr(v){let s,o='사용 가능한 작업의 전체 목록은 <a href="./main_classes/pipelines">Pipelines API 참조</a>를 확인하세요.';return{c(){s=c("p"),s.innerHTML=o},l(e){s=m(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-jc1org"&&(s.innerHTML=o)},m(e,r){a(e,s,r)},p:I,d(e){e&&l(s)}}}function Nr(v){let s,o="<code>AutoModelForSequenceClassification</code>과 <code>AutoTokenizer</code>를 사용하여 사전 훈련된 모델과 관련된 토크나이저를 로드하세요 (다음 섹션에서 <code>AutoClass</code>에 대해 더 자세히 알아보겠습니다):",e,r,u;return r=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uJTBBJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZChtb2RlbF9uYW1lKSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKG1vZGVsX25hbWUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, AutoModelForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForSequenceClassification.from_pretrained(model_name)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(model_name)`}}),{c(){s=c("p"),s.innerHTML=o,e=p(),$(r.$$.fragment)},l(f){s=m(f,"P",{"data-svelte-h":!0}),j(s)!=="svelte-2p9zoo"&&(s.innerHTML=o),e=i(f),g(r.$$.fragment,f)},m(f,U){a(f,s,U),a(f,e,U),M(r,f,U),u=!0},p:I,i(f){u||(y(r.$$.fragment,f),u=!0)},o(f){b(r.$$.fragment,f),u=!1},d(f){f&&(l(s),l(e)),w(r,f)}}}function Fr(v){let s,o;return s=new E({props:{$$slots:{default:[Nr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Er(v){let s,o="<code>TFAutoModelForSequenceClassification</code>과 <code>AutoTokenizer</code>를 사용하여 사전 훈련된 모델과 관련된 토크나이저를 로드하세요 (다음 섹션에서 <code>TFAutoClass</code>에 대해 더 자세히 알아보겠습니다):",e,r,u;return r=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBURkF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEElMEFtb2RlbCUyMCUzRCUyMFRGQXV0b01vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQobW9kZWxfbmFtZSklMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZChtb2RlbF9uYW1lKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFAutoModelForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFAutoModelForSequenceClassification.from_pretrained(model_name)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(model_name)`}}),{c(){s=c("p"),s.innerHTML=o,e=p(),$(r.$$.fragment)},l(f){s=m(f,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1kci4ds"&&(s.innerHTML=o),e=i(f),g(r.$$.fragment,f)},m(f,U){a(f,s,U),a(f,e,U),M(r,f,U),u=!0},p:I,i(f){u||(y(r.$$.fragment,f),u=!0)},o(f){b(r.$$.fragment,f),u=!1},d(f){f&&(l(s),l(e)),w(r,f)}}}function Ar(v){let s,o;return s=new E({props:{$$slots:{default:[Er]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function zr(v){let s,o;return s=new k({props:{code:"cHRfYmF0Y2glMjAlM0QlMjB0b2tlbml6ZXIoJTBBJTIwJTIwJTIwJTIwJTVCJTIyV2UlMjBhcmUlMjB2ZXJ5JTIwaGFwcHklMjB0byUyMHNob3clMjB5b3UlMjB0aGUlMjAlRjAlOUYlQTQlOTclMjBUcmFuc2Zvcm1lcnMlMjBsaWJyYXJ5LiUyMiUyQyUyMCUyMldlJTIwaG9wZSUyMHlvdSUyMGRvbid0JTIwaGF0ZSUyMGl0LiUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMHBhZGRpbmclM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwdHJ1bmNhdGlvbiUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBtYXhfbGVuZ3RoJTNENTEyJTJDJTBBJTIwJTIwJTIwJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pt_batch = tokenizer(
<span class="hljs-meta">... </span>    [<span class="hljs-string">&quot;We are very happy to show you the 🤗 Transformers library.&quot;</span>, <span class="hljs-string">&quot;We hope you don&#x27;t hate it.&quot;</span>],
<span class="hljs-meta">... </span>    padding=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    truncation=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    max_length=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span>    return_tensors=<span class="hljs-string">&quot;pt&quot;</span>,
<span class="hljs-meta">... </span>)`}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p:I,i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Br(v){let s,o;return s=new E({props:{$$slots:{default:[zr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Yr(v){let s,o;return s=new k({props:{code:"dGZfYmF0Y2glMjAlM0QlMjB0b2tlbml6ZXIoJTBBJTIwJTIwJTIwJTIwJTVCJTIyV2UlMjBhcmUlMjB2ZXJ5JTIwaGFwcHklMjB0byUyMHNob3clMjB5b3UlMjB0aGUlMjAlRjAlOUYlQTQlOTclMjBUcmFuc2Zvcm1lcnMlMjBsaWJyYXJ5LiUyMiUyQyUyMCUyMldlJTIwaG9wZSUyMHlvdSUyMGRvbid0JTIwaGF0ZSUyMGl0LiUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMHBhZGRpbmclM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwdHJ1bmNhdGlvbiUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBtYXhfbGVuZ3RoJTNENTEyJTJDJTBBJTIwJTIwJTIwJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>tf_batch = tokenizer(
<span class="hljs-meta">... </span>    [<span class="hljs-string">&quot;We are very happy to show you the 🤗 Transformers library.&quot;</span>, <span class="hljs-string">&quot;We hope you don&#x27;t hate it.&quot;</span>],
<span class="hljs-meta">... </span>    padding=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    truncation=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    max_length=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span>    return_tensors=<span class="hljs-string">&quot;tf&quot;</span>,
<span class="hljs-meta">... </span>)`}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p:I,i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Lr(v){let s,o;return s=new E({props:{$$slots:{default:[Yr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Sr(v){let s,o='<a href="./preprocessing">전처리</a> 튜토리얼을 참조하시면 토큰화에 대한 자세한 설명과 함께 이미지, 오디오와 멀티모달 입력을 전처리하기 위한 <code>AutoImageProcessor</code>와 <code>AutoFeatureExtractor</code>, <code>AutoProcessor</code>의 사용방법도 알 수 있습니다.';return{c(){s=c("p"),s.innerHTML=o},l(e){s=m(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-7pesi2"&&(s.innerHTML=o)},m(e,r){a(e,s,r)},p:I,d(e){e&&l(s)}}}function Pr(v){let s,o='<code>AutoModel</code> 클래스에서 지원하는 과업에 대해서는 <a href="./task_summary">과업 요약</a>을 참조하세요.';return{c(){s=c("p"),s.innerHTML=o},l(e){s=m(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1xki2u8"&&(s.innerHTML=o)},m(e,r){a(e,s,r)},p:I,d(e){e&&l(s)}}}function Qr(v){let s,o="🤗 Transformers는 사전 훈련된 인스턴스를 간단하고 통합된 방법으로 로드할 수 있습니다. 즉, <code>AutoTokenizer</code>처럼 <code>AutoModel</code>을 로드할 수 있습니다. 유일한 차이점은 과업에 알맞은 <code>AutoModel</code>을 선택해야 한다는 점입니다. 텍스트 (또는 시퀀스) 분류의 경우 <code>AutoModelForSequenceClassification</code>을 로드해야 합니다:",e,r,u,f,U,Z,W="이제 전처리된 입력 묶음을 직접 모델에 전달해야 합니다. 아래처럼 <code>**</code>를 앞에 붙여 딕셔너리를 풀어주면 됩니다:",G,T,R,H,Y="모델의 최종 활성화 함수 출력은 <code>logits</code> 속성에 담겨있습니다. <code>logits</code>에 softmax 함수를 적용하여 확률을 얻을 수 있습니다:",V,x,N;return r=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEElMEFtb2RlbF9uYW1lJTIwJTNEJTIwJTIybmxwdG93biUyRmJlcnQtYmFzZS1tdWx0aWxpbmd1YWwtdW5jYXNlZC1zZW50aW1lbnQlMjIlMEFwdF9tb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX25hbWUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>model_name = <span class="hljs-string">&quot;nlptown/bert-base-multilingual-uncased-sentiment&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pt_model = AutoModelForSequenceClassification.from_pretrained(model_name)`}}),f=new Us({props:{$$slots:{default:[Pr]},$$scope:{ctx:v}}}),T=new k({props:{code:"cHRfb3V0cHV0cyUyMCUzRCUyMHB0X21vZGVsKCoqcHRfYmF0Y2gp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>pt_outputs = pt_model(**pt_batch)'}}),x=new k({props:{code:"ZnJvbSUyMHRvcmNoJTIwaW1wb3J0JTIwbm4lMEElMEFwdF9wcmVkaWN0aW9ucyUyMCUzRCUyMG5uLmZ1bmN0aW9uYWwuc29mdG1heChwdF9vdXRwdXRzLmxvZ2l0cyUyQyUyMGRpbSUzRC0xKSUwQXByaW50KHB0X3ByZWRpY3Rpb25zKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> torch <span class="hljs-keyword">import</span> nn

<span class="hljs-meta">&gt;&gt;&gt; </span>pt_predictions = nn.functional.softmax(pt_outputs.logits, dim=-<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(pt_predictions)
tensor([[<span class="hljs-number">0.0021</span>, <span class="hljs-number">0.0018</span>, <span class="hljs-number">0.0115</span>, <span class="hljs-number">0.2121</span>, <span class="hljs-number">0.7725</span>],
        [<span class="hljs-number">0.2084</span>, <span class="hljs-number">0.1826</span>, <span class="hljs-number">0.1969</span>, <span class="hljs-number">0.1755</span>, <span class="hljs-number">0.2365</span>]], grad_fn=&lt;SoftmaxBackward0&gt;)`}}),{c(){s=c("p"),s.innerHTML=o,e=p(),$(r.$$.fragment),u=p(),$(f.$$.fragment),U=p(),Z=c("p"),Z.innerHTML=W,G=p(),$(T.$$.fragment),R=p(),H=c("p"),H.innerHTML=Y,V=p(),$(x.$$.fragment)},l(d){s=m(d,"P",{"data-svelte-h":!0}),j(s)!=="svelte-xkn7yr"&&(s.innerHTML=o),e=i(d),g(r.$$.fragment,d),u=i(d),g(f.$$.fragment,d),U=i(d),Z=m(d,"P",{"data-svelte-h":!0}),j(Z)!=="svelte-1t6qist"&&(Z.innerHTML=W),G=i(d),g(T.$$.fragment,d),R=i(d),H=m(d,"P",{"data-svelte-h":!0}),j(H)!=="svelte-yhe83l"&&(H.innerHTML=Y),V=i(d),g(x.$$.fragment,d)},m(d,C){a(d,s,C),a(d,e,C),M(r,d,C),a(d,u,C),M(f,d,C),a(d,U,C),a(d,Z,C),a(d,G,C),M(T,d,C),a(d,R,C),a(d,H,C),a(d,V,C),M(x,d,C),N=!0},p(d,C){const L={};C&2&&(L.$$scope={dirty:C,ctx:d}),f.$set(L)},i(d){N||(y(r.$$.fragment,d),y(f.$$.fragment,d),y(T.$$.fragment,d),y(x.$$.fragment,d),N=!0)},o(d){b(r.$$.fragment,d),b(f.$$.fragment,d),b(T.$$.fragment,d),b(x.$$.fragment,d),N=!1},d(d){d&&(l(s),l(e),l(u),l(U),l(Z),l(G),l(R),l(H),l(V)),w(r,d),w(f,d),w(T,d),w(x,d)}}}function qr(v){let s,o;return s=new E({props:{$$slots:{default:[Qr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function Or(v){let s,o='<code>AutoModel</code> 클래스에서 지원하는 과업에 대해서는 <a href="./task_summary">과업 요약</a>을 참조하세요.';return{c(){s=c("p"),s.innerHTML=o},l(e){s=m(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1xki2u8"&&(s.innerHTML=o)},m(e,r){a(e,s,r)},p:I,d(e){e&&l(s)}}}function Dr(v){let s,o="🤗 Transformers는 사전 훈련된 인스턴스를 간단하고 통합된 방법으로 로드할 수 있습니다. 즉, <code>AutoTokenizer</code>처럼 <code>TFAutoModel</code>을 로드할 수 있습니다. 유일한 차이점은 과업에 알맞은 <code>TFAutoModel</code>을 선택해야 한다는 점입니다. 텍스트 (또는 시퀀스) 분류의 경우 <code>TFAutoModelForSequenceClassification</code>을 로드해야 합니다:",e,r,u,f,U,Z,W="이제 전처리된 입력 묶음을 직접 모델에 전달해야 합니다. 아래처럼 그대로 텐서를 전달하면 됩니다:",G,T,R,H,Y="모델의 최종 활성화 함수 출력은 <code>logits</code> 속성에 담겨있습니다. <code>logits</code>에 softmax 함수를 적용하여 확률을 얻을 수 있습니다:",V,x,N;return r=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbiUwQSUwQW1vZGVsX25hbWUlMjAlM0QlMjAlMjJubHB0b3duJTJGYmVydC1iYXNlLW11bHRpbGluZ3VhbC11bmNhc2VkLXNlbnRpbWVudCUyMiUwQXRmX21vZGVsJTIwJTNEJTIwVEZBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZChtb2RlbF9uYW1lKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModelForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>model_name = <span class="hljs-string">&quot;nlptown/bert-base-multilingual-uncased-sentiment&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tf_model = TFAutoModelForSequenceClassification.from_pretrained(model_name)`}}),f=new Us({props:{$$slots:{default:[Or]},$$scope:{ctx:v}}}),T=new k({props:{code:"dGZfb3V0cHV0cyUyMCUzRCUyMHRmX21vZGVsKHRmX2JhdGNoKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>tf_outputs = tf_model(tf_batch)'}}),x=new k({props:{code:"aW1wb3J0JTIwdGVuc29yZmxvdyUyMGFzJTIwdGYlMEElMEF0Zl9wcmVkaWN0aW9ucyUyMCUzRCUyMHRmLm5uLnNvZnRtYXgodGZfb3V0cHV0cy5sb2dpdHMlMkMlMjBheGlzJTNELTEpJTBBdGZfcHJlZGljdGlvbnM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tf_predictions = tf.nn.softmax(tf_outputs.logits, axis=-<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tf_predictions`}}),{c(){s=c("p"),s.innerHTML=o,e=p(),$(r.$$.fragment),u=p(),$(f.$$.fragment),U=p(),Z=c("p"),Z.textContent=W,G=p(),$(T.$$.fragment),R=p(),H=c("p"),H.innerHTML=Y,V=p(),$(x.$$.fragment)},l(d){s=m(d,"P",{"data-svelte-h":!0}),j(s)!=="svelte-18fnh6p"&&(s.innerHTML=o),e=i(d),g(r.$$.fragment,d),u=i(d),g(f.$$.fragment,d),U=i(d),Z=m(d,"P",{"data-svelte-h":!0}),j(Z)!=="svelte-iofx68"&&(Z.textContent=W),G=i(d),g(T.$$.fragment,d),R=i(d),H=m(d,"P",{"data-svelte-h":!0}),j(H)!=="svelte-yhe83l"&&(H.innerHTML=Y),V=i(d),g(x.$$.fragment,d)},m(d,C){a(d,s,C),a(d,e,C),M(r,d,C),a(d,u,C),M(f,d,C),a(d,U,C),a(d,Z,C),a(d,G,C),M(T,d,C),a(d,R,C),a(d,H,C),a(d,V,C),M(x,d,C),N=!0},p(d,C){const L={};C&2&&(L.$$scope={dirty:C,ctx:d}),f.$set(L)},i(d){N||(y(r.$$.fragment,d),y(f.$$.fragment,d),y(T.$$.fragment,d),y(x.$$.fragment,d),N=!0)},o(d){b(r.$$.fragment,d),b(f.$$.fragment,d),b(T.$$.fragment,d),b(x.$$.fragment,d),N=!1},d(d){d&&(l(s),l(e),l(u),l(U),l(Z),l(G),l(R),l(H),l(V)),w(r,d),w(f,d),w(T,d),w(x,d)}}}function Kr(v){let s,o;return s=new E({props:{$$slots:{default:[Dr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function to(v){let s,o="모든 🤗 Transformers 모델(PyTorch 또는 TensorFlow)은 (softmax와 같은) 최종 활성화 함수 <em>이전에</em> 텐서를 출력합니다. 왜냐하면 최종 활성화 함수의 출력은 종종 손실 함수 출력과 결합되기 때문입니다. 모델 출력은 특수한 데이터 클래스이므로 IDE에서 자동 완성됩니다. 모델 출력은 튜플이나 딕셔너리처럼 동작하며 (정수, 슬라이스 또는 문자열로 인덱싱 가능), None인 속성은 무시됩니다.";return{c(){s=c("p"),s.innerHTML=o},l(e){s=m(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1hw7pec"&&(s.innerHTML=o)},m(e,r){a(e,s,r)},p:I,d(e){e&&l(s)}}}function eo(v){let s,o="미세조정된 모델을 토크나이저와 함께 저장하려면 <code>PreTrainedModel.save_pretrained()</code>를 사용하세요:",e,r,u,f,U="모델을 다시 사용하려면 <code>PreTrainedModel.from_pretrained()</code>로 모델을 다시 로드하세요:",Z,W,G;return r=new k({props:{code:"cHRfc2F2ZV9kaXJlY3RvcnklMjAlM0QlMjAlMjIuJTJGcHRfc2F2ZV9wcmV0cmFpbmVkJTIyJTBBdG9rZW5pemVyLnNhdmVfcHJldHJhaW5lZChwdF9zYXZlX2RpcmVjdG9yeSklMEFwdF9tb2RlbC5zYXZlX3ByZXRyYWluZWQocHRfc2F2ZV9kaXJlY3Rvcnkp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pt_save_directory = <span class="hljs-string">&quot;./pt_save_pretrained&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.save_pretrained(pt_save_directory)
<span class="hljs-meta">&gt;&gt;&gt; </span>pt_model.save_pretrained(pt_save_directory)`}}),W=new k({props:{code:"cHRfbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjIuJTJGcHRfc2F2ZV9wcmV0cmFpbmVkJTIyKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>pt_model = AutoModelForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;./pt_save_pretrained&quot;</span>)'}}),{c(){s=c("p"),s.innerHTML=o,e=p(),$(r.$$.fragment),u=p(),f=c("p"),f.innerHTML=U,Z=p(),$(W.$$.fragment)},l(T){s=m(T,"P",{"data-svelte-h":!0}),j(s)!=="svelte-17ceysc"&&(s.innerHTML=o),e=i(T),g(r.$$.fragment,T),u=i(T),f=m(T,"P",{"data-svelte-h":!0}),j(f)!=="svelte-1gryll9"&&(f.innerHTML=U),Z=i(T),g(W.$$.fragment,T)},m(T,R){a(T,s,R),a(T,e,R),M(r,T,R),a(T,u,R),a(T,f,R),a(T,Z,R),M(W,T,R),G=!0},p:I,i(T){G||(y(r.$$.fragment,T),y(W.$$.fragment,T),G=!0)},o(T){b(r.$$.fragment,T),b(W.$$.fragment,T),G=!1},d(T){T&&(l(s),l(e),l(u),l(f),l(Z)),w(r,T),w(W,T)}}}function so(v){let s,o;return s=new E({props:{$$slots:{default:[eo]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function lo(v){let s,o="미세조정된 모델을 토크나이저와 함께 저장하려면 <code>TFPreTrainedModel.save_pretrained()</code>를 사용하세요:",e,r,u,f,U="모델을 다시 사용하려면 <code>TFPreTrainedModel.from_pretrained()</code>로 모델을 다시 로드하세요:",Z,W,G;return r=new k({props:{code:"dGZfc2F2ZV9kaXJlY3RvcnklMjAlM0QlMjAlMjIuJTJGdGZfc2F2ZV9wcmV0cmFpbmVkJTIyJTBBdG9rZW5pemVyLnNhdmVfcHJldHJhaW5lZCh0Zl9zYXZlX2RpcmVjdG9yeSklMEF0Zl9tb2RlbC5zYXZlX3ByZXRyYWluZWQodGZfc2F2ZV9kaXJlY3Rvcnkp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>tf_save_directory = <span class="hljs-string">&quot;./tf_save_pretrained&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.save_pretrained(tf_save_directory)
<span class="hljs-meta">&gt;&gt;&gt; </span>tf_model.save_pretrained(tf_save_directory)`}}),W=new k({props:{code:"dGZfbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMi4lMkZ0Zl9zYXZlX3ByZXRyYWluZWQlMjIp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>tf_model = TFAutoModelForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;./tf_save_pretrained&quot;</span>)'}}),{c(){s=c("p"),s.innerHTML=o,e=p(),$(r.$$.fragment),u=p(),f=c("p"),f.innerHTML=U,Z=p(),$(W.$$.fragment)},l(T){s=m(T,"P",{"data-svelte-h":!0}),j(s)!=="svelte-8fihd2"&&(s.innerHTML=o),e=i(T),g(r.$$.fragment,T),u=i(T),f=m(T,"P",{"data-svelte-h":!0}),j(f)!=="svelte-1kduch3"&&(f.innerHTML=U),Z=i(T),g(W.$$.fragment,T)},m(T,R){a(T,s,R),a(T,e,R),M(r,T,R),a(T,u,R),a(T,f,R),a(T,Z,R),M(W,T,R),G=!0},p:I,i(T){G||(y(r.$$.fragment,T),y(W.$$.fragment,T),G=!0)},o(T){b(r.$$.fragment,T),b(W.$$.fragment,T),G=!1},d(T){T&&(l(s),l(e),l(u),l(f),l(Z)),w(r,T),w(W,T)}}}function no(v){let s,o;return s=new E({props:{$$slots:{default:[lo]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function ao(v){let s,o;return s=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbCUwQSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKHRmX3NhdmVfZGlyZWN0b3J5KSUwQXB0X21vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQodGZfc2F2ZV9kaXJlY3RvcnklMkMlMjBmcm9tX3RmJTNEVHJ1ZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModel

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(tf_save_directory)
<span class="hljs-meta">&gt;&gt;&gt; </span>pt_model = AutoModelForSequenceClassification.from_pretrained(tf_save_directory, from_tf=<span class="hljs-literal">True</span>)`}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p:I,i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function ro(v){let s,o;return s=new E({props:{$$slots:{default:[ao]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function oo(v){let s,o;return s=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQocHRfc2F2ZV9kaXJlY3RvcnkpJTBBdGZfbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKHB0X3NhdmVfZGlyZWN0b3J5JTJDJTIwZnJvbV9wdCUzRFRydWUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModel

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(pt_save_directory)
<span class="hljs-meta">&gt;&gt;&gt; </span>tf_model = TFAutoModelForSequenceClassification.from_pretrained(pt_save_directory, from_pt=<span class="hljs-literal">True</span>)`}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p:I,i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function po(v){let s,o;return s=new E({props:{$$slots:{default:[oo]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function io(v){let s,o="<code>AutoModel.from_config()</code>를 사용하여 바꾼 구성대로 모델을 생성하세요:",e,r,u;return r=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbCUwQSUwQW15X21vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fY29uZmlnKG15X2NvbmZpZyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModel

<span class="hljs-meta">&gt;&gt;&gt; </span>my_model = AutoModel.from_config(my_config)`}}),{c(){s=c("p"),s.innerHTML=o,e=p(),$(r.$$.fragment)},l(f){s=m(f,"P",{"data-svelte-h":!0}),j(s)!=="svelte-e2zo3n"&&(s.innerHTML=o),e=i(f),g(r.$$.fragment,f)},m(f,U){a(f,s,U),a(f,e,U),M(r,f,U),u=!0},p:I,i(f){u||(y(r.$$.fragment,f),u=!0)},o(f){b(r.$$.fragment,f),u=!1},d(f){f&&(l(s),l(e)),w(r,f)}}}function co(v){let s,o;return s=new E({props:{$$slots:{default:[io]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function mo(v){let s,o="<code>TFAutoModel.from_config()</code>를 사용하여 바꾼 구성대로 모델을 생성하세요:",e,r,u;return r=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsJTBBJTBBbXlfbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbC5mcm9tX2NvbmZpZyhteV9jb25maWcp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModel

<span class="hljs-meta">&gt;&gt;&gt; </span>my_model = TFAutoModel.from_config(my_config)`}}),{c(){s=c("p"),s.innerHTML=o,e=p(),$(r.$$.fragment)},l(f){s=m(f,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1j96frd"&&(s.innerHTML=o),e=i(f),g(r.$$.fragment,f)},m(f,U){a(f,s,U),a(f,e,U),M(r,f,U),u=!0},p:I,i(f){u||(y(r.$$.fragment,f),u=!0)},o(f){b(r.$$.fragment,f),u=!1},d(f){f&&(l(s),l(e)),w(r,f)}}}function fo(v){let s,o;return s=new E({props:{$$slots:{default:[mo]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(e){g(s.$$.fragment,e)},m(e,r){M(s,e,r),o=!0},p(e,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),s.$set(u)},i(e){o||(y(s.$$.fragment,e),o=!0)},o(e){b(s.$$.fragment,e),o=!1},d(e){w(s,e)}}}function uo(v){let s,o="번역이나 요약과 같이 시퀀스-시퀀스 모델을 사용하는 과업에는 <code>Seq2SeqTrainer</code> 및 <code>Seq2SeqTrainingArguments</code> 클래스를 사용하세요.";return{c(){s=c("p"),s.innerHTML=o},l(e){s=m(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-82jwth"&&(s.innerHTML=o)},m(e,r){a(e,s,r)},p:I,d(e){e&&l(s)}}}function ho(v){let s,o,e,r,u,f,U,Z,W,G,T="둘러보기",R,H,Y,V,x='🤗 Transformers를 시작해보세요! 개발해본 적이 없더라도 쉽게 읽을 수 있도록 쓰인 이 글은 <a href="./main_classes/pipelines"><code>pipeline</code></a>을 사용하여 추론하고, 사전학습된 모델과 전처리기를 <a href="./model_doc/auto">AutoClass</a>로 로드하고, PyTorch 또는 TensorFlow로 모델을 빠르게 학습시키는 방법을 소개해 드릴 것입니다. 본 가이드에서 소개되는 개념을 (특히 초보자의 관점으로) 더 친절하게 접하고 싶다면, 튜토리얼이나 <a href="https://huggingface.co/course/chapter1/1" rel="nofollow">코스</a>를 참조하기를 권장합니다.',N,d,C="시작하기 전에 필요한 라이브러리가 모두 설치되어 있는지 확인하세요:",L,kt,Ss,Jt,ca="또한 선호하는 머신 러닝 프레임워크를 설치해야 합니다:",Ps,nt,Qs,P,at,Cs,Ut,Gn,rs,ma="파이프라인",qs,Ct,Os,Zt,fa='<a href="./main_classes/pipelines"><code>pipeline</code></a>은 사전 훈련된 모델로 추론하기에 가장 쉽고 빠른 방법입니다. <code>pipeline()</code>은 여러 모달리티에서 다양한 과업을 쉽게 처리할 수 있으며, 아래 표에 표시된 몇 가지 과업을 기본적으로 지원합니다:',Ds,rt,Ks,Rt,da="<thead><tr><th><strong>태스크</strong></th> <th><strong>설명</strong></th> <th><strong>모달리티</strong></th> <th><strong>파이프라인 ID</strong></th></tr></thead> <tbody><tr><td>텍스트 분류</td> <td>텍스트에 알맞은 레이블 붙이기</td> <td>자연어 처리(NLP)</td> <td>pipeline(task=“sentiment-analysis”)</td></tr> <tr><td>텍스트 생성</td> <td>주어진 문자열 입력과 이어지는 텍스트 생성하기</td> <td>자연어 처리(NLP)</td> <td>pipeline(task=“text-generation”)</td></tr> <tr><td>개체명 인식</td> <td>문자열의 각 토큰마다 알맞은 레이블 붙이기 (인물, 조직, 장소 등등)</td> <td>자연어 처리(NLP)</td> <td>pipeline(task=“ner”)</td></tr> <tr><td>질의응답</td> <td>주어진 문맥과 질문에 따라 올바른 대답하기</td> <td>자연어 처리(NLP)</td> <td>pipeline(task=“question-answering”)</td></tr> <tr><td>빈칸 채우기</td> <td>문자열의 빈칸에 알맞은 토큰 맞추기</td> <td>자연어 처리(NLP)</td> <td>pipeline(task=“fill-mask”)</td></tr> <tr><td>요약</td> <td>텍스트나 문서를 요약하기</td> <td>자연어 처리(NLP)</td> <td>pipeline(task=“summarization”)</td></tr> <tr><td>번역</td> <td>텍스트를 한 언어에서 다른 언어로 번역하기</td> <td>자연어 처리(NLP)</td> <td>pipeline(task=“translation”)</td></tr> <tr><td>이미지 분류</td> <td>이미지에 알맞은 레이블 붙이기</td> <td>컴퓨터 비전(CV)</td> <td>pipeline(task=“image-classification”)</td></tr> <tr><td>이미지 분할</td> <td>이미지의 픽셀마다 레이블 붙이기(시맨틱, 파놉틱 및 인스턴스 분할 포함)</td> <td>컴퓨터 비전(CV)</td> <td>pipeline(task=“image-segmentation”)</td></tr> <tr><td>객체 탐지</td> <td>이미지 속 객체의 경계 상자를 그리고 클래스를 예측하기</td> <td>컴퓨터 비전(CV)</td> <td>pipeline(task=“object-detection”)</td></tr> <tr><td>오디오 분류</td> <td>오디오 파일에 알맞은 레이블 붙이기</td> <td>오디오</td> <td>pipeline(task=“audio-classification”)</td></tr> <tr><td>자동 음성 인식</td> <td>오디오 파일 속 음성을 텍스트로 바꾸기</td> <td>오디오</td> <td>pipeline(task=“automatic-speech-recognition”)</td></tr> <tr><td>시각 질의응답</td> <td>주어진 이미지와 질문에 대해 올바르게 대답하기</td> <td>멀티모달</td> <td>pipeline(task=“vqa”)</td></tr> <tr><td>문서 질의응답</td> <td>주어진 문서와 질문에 대해 올바르게 대답하기</td> <td>멀티모달</td> <td>pipeline(task=“document-question-answering”)</td></tr> <tr><td>이미지 캡션 달기</td> <td>주어진 이미지의 캡션 생성하기</td> <td>멀티모달</td> <td>pipeline(task=“image-to-text”)</td></tr></tbody>",tl,Gt,ua="먼저 <code>pipeline()</code>의 인스턴스를 생성하고 사용할 작업을 지정합니다. 이 가이드에서는 감정 분석을 위해 <code>pipeline()</code>을 사용하는 예제를 보여드리겠습니다:",el,Wt,sl,Ht,ha='<code>pipeline()</code>은 감정 분석을 위한 <a href="https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english" rel="nofollow">사전 훈련된 모델</a>과 토크나이저를 자동으로 다운로드하고 캐시합니다. 이제 <code>classifier</code>를 대상 텍스트에 사용할 수 있습니다:',ll,xt,nl,It,$a="만약 입력이 여러 개 있는 경우, 입력을 리스트로 <code>pipeline()</code>에 전달하여, 사전 훈련된 모델의 출력을 딕셔너리로 이루어진 리스트 형태로 받을 수 있습니다:",al,Vt,rl,Xt,ga="<code>pipeline()</code>은 주어진 과업에 관계없이 데이터셋 전부를 순회할 수도 있습니다. 이 예제에서는 자동 음성 인식을 과업으로 선택해 보겠습니다:",ol,Nt,pl,Ft,Ma='데이터셋을 로드할 차례입니다. (자세한 내용은 🤗 Datasets <a href="https://huggingface.co/docs/datasets/quickstart#audio" rel="nofollow">시작하기</a>을 참조하세요) 여기에서는 <a href="https://huggingface.co/datasets/PolyAI/minds14" rel="nofollow">MInDS-14</a> 데이터셋을 로드하겠습니다:',il,Et,cl,At,ya='데이터셋의 샘플링 레이트가 기존 모델인 <a href="https://huggingface.co/facebook/wav2vec2-base-960h" rel="nofollow"><code>facebook/wav2vec2-base-960h</code></a>의 훈련 당시 샘플링 레이트와 일치하는지 확인해야 합니다:',ml,zt,fl,Bt,ba="<code>&quot;audio&quot;</code> 열을 호출하면 자동으로 오디오 파일을 가져와서 리샘플링합니다. 첫 4개 샘플에서 원시 웨이브폼 배열을 추출하고 파이프라인에 리스트로 전달하세요:",dl,Yt,ul,Lt,wa='음성이나 비전과 같이 입력이 큰 대규모 데이터셋의 경우, 모든 입력을 메모리에 로드하려면 리스트 대신 제너레이터 형태로 전달해야 합니다. 자세한 내용은 <a href="./main_classes/pipelines">Pipelines API 참조</a>를 확인하세요.',hl,Q,ot,Zs,St,Wn,os,ja="파이프라인에서 다른 모델과 토크나이저 사용하기",$l,Pt,Ta='<code>pipeline()</code>은 <a href="https://huggingface.co/models" rel="nofollow">Hub</a>의 모든 모델을 사용할 수 있기 때문에, <code>pipeline()</code>을 다른 용도에 맞게 쉽게 수정할 수 있습니다. 예를 들어, 프랑스어 텍스트를 처리할 수 있는 모델을 사용하기 위해선 Hub의 태그를 사용하여 적절한 모델을 필터링하면 됩니다. 필터링된 결과의 상위 항목으로는 프랑스어 텍스트에 사용할 수 있는 다국어 <a href="https://huggingface.co/nlptown/bert-base-multilingual-uncased-sentiment" rel="nofollow">BERT 모델</a>이 반환됩니다:',gl,Qt,Ml,pt,yl,qt,va="<code>pipeline()</code>에서 모델과 토크나이저를 지정하면, 이제 <code>classifier</code>를 프랑스어 텍스트에 적용할 수 있습니다:",bl,Ot,wl,Dt,_a='마땅한 모델을 찾을 수 없는 경우 데이터를 기반으로 사전 훈련된 모델을 미세조정해야 합니다. 미세조정 방법에 대한 자세한 내용은 <a href="./training">미세조정 튜토리얼</a>을 참조하세요. 사전 훈련된 모델을 미세조정한 후에는 모델을 Hub의 커뮤니티와 공유하여 머신러닝 민주화에 기여해주세요! 🤗',jl,q,it,Rs,Kt,Hn,ps,ka="AutoClass",Tl,te,vl,ee,Ja='<code>AutoModelForSequenceClassification</code>과 <code>AutoTokenizer</code> 클래스는 위에서 다룬 <code>pipeline()</code>의 기능을 구현하는 데 사용됩니다. <a href="./model_doc/auto">AutoClass</a>는 사전 훈련된 모델의 아키텍처를 이름이나 경로에서 자동으로 가져오는 ‘바로가기’입니다. 과업에 적합한 <code>AutoClass</code>를 선택하고 해당 전처리 클래스를 선택하기만 하면 됩니다.',_l,se,Ua="이전 섹션의 예제로 돌아가서 <code>pipeline()</code>의 결과를 <code>AutoClass</code>를 활용해 복제하는 방법을 살펴보겠습니다.",kl,O,ct,Gs,le,xn,is,Ca="AutoTokenizer",Jl,ne,Za='토크나이저는 텍스트를 모델의 입력으로 사용하기 위해 숫자 배열 형태로 전처리하는 역할을 담당합니다. 토큰화 과정에는 단어를 어디에서 끊을지, 어느 수준까지 나눌지와 같은 여러 규칙들이 있습니다 (토큰화에 대한 자세한 내용은 <a href="./tokenizer_summary">토크나이저 요약</a>을 참조하세요). 가장 중요한 점은 모델이 사전 훈련된 모델과 동일한 토큰화 규칙을 사용하도록 동일한 모델 이름으로 토크나이저를 인스턴스화해야 한다는 것입니다.',Ul,ae,Ra="<code>AutoTokenizer</code>로 토크나이저를 로드하세요:",Cl,re,Zl,oe,Ga="텍스트를 토크나이저에 전달하세요:",Rl,pe,Gl,ie,Wa="토크나이저는 다음을 포함한 딕셔너리를 반환합니다:",Wl,ce,Ha='<li><a href="./glossary#input-ids">input_ids</a>: 토큰의 숫자 표현.</li> <li><a href=".glossary#attention-mask">attention_mask</a>: 어떤 토큰에 주의를 기울여야 하는지를 나타냅니다.</li>',Hl,me,xa="토크나이저는 입력을 리스트 형태로도 받을 수 있으며, 텍스트를 패딩하고 잘라내어 일정한 길이의 묶음을 반환할 수도 있습니다:",xl,mt,Il,ft,Vl,D,dt,Ws,fe,In,cs,Ia="AutoModel",Xl,ut,Nl,ht,Fl,K,$t,Hs,de,Vn,ms,Va="모델 저장하기",El,gt,Al,ue,Xa="🤗 Transformers의 멋진 기능 중 하나는 모델을 PyTorch 또는 TensorFlow 모델로 저장해뒀다가 다른 프레임워크로 다시 로드할 수 있는 점입니다. <code>from_pt</code> 또는 <code>from_tf</code> 매개변수를 사용하여 모델을 한 프레임워크에서 다른 프레임워크로 변환할 수 있습니다:",zl,Mt,Bl,tt,yt,xs,he,Xn,fs,Na="커스텀 모델 구축하기",Yl,$e,Fa="모델의 구성 클래스를 수정하여 모델의 구조를 바꿀 수 있습니다. (은닉층이나 어텐션 헤드의 수와 같은) 모델의 속성은 구성에서 지정되기 때문입니다. 커스텀 구성 클래스로 모델을 만들면 처음부터 시작해야 합니다. 모델 속성은 무작위로 초기화되므로 의미 있는 결과를 얻으려면 먼저 모델을 훈련시켜야 합니다.",Ll,ge,Ea="먼저 <code>AutoConfig</code>를 가져오고 수정하고 싶은 사전학습된 모델을 로드하세요. <code>AutoConfig.from_pretrained()</code> 내부에서 (어텐션 헤드 수와 같이) 변경하려는 속성를 지정할 수 있습니다:",Sl,Me,Pl,bt,Ql,ye,Aa='커스텀 구성에 대한 자세한 내용은 <a href="./create_a_model">커스텀 아키텍처 만들기</a> 가이드를 확인하세요.',ql,et,wt,Is,be,Nn,ds,za="Trainer - PyTorch에 최적화된 훈련 루프",Ol,we,Ba='모든 모델은 <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow"><code>torch.nn.Module</code></a>이므로 일반적인 훈련 루프에서 사용할 수 있습니다. 직접 훈련 루프를 작성할 수도 있지만, 🤗 Transformers는 PyTorch를 위한 <code>Trainer</code> 클래스를 제공합니다. 이 클래스에는 기본 훈련 루프가 포함되어 있으며 분산 훈련, 혼합 정밀도 등과 같은 기능을 추가로 제공합니다.',Dl,je,Ya="과업에 따라 다르지만 일반적으로 <code>Trainer</code>에 다음 매개변수를 전달합니다:",Kl,X,Te,us,La='<code>PreTrainedModel</code> 또는 <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow"><code>torch.nn.Module</code></a>로 시작합니다:',Fn,ve,En,_e,hs,Sa="<code>TrainingArguments</code>는 학습률, 배치 크기, 훈련할 에포크 수와 같은 모델 하이퍼파라미터를 포함합니다. 훈련 인자를 지정하지 않으면 기본값이 사용됩니다:",An,ke,zn,Je,$s,Pa="토크나이저, 이미지 프로세서, 특징 추출기(feature extractor) 또는 프로세서와 전처리 클래스를 로드하세요:",Bn,Ue,Yn,Ce,gs,Qa="데이터셋을 로드하세요:",Ln,Ze,Sn,z,Ms,qa="데이터셋을 토큰화하는 함수를 생성하세요:",Pn,Re,Qn,ys,Oa="그리고 <code>map</code>로 데이터셋 전체에 적용하세요:",qn,Ge,On,We,bs,Da="<code>DataCollatorWithPadding</code>을 사용하여 데이터셋의 표본 묶음을 만드세요:",Dn,He,tn,xe,Ka="이제 위의 모든 클래스를 <code>Trainer</code>로 모으세요:",en,Ie,sn,Ve,tr="준비가 되었으면 <code>train()</code>을 호출하여 훈련을 시작하세요:",ln,Xe,nn,jt,an,Ne,er="<code>Trainer</code> 내의 메서드를 서브클래스화하여 훈련 루프를 바꿀 수도 있습니다. 이러면 손실 함수, 옵티마이저, 스케줄러와 같은 기능 또한 바꿀 수 있게 됩니다. 변경 가능한 메소드에 대해서는 <code>Trainer</code> 문서를 참고하세요.",rn,Fe,sr='훈련 루프를 수정하는 다른 방법은 <a href="./main_classes/callbacks">Callbacks</a>를 사용하는 것입니다. Callbacks로 다른 라이브러리와 통합하고, 훈련 루프를 체크하여 진행 상황을 보고받거나, 훈련을 조기에 중단할 수 있습니다. Callbacks은 훈련 루프 자체를 바꾸지는 않습니다. 손실 함수와 같은 것을 바꾸려면 <code>Trainer</code>를 서브클래스화해야 합니다.',on,st,Tt,Vs,Ee,Kn,ws,lr="TensorFlow로 훈련시키기",pn,Ae,nr='모든 모델은 <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow"><code>tf.keras.Model</code></a>이므로 <a href="https://keras.io/" rel="nofollow">Keras</a> API를 통해 TensorFlow에서 훈련시킬 수 있습니다. 🤗 Transformers는 데이터셋을 쉽게 <code>tf.data.Dataset</code> 형태로 쉽게 로드할 수 있는 <code>prepare_tf_dataset()</code> 메소드를 제공하기 때문에, Keras의 <a href="https://keras.io/api/models/model_training_apis/#compile-method" rel="nofollow"><code>compile</code></a> 및 <a href="https://keras.io/api/models/model_training_apis/#fit-method" rel="nofollow"><code>fit</code></a> 메소드로 바로 훈련을 시작할 수 있습니다.',cn,F,ze,js,ar='<code>TFPreTrainedModel</code> 또는 <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow"><code>tf.keras.Model</code></a>로 시작합니다:',ta,Be,ea,Ye,Ts,rr="토크나이저, 이미지 프로세서, 특징 추출기(feature extractor) 또는 프로세서와 같은 전처리 클래스를 로드하세요:",sa,Le,la,Se,vs,or="데이터셋을 토큰화하는 함수를 생성하세요:",na,Pe,aa,Qe,_s,pr="<code>map</code>을 사용하여 전체 데이터셋에 토큰화 함수를 적용하고, 데이터셋과 토크나이저를 <code>prepare_tf_dataset()</code>에 전달하세요. 배치 크기를 변경하거나 데이터셋을 섞을 수도 있습니다:",ra,qe,oa,Oe,ks,ir="준비되었으면 <code>compile</code> 및 <code>fit</code>를 호출하여 훈련을 시작하세요. 🤗 Transformers의 모든 모델은 과업과 관련된 기본 손실 함수를 가지고 있으므로 명시적으로 지정하지 않아도 됩니다:",pa,De,mn,lt,vt,Xs,Ke,ia,Js,cr="다음 단계는 무엇인가요?",fn,ts,mr="🤗 Transformers 둘러보기를 모두 읽으셨다면, 가이드를 살펴보고 더 구체적인 것을 수행하는 방법을 알아보세요. 이를테면 커스텀 모델 구축하는 방법, 과업에 알맞게 모델을 미세조정하는 방법, 스크립트로 모델 훈련하는 방법 등이 있습니다. 🤗 Transformers 핵심 개념에 대해 더 알아보려면 커피 한 잔 들고 개념 가이드를 살펴보세요!",dn,Ns,un;return Z=new B({}),H=new Wr({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Mixed",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/ko/quicktour.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/ko/pytorch/quicktour.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/ko/tensorflow/quicktour.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/quicktour.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/pytorch/quicktour.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/tensorflow/quicktour.ipynb"}]}}),kt=new k({props:{code:"IXBpcCUyMGluc3RhbGwlMjB0cmFuc2Zvcm1lcnMlMjBkYXRhc2V0cw==",highlighted:"!pip install transformers datasets"}}),nt=new as({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Vr],pytorch:[xr]},$$scope:{ctx:v}}}),Ut=new B({}),Ct=new Jr({props:{id:"tiZFewofSLM"}}),rt=new Us({props:{$$slots:{default:[Xr]},$$scope:{ctx:v}}}),Wt=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKCUyMnNlbnRpbWVudC1hbmFseXNpcyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(<span class="hljs-string">&quot;sentiment-analysis&quot;</span>)`}}),xt=new k({props:{code:"Y2xhc3NpZmllciglMjJXZSUyMGFyZSUyMHZlcnklMjBoYXBweSUyMHRvJTIwc2hvdyUyMHlvdSUyMHRoZSUyMCVGMCU5RiVBNCU5NyUyMFRyYW5zZm9ybWVycyUyMGxpYnJhcnkuJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;We are very happy to show you the 🤗 Transformers library.&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9998</span>}]`}}),Vt=new k({props:{code:"cmVzdWx0cyUyMCUzRCUyMGNsYXNzaWZpZXIoJTVCJTIyV2UlMjBhcmUlMjB2ZXJ5JTIwaGFwcHklMjB0byUyMHNob3clMjB5b3UlMjB0aGUlMjAlRjAlOUYlQTQlOTclMjBUcmFuc2Zvcm1lcnMlMjBsaWJyYXJ5LiUyMiUyQyUyMCUyMldlJTIwaG9wZSUyMHlvdSUyMGRvbid0JTIwaGF0ZSUyMGl0LiUyMiU1RCklMEFmb3IlMjByZXN1bHQlMjBpbiUyMHJlc3VsdHMlM0ElMEElMjAlMjAlMjAlMjBwcmludChmJTIybGFiZWwlM0ElMjAlN0JyZXN1bHQlNUInbGFiZWwnJTVEJTdEJTJDJTIwd2l0aCUyMHNjb3JlJTNBJTIwJTdCcm91bmQocmVzdWx0JTVCJ3Njb3JlJyU1RCUyQyUyMDQpJTdEJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>results = classifier([<span class="hljs-string">&quot;We are very happy to show you the 🤗 Transformers library.&quot;</span>, <span class="hljs-string">&quot;We hope you don&#x27;t hate it.&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> result <span class="hljs-keyword">in</span> results:
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;label: <span class="hljs-subst">{result[<span class="hljs-string">&#x27;label&#x27;</span>]}</span>, with score: <span class="hljs-subst">{<span class="hljs-built_in">round</span>(result[<span class="hljs-string">&#x27;score&#x27;</span>], <span class="hljs-number">4</span>)}</span>&quot;</span>)
label: POSITIVE, <span class="hljs-keyword">with</span> score: <span class="hljs-number">0.9998</span>
label: NEGATIVE, <span class="hljs-keyword">with</span> score: <span class="hljs-number">0.5309</span>`}}),Nt=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlMEElMEFzcGVlY2hfcmVjb2duaXplciUyMCUzRCUyMHBpcGVsaW5lKCUyMmF1dG9tYXRpYy1zcGVlY2gtcmVjb2duaXRpb24lMjIlMkMlMjBtb2RlbCUzRCUyMmZhY2Vib29rJTJGd2F2MnZlYzItYmFzZS05NjBoJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>speech_recognizer = pipeline(<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>, model=<span class="hljs-string">&quot;facebook/wav2vec2-base-960h&quot;</span>)`}}),Et=new k({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMlBvbHlBSSUyRm1pbmRzMTQlMjIlMkMlMjBuYW1lJTNEJTIyZW4tVVMlMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;PolyAI/minds14&quot;</span>, name=<span class="hljs-string">&quot;en-US&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)`}}),zt=new k({props:{code:"ZGF0YXNldCUyMCUzRCUyMGRhdGFzZXQuY2FzdF9jb2x1bW4oJTIyYXVkaW8lMjIlMkMlMjBBdWRpbyhzYW1wbGluZ19yYXRlJTNEc3BlZWNoX3JlY29nbml6ZXIuZmVhdHVyZV9leHRyYWN0b3Iuc2FtcGxpbmdfcmF0ZSkp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=speech_recognizer.feature_extractor.sampling_rate))'}}),Yt=new k({props:{code:"cmVzdWx0JTIwJTNEJTIwc3BlZWNoX3JlY29nbml6ZXIoZGF0YXNldCU1QiUzQTQlNUQlNUIlMjJhdWRpbyUyMiU1RCklMEFwcmludCglNUJkJTVCJTIydGV4dCUyMiU1RCUyMGZvciUyMGQlMjBpbiUyMHJlc3VsdCU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>result = speech_recognizer(dataset[:<span class="hljs-number">4</span>][<span class="hljs-string">&quot;audio&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>([d[<span class="hljs-string">&quot;text&quot;</span>] <span class="hljs-keyword">for</span> d <span class="hljs-keyword">in</span> result])
[<span class="hljs-string">&#x27;I WOULD LIKE TO SET UP A JOINT ACCOUNT WITH MY PARTNER HOW DO I PROCEED WITH DOING THAT&#x27;</span>, <span class="hljs-string">&quot;FONDERING HOW I&#x27;D SET UP A JOIN TO HELL T WITH MY WIFE AND WHERE THE AP MIGHT BE&quot;</span>, <span class="hljs-string">&quot;I I&#x27;D LIKE TOY SET UP A JOINT ACCOUNT WITH MY PARTNER I&#x27;M NOT SEEING THE OPTION TO DO IT ON THE APSO I CALLED IN TO GET SOME HELP CAN I JUST DO IT OVER THE PHONE WITH YOU AND GIVE YOU THE INFORMATION OR SHOULD I DO IT IN THE AP AN I&#x27;M MISSING SOMETHING UQUETTE HAD PREFERRED TO JUST DO IT OVER THE PHONE OF POSSIBLE THINGS&quot;</span>, <span class="hljs-string">&#x27;HOW DO I FURN A JOINA COUT&#x27;</span>]`}}),St=new B({}),Qt=new k({props:{code:"bW9kZWxfbmFtZSUyMCUzRCUyMCUyMm5scHRvd24lMkZiZXJ0LWJhc2UtbXVsdGlsaW5ndWFsLXVuY2FzZWQtc2VudGltZW50JTIy",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>model_name = <span class="hljs-string">&quot;nlptown/bert-base-multilingual-uncased-sentiment&quot;</span>'}}),pt=new as({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Ar],pytorch:[Fr]},$$scope:{ctx:v}}}),Ot=new k({props:{code:"Y2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKCUyMnNlbnRpbWVudC1hbmFseXNpcyUyMiUyQyUyMG1vZGVsJTNEbW9kZWwlMkMlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIpJTBBY2xhc3NpZmllciglMjJOb3VzJTIwc29tbWVzJTIwdHIlQzMlQThzJTIwaGV1cmV1eCUyMGRlJTIwdm91cyUyMHByJUMzJUE5c2VudGVyJTIwbGElMjBiaWJsaW90aCVDMyVBOHF1ZSUyMCVGMCU5RiVBNCU5NyUyMFRyYW5zZm9ybWVycy4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(<span class="hljs-string">&quot;sentiment-analysis&quot;</span>, model=model, tokenizer=tokenizer)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;Nous sommes très heureux de vous présenter la bibliothèque 🤗 Transformers.&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;5 stars&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.7273</span>}]`}}),Kt=new B({}),te=new Jr({props:{id:"AhChOFRegn4"}}),le=new B({}),re=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEFtb2RlbF9uYW1lJTIwJTNEJTIwJTIybmxwdG93biUyRmJlcnQtYmFzZS1tdWx0aWxpbmd1YWwtdW5jYXNlZC1zZW50aW1lbnQlMjIlMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZChtb2RlbF9uYW1lKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>model_name = <span class="hljs-string">&quot;nlptown/bert-base-multilingual-uncased-sentiment&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(model_name)`}}),pe=new k({props:{code:"ZW5jb2RpbmclMjAlM0QlMjB0b2tlbml6ZXIoJTIyV2UlMjBhcmUlMjB2ZXJ5JTIwaGFwcHklMjB0byUyMHNob3clMjB5b3UlMjB0aGUlMjAlRjAlOUYlQTQlOTclMjBUcmFuc2Zvcm1lcnMlMjBsaWJyYXJ5LiUyMiklMEFwcmludChlbmNvZGluZyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>encoding = tokenizer(<span class="hljs-string">&quot;We are very happy to show you the 🤗 Transformers library.&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(encoding)
{<span class="hljs-string">&#x27;input_ids&#x27;</span>: [<span class="hljs-number">101</span>, <span class="hljs-number">11312</span>, <span class="hljs-number">10320</span>, <span class="hljs-number">12495</span>, <span class="hljs-number">19308</span>, <span class="hljs-number">10114</span>, <span class="hljs-number">11391</span>, <span class="hljs-number">10855</span>, <span class="hljs-number">10103</span>, <span class="hljs-number">100</span>, <span class="hljs-number">58263</span>, <span class="hljs-number">13299</span>, <span class="hljs-number">119</span>, <span class="hljs-number">102</span>],
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
 <span class="hljs-string">&#x27;attention_mask&#x27;</span>: [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]}`}}),mt=new as({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Lr],pytorch:[Br]},$$scope:{ctx:v}}}),ft=new Us({props:{$$slots:{default:[Sr]},$$scope:{ctx:v}}}),fe=new B({}),ut=new as({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Kr],pytorch:[qr]},$$scope:{ctx:v}}}),ht=new Us({props:{$$slots:{default:[to]},$$scope:{ctx:v}}}),de=new B({}),gt=new as({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[no],pytorch:[so]},$$scope:{ctx:v}}}),Mt=new as({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[po],pytorch:[ro]},$$scope:{ctx:v}}}),he=new B({}),Me=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Db25maWclMEElMEFteV9jb25maWclMjAlM0QlMjBBdXRvQ29uZmlnLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZCUyMiUyQyUyMG5faGVhZHMlM0QxMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoConfig

<span class="hljs-meta">&gt;&gt;&gt; </span>my_config = AutoConfig.from_pretrained(<span class="hljs-string">&quot;distilbert-base-uncased&quot;</span>, n_heads=<span class="hljs-number">12</span>)`}}),bt=new as({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[fo],pytorch:[co]},$$scope:{ctx:v}}}),be=new B({}),ve=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEElMEFtb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmRpc3RpbGJlcnQtYmFzZS11bmNhc2VkJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;distilbert-base-uncased&quot;</span>)`}}),ke=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBdHJhaW5pbmdfYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUwQSUyMCUyMCUyMCUyMG91dHB1dF9kaXIlM0QlMjJwYXRoJTJGdG8lMkZzYXZlJTJGZm9sZGVyJTJGJTIyJTJDJTBBJTIwJTIwJTIwJTIwbGVhcm5pbmdfcmF0ZSUzRDJlLTUlMkMlMEElMjAlMjAlMjAlMjBwZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlM0Q4JTJDJTBBJTIwJTIwJTIwJTIwcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q4JTJDJTBBJTIwJTIwJTIwJTIwbnVtX3RyYWluX2Vwb2NocyUzRDIlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>training_args = TrainingArguments(
<span class="hljs-meta">... </span>    output_dir=<span class="hljs-string">&quot;path/to/save/folder/&quot;</span>,
<span class="hljs-meta">... </span>    learning_rate=<span class="hljs-number">2e-5</span>,
<span class="hljs-meta">... </span>    per_device_train_batch_size=<span class="hljs-number">8</span>,
<span class="hljs-meta">... </span>    per_device_eval_batch_size=<span class="hljs-number">8</span>,
<span class="hljs-meta">... </span>    num_train_epochs=<span class="hljs-number">2</span>,
<span class="hljs-meta">... </span>)`}}),Ue=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;distilbert-base-uncased&quot;</span>)`}}),Ze=new k({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIpJTIwJTIwJTIzJTIwZG9jdGVzdCUzQSUyMCUyQklHTk9SRV9SRVNVTFQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)  <span class="hljs-comment"># doctest: +IGNORE_RESULT</span>`}}),Re=new k({props:{code:"ZGVmJTIwdG9rZW5pemVfZGF0YXNldChkYXRhc2V0KSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMHRva2VuaXplcihkYXRhc2V0JTVCJTIydGV4dCUyMiU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">tokenize_dataset</span>(<span class="hljs-params">dataset</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> tokenizer(dataset[<span class="hljs-string">&quot;text&quot;</span>])`}}),Ge=new k({props:{code:"ZGF0YXNldCUyMCUzRCUyMGRhdGFzZXQubWFwKHRva2VuaXplX2RhdGFzZXQlMkMlMjBiYXRjaGVkJTNEVHJ1ZSk=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.<span class="hljs-built_in">map</span>(tokenize_dataset, batched=<span class="hljs-literal">True</span>)'}}),He=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERhdGFDb2xsYXRvcldpdGhQYWRkaW5nJTBBJTBBZGF0YV9jb2xsYXRvciUyMCUzRCUyMERhdGFDb2xsYXRvcldpdGhQYWRkaW5nKHRva2VuaXplciUzRHRva2VuaXplcik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DataCollatorWithPadding

<span class="hljs-meta">&gt;&gt;&gt; </span>data_collator = DataCollatorWithPadding(tokenizer=tokenizer)`}}),Ie=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluZXIlMEElMEF0cmFpbmVyJTIwJTNEJTIwVHJhaW5lciglMEElMjAlMjAlMjAlMjBtb2RlbCUzRG1vZGVsJTJDJTBBJTIwJTIwJTIwJTIwYXJncyUzRHRyYWluaW5nX2FyZ3MlMkMlMEElMjAlMjAlMjAlMjB0cmFpbl9kYXRhc2V0JTNEZGF0YXNldCU1QiUyMnRyYWluJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwZXZhbF9kYXRhc2V0JTNEZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIlMkMlMEElMjAlMjAlMjAlMjBkYXRhX2NvbGxhdG9yJTNEZGF0YV9jb2xsYXRvciUyQyUwQSklMjAlMjAlMjMlMjBkb2N0ZXN0JTNBJTIwJTJCU0tJUA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Trainer

<span class="hljs-meta">&gt;&gt;&gt; </span>trainer = Trainer(
<span class="hljs-meta">... </span>    model=model,
<span class="hljs-meta">... </span>    args=training_args,
<span class="hljs-meta">... </span>    train_dataset=dataset[<span class="hljs-string">&quot;train&quot;</span>],
<span class="hljs-meta">... </span>    eval_dataset=dataset[<span class="hljs-string">&quot;test&quot;</span>],
<span class="hljs-meta">... </span>    tokenizer=tokenizer,
<span class="hljs-meta">... </span>    data_collator=data_collator,
<span class="hljs-meta">... </span>)  <span class="hljs-comment"># doctest: +SKIP</span>`}}),Xe=new k({props:{code:"dHJhaW5lci50cmFpbigp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>trainer.train()'}}),jt=new Us({props:{$$slots:{default:[uo]},$$scope:{ctx:v}}}),Ee=new B({}),Be=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbiUwQSUwQW1vZGVsJTIwJTNEJTIwVEZBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModelForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFAutoModelForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;distilbert-base-uncased&quot;</span>)`}}),Le=new k({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;distilbert-base-uncased&quot;</span>)`}}),Pe=new k({props:{code:"ZGVmJTIwdG9rZW5pemVfZGF0YXNldChkYXRhc2V0KSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMHRva2VuaXplcihkYXRhc2V0JTVCJTIydGV4dCUyMiU1RCklMjAlMjAlMjMlMjBkb2N0ZXN0JTNBJTIwJTJCU0tJUA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">tokenize_dataset</span>(<span class="hljs-params">dataset</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> tokenizer(dataset[<span class="hljs-string">&quot;text&quot;</span>])  <span class="hljs-comment"># doctest: +SKIP</span>`}}),qe=new k({props:{code:"ZGF0YXNldCUyMCUzRCUyMGRhdGFzZXQubWFwKHRva2VuaXplX2RhdGFzZXQpJTIwJTIwJTIzJTIwZG9jdGVzdCUzQSUyMCUyQlNLSVAlMEF0Zl9kYXRhc2V0JTIwJTNEJTIwbW9kZWwucHJlcGFyZV90Zl9kYXRhc2V0KCUwQSUyMCUyMCUyMCUyMGRhdGFzZXQlNUIlMjJ0cmFpbiUyMiU1RCUyQyUyMGJhdGNoX3NpemUlM0QxNiUyQyUyMHNodWZmbGUlM0RUcnVlJTJDJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyJTBBKSUyMCUyMCUyMyUyMGRvY3Rlc3QlM0ElMjAlMkJTS0lQ",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.<span class="hljs-built_in">map</span>(tokenize_dataset)  <span class="hljs-comment"># doctest: +SKIP</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tf_dataset = model.prepare_tf_dataset(
<span class="hljs-meta">... </span>    dataset[<span class="hljs-string">&quot;train&quot;</span>], batch_size=<span class="hljs-number">16</span>, shuffle=<span class="hljs-literal">True</span>, tokenizer=tokenizer
<span class="hljs-meta">... </span>)  <span class="hljs-comment"># doctest: +SKIP</span>`}}),De=new k({props:{code:"ZnJvbSUyMHRlbnNvcmZsb3cua2VyYXMub3B0aW1pemVycyUyMGltcG9ydCUyMEFkYW0lMEElMEFtb2RlbC5jb21waWxlKG9wdGltaXplciUzREFkYW0oM2UtNSkpJTIwJTIwJTIzJTIwTm8lMjBsb3NzJTIwYXJndW1lbnQhJTBBbW9kZWwuZml0KHRmX2RhdGFzZXQpJTIwJTIwJTIzJTIwZG9jdGVzdCUzQSUyMCUyQlNLSVA=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> tensorflow.keras.optimizers <span class="hljs-keyword">import</span> Adam

<span class="hljs-meta">&gt;&gt;&gt; </span>model.<span class="hljs-built_in">compile</span>(optimizer=Adam(<span class="hljs-number">3e-5</span>))  <span class="hljs-comment"># No loss argument!</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model.fit(tf_dataset)  <span class="hljs-comment"># doctest: +SKIP</span>`}}),Ke=new B({}),{c(){s=c("meta"),o=p(),e=c("p"),r=p(),u=c("h1"),f=c("a"),U=c("span"),$(Z.$$.fragment),W=p(),G=c("span"),G.textContent=T,R=p(),$(H.$$.fragment),Y=p(),V=c("p"),V.innerHTML=x,N=p(),d=c("p"),d.textContent=C,L=p(),$(kt.$$.fragment),Ss=p(),Jt=c("p"),Jt.textContent=ca,Ps=p(),$(nt.$$.fragment),Qs=p(),P=c("h2"),at=c("a"),Cs=c("span"),$(Ut.$$.fragment),Gn=p(),rs=c("span"),rs.textContent=ma,qs=p(),$(Ct.$$.fragment),Os=p(),Zt=c("p"),Zt.innerHTML=fa,Ds=p(),$(rt.$$.fragment),Ks=p(),Rt=c("table"),Rt.innerHTML=da,tl=p(),Gt=c("p"),Gt.innerHTML=ua,el=p(),$(Wt.$$.fragment),sl=p(),Ht=c("p"),Ht.innerHTML=ha,ll=p(),$(xt.$$.fragment),nl=p(),It=c("p"),It.innerHTML=$a,al=p(),$(Vt.$$.fragment),rl=p(),Xt=c("p"),Xt.innerHTML=ga,ol=p(),$(Nt.$$.fragment),pl=p(),Ft=c("p"),Ft.innerHTML=Ma,il=p(),$(Et.$$.fragment),cl=p(),At=c("p"),At.innerHTML=ya,ml=p(),$(zt.$$.fragment),fl=p(),Bt=c("p"),Bt.innerHTML=ba,dl=p(),$(Yt.$$.fragment),ul=p(),Lt=c("p"),Lt.innerHTML=wa,hl=p(),Q=c("h3"),ot=c("a"),Zs=c("span"),$(St.$$.fragment),Wn=p(),os=c("span"),os.textContent=ja,$l=p(),Pt=c("p"),Pt.innerHTML=Ta,gl=p(),$(Qt.$$.fragment),Ml=p(),$(pt.$$.fragment),yl=p(),qt=c("p"),qt.innerHTML=va,bl=p(),$(Ot.$$.fragment),wl=p(),Dt=c("p"),Dt.innerHTML=_a,jl=p(),q=c("h2"),it=c("a"),Rs=c("span"),$(Kt.$$.fragment),Hn=p(),ps=c("span"),ps.textContent=ka,Tl=p(),$(te.$$.fragment),vl=p(),ee=c("p"),ee.innerHTML=Ja,_l=p(),se=c("p"),se.innerHTML=Ua,kl=p(),O=c("h3"),ct=c("a"),Gs=c("span"),$(le.$$.fragment),xn=p(),is=c("span"),is.textContent=Ca,Jl=p(),ne=c("p"),ne.innerHTML=Za,Ul=p(),ae=c("p"),ae.innerHTML=Ra,Cl=p(),$(re.$$.fragment),Zl=p(),oe=c("p"),oe.textContent=Ga,Rl=p(),$(pe.$$.fragment),Gl=p(),ie=c("p"),ie.textContent=Wa,Wl=p(),ce=c("ul"),ce.innerHTML=Ha,Hl=p(),me=c("p"),me.textContent=xa,xl=p(),$(mt.$$.fragment),Il=p(),$(ft.$$.fragment),Vl=p(),D=c("h3"),dt=c("a"),Ws=c("span"),$(fe.$$.fragment),In=p(),cs=c("span"),cs.textContent=Ia,Xl=p(),$(ut.$$.fragment),Nl=p(),$(ht.$$.fragment),Fl=p(),K=c("h3"),$t=c("a"),Hs=c("span"),$(de.$$.fragment),Vn=p(),ms=c("span"),ms.textContent=Va,El=p(),$(gt.$$.fragment),Al=p(),ue=c("p"),ue.innerHTML=Xa,zl=p(),$(Mt.$$.fragment),Bl=p(),tt=c("h2"),yt=c("a"),xs=c("span"),$(he.$$.fragment),Xn=p(),fs=c("span"),fs.textContent=Na,Yl=p(),$e=c("p"),$e.textContent=Fa,Ll=p(),ge=c("p"),ge.innerHTML=Ea,Sl=p(),$(Me.$$.fragment),Pl=p(),$(bt.$$.fragment),Ql=p(),ye=c("p"),ye.innerHTML=Aa,ql=p(),et=c("h2"),wt=c("a"),Is=c("span"),$(be.$$.fragment),Nn=p(),ds=c("span"),ds.textContent=za,Ol=p(),we=c("p"),we.innerHTML=Ba,Dl=p(),je=c("p"),je.innerHTML=Ya,Kl=p(),X=c("ol"),Te=c("li"),us=c("p"),us.innerHTML=La,Fn=p(),$(ve.$$.fragment),En=p(),_e=c("li"),hs=c("p"),hs.innerHTML=Sa,An=p(),$(ke.$$.fragment),zn=p(),Je=c("li"),$s=c("p"),$s.textContent=Pa,Bn=p(),$(Ue.$$.fragment),Yn=p(),Ce=c("li"),gs=c("p"),gs.textContent=Qa,Ln=p(),$(Ze.$$.fragment),Sn=p(),z=c("li"),Ms=c("p"),Ms.textContent=qa,Pn=p(),$(Re.$$.fragment),Qn=p(),ys=c("p"),ys.innerHTML=Oa,qn=p(),$(Ge.$$.fragment),On=p(),We=c("li"),bs=c("p"),bs.innerHTML=Da,Dn=p(),$(He.$$.fragment),tn=p(),xe=c("p"),xe.innerHTML=Ka,en=p(),$(Ie.$$.fragment),sn=p(),Ve=c("p"),Ve.innerHTML=tr,ln=p(),$(Xe.$$.fragment),nn=p(),$(jt.$$.fragment),an=p(),Ne=c("p"),Ne.innerHTML=er,rn=p(),Fe=c("p"),Fe.innerHTML=sr,on=p(),st=c("h2"),Tt=c("a"),Vs=c("span"),$(Ee.$$.fragment),Kn=p(),ws=c("span"),ws.textContent=lr,pn=p(),Ae=c("p"),Ae.innerHTML=nr,cn=p(),F=c("ol"),ze=c("li"),js=c("p"),js.innerHTML=ar,ta=p(),$(Be.$$.fragment),ea=p(),Ye=c("li"),Ts=c("p"),Ts.textContent=rr,sa=p(),$(Le.$$.fragment),la=p(),Se=c("li"),vs=c("p"),vs.textContent=or,na=p(),$(Pe.$$.fragment),aa=p(),Qe=c("li"),_s=c("p"),_s.innerHTML=pr,ra=p(),$(qe.$$.fragment),oa=p(),Oe=c("li"),ks=c("p"),ks.innerHTML=ir,pa=p(),$(De.$$.fragment),mn=p(),lt=c("h2"),vt=c("a"),Xs=c("span"),$(Ke.$$.fragment),ia=p(),Js=c("span"),Js.textContent=cr,fn=p(),ts=c("p"),ts.textContent=mr,dn=p(),Ns=c("p"),this.h()},l(t){const n=Gr("svelte-1phssyn",document.head);s=m(n,"META",{name:!0,content:!0}),n.forEach(l),o=i(t),e=m(t,"P",{}),_(e).forEach(l),r=i(t),u=m(t,"H1",{class:!0});var es=_(u);f=m(es,"A",{id:!0,class:!0,href:!0});var Fs=_(f);U=m(Fs,"SPAN",{});var Es=_(U);g(Z.$$.fragment,Es),Es.forEach(l),Fs.forEach(l),W=i(es),G=m(es,"SPAN",{"data-svelte-h":!0}),j(G)!=="svelte-12bipl7"&&(G.textContent=T),es.forEach(l),R=i(t),g(H.$$.fragment,t),Y=i(t),V=m(t,"P",{"data-svelte-h":!0}),j(V)!=="svelte-6mg9x4"&&(V.innerHTML=x),N=i(t),d=m(t,"P",{"data-svelte-h":!0}),j(d)!=="svelte-1k0z9pm"&&(d.textContent=C),L=i(t),g(kt.$$.fragment,t),Ss=i(t),Jt=m(t,"P",{"data-svelte-h":!0}),j(Jt)!=="svelte-15tdirm"&&(Jt.textContent=ca),Ps=i(t),g(nt.$$.fragment,t),Qs=i(t),P=m(t,"H2",{class:!0});var ss=_(P);at=m(ss,"A",{id:!0,class:!0,href:!0});var As=_(at);Cs=m(As,"SPAN",{});var zs=_(Cs);g(Ut.$$.fragment,zs),zs.forEach(l),As.forEach(l),Gn=i(ss),rs=m(ss,"SPAN",{"data-svelte-h":!0}),j(rs)!=="svelte-14zr2sx"&&(rs.textContent=ma),ss.forEach(l),qs=i(t),g(Ct.$$.fragment,t),Os=i(t),Zt=m(t,"P",{"data-svelte-h":!0}),j(Zt)!=="svelte-1w7vzh3"&&(Zt.innerHTML=fa),Ds=i(t),g(rt.$$.fragment,t),Ks=i(t),Rt=m(t,"TABLE",{"data-svelte-h":!0}),j(Rt)!=="svelte-1hgozun"&&(Rt.innerHTML=da),tl=i(t),Gt=m(t,"P",{"data-svelte-h":!0}),j(Gt)!=="svelte-azyw3l"&&(Gt.innerHTML=ua),el=i(t),g(Wt.$$.fragment,t),sl=i(t),Ht=m(t,"P",{"data-svelte-h":!0}),j(Ht)!=="svelte-vo05u9"&&(Ht.innerHTML=ha),ll=i(t),g(xt.$$.fragment,t),nl=i(t),It=m(t,"P",{"data-svelte-h":!0}),j(It)!=="svelte-1ojxldp"&&(It.innerHTML=$a),al=i(t),g(Vt.$$.fragment,t),rl=i(t),Xt=m(t,"P",{"data-svelte-h":!0}),j(Xt)!=="svelte-1j1fqr5"&&(Xt.innerHTML=ga),ol=i(t),g(Nt.$$.fragment,t),pl=i(t),Ft=m(t,"P",{"data-svelte-h":!0}),j(Ft)!=="svelte-1h4e9f5"&&(Ft.innerHTML=Ma),il=i(t),g(Et.$$.fragment,t),cl=i(t),At=m(t,"P",{"data-svelte-h":!0}),j(At)!=="svelte-14oiedi"&&(At.innerHTML=ya),ml=i(t),g(zt.$$.fragment,t),fl=i(t),Bt=m(t,"P",{"data-svelte-h":!0}),j(Bt)!=="svelte-1yaj65v"&&(Bt.innerHTML=ba),dl=i(t),g(Yt.$$.fragment,t),ul=i(t),Lt=m(t,"P",{"data-svelte-h":!0}),j(Lt)!=="svelte-1r53z39"&&(Lt.innerHTML=wa),hl=i(t),Q=m(t,"H3",{class:!0});var ls=_(Q);ot=m(ls,"A",{id:!0,class:!0,href:!0});var Bs=_(ot);Zs=m(Bs,"SPAN",{});var Ys=_(Zs);g(St.$$.fragment,Ys),Ys.forEach(l),Bs.forEach(l),Wn=i(ls),os=m(ls,"SPAN",{"data-svelte-h":!0}),j(os)!=="svelte-6emnja"&&(os.textContent=ja),ls.forEach(l),$l=i(t),Pt=m(t,"P",{"data-svelte-h":!0}),j(Pt)!=="svelte-1r35uy"&&(Pt.innerHTML=Ta),gl=i(t),g(Qt.$$.fragment,t),Ml=i(t),g(pt.$$.fragment,t),yl=i(t),qt=m(t,"P",{"data-svelte-h":!0}),j(qt)!=="svelte-94oea8"&&(qt.innerHTML=va),bl=i(t),g(Ot.$$.fragment,t),wl=i(t),Dt=m(t,"P",{"data-svelte-h":!0}),j(Dt)!=="svelte-q9e5jp"&&(Dt.innerHTML=_a),jl=i(t),q=m(t,"H2",{class:!0});var ns=_(q);it=m(ns,"A",{id:!0,class:!0,href:!0});var Ls=_(it);Rs=m(Ls,"SPAN",{});var fr=_(Rs);g(Kt.$$.fragment,fr),fr.forEach(l),Ls.forEach(l),Hn=i(ns),ps=m(ns,"SPAN",{"data-svelte-h":!0}),j(ps)!=="svelte-1wy78nw"&&(ps.textContent=ka),ns.forEach(l),Tl=i(t),g(te.$$.fragment,t),vl=i(t),ee=m(t,"P",{"data-svelte-h":!0}),j(ee)!=="svelte-14dotb2"&&(ee.innerHTML=Ja),_l=i(t),se=m(t,"P",{"data-svelte-h":!0}),j(se)!=="svelte-1jdzkyq"&&(se.innerHTML=Ua),kl=i(t),O=m(t,"H3",{class:!0});var hn=_(O);ct=m(hn,"A",{id:!0,class:!0,href:!0});var dr=_(ct);Gs=m(dr,"SPAN",{});var ur=_(Gs);g(le.$$.fragment,ur),ur.forEach(l),dr.forEach(l),xn=i(hn),is=m(hn,"SPAN",{"data-svelte-h":!0}),j(is)!=="svelte-duoi8l"&&(is.textContent=Ca),hn.forEach(l),Jl=i(t),ne=m(t,"P",{"data-svelte-h":!0}),j(ne)!=="svelte-ec7bh3"&&(ne.innerHTML=Za),Ul=i(t),ae=m(t,"P",{"data-svelte-h":!0}),j(ae)!=="svelte-zox7f"&&(ae.innerHTML=Ra),Cl=i(t),g(re.$$.fragment,t),Zl=i(t),oe=m(t,"P",{"data-svelte-h":!0}),j(oe)!=="svelte-1jksv9d"&&(oe.textContent=Ga),Rl=i(t),g(pe.$$.fragment,t),Gl=i(t),ie=m(t,"P",{"data-svelte-h":!0}),j(ie)!=="svelte-1c10jmq"&&(ie.textContent=Wa),Wl=i(t),ce=m(t,"UL",{"data-svelte-h":!0}),j(ce)!=="svelte-99hc5f"&&(ce.innerHTML=Ha),Hl=i(t),me=m(t,"P",{"data-svelte-h":!0}),j(me)!=="svelte-jype1g"&&(me.textContent=xa),xl=i(t),g(mt.$$.fragment,t),Il=i(t),g(ft.$$.fragment,t),Vl=i(t),D=m(t,"H3",{class:!0});var $n=_(D);dt=m($n,"A",{id:!0,class:!0,href:!0});var hr=_(dt);Ws=m(hr,"SPAN",{});var $r=_(Ws);g(fe.$$.fragment,$r),$r.forEach(l),hr.forEach(l),In=i($n),cs=m($n,"SPAN",{"data-svelte-h":!0}),j(cs)!=="svelte-1uxnbm5"&&(cs.textContent=Ia),$n.forEach(l),Xl=i(t),g(ut.$$.fragment,t),Nl=i(t),g(ht.$$.fragment,t),Fl=i(t),K=m(t,"H3",{class:!0});var gn=_(K);$t=m(gn,"A",{id:!0,class:!0,href:!0});var gr=_($t);Hs=m(gr,"SPAN",{});var Mr=_(Hs);g(de.$$.fragment,Mr),Mr.forEach(l),gr.forEach(l),Vn=i(gn),ms=m(gn,"SPAN",{"data-svelte-h":!0}),j(ms)!=="svelte-1iee4xm"&&(ms.textContent=Va),gn.forEach(l),El=i(t),g(gt.$$.fragment,t),Al=i(t),ue=m(t,"P",{"data-svelte-h":!0}),j(ue)!=="svelte-olv60e"&&(ue.innerHTML=Xa),zl=i(t),g(Mt.$$.fragment,t),Bl=i(t),tt=m(t,"H2",{class:!0});var Mn=_(tt);yt=m(Mn,"A",{id:!0,class:!0,href:!0});var yr=_(yt);xs=m(yr,"SPAN",{});var br=_(xs);g(he.$$.fragment,br),br.forEach(l),yr.forEach(l),Xn=i(Mn),fs=m(Mn,"SPAN",{"data-svelte-h":!0}),j(fs)!=="svelte-11eby6m"&&(fs.textContent=Na),Mn.forEach(l),Yl=i(t),$e=m(t,"P",{"data-svelte-h":!0}),j($e)!=="svelte-pasr7c"&&($e.textContent=Fa),Ll=i(t),ge=m(t,"P",{"data-svelte-h":!0}),j(ge)!=="svelte-1dwc4qs"&&(ge.innerHTML=Ea),Sl=i(t),g(Me.$$.fragment,t),Pl=i(t),g(bt.$$.fragment,t),Ql=i(t),ye=m(t,"P",{"data-svelte-h":!0}),j(ye)!=="svelte-1glm9pk"&&(ye.innerHTML=Aa),ql=i(t),et=m(t,"H2",{class:!0});var yn=_(et);wt=m(yn,"A",{id:!0,class:!0,href:!0});var wr=_(wt);Is=m(wr,"SPAN",{});var jr=_(Is);g(be.$$.fragment,jr),jr.forEach(l),wr.forEach(l),Nn=i(yn),ds=m(yn,"SPAN",{"data-svelte-h":!0}),j(ds)!=="svelte-75dfpj"&&(ds.textContent=za),yn.forEach(l),Ol=i(t),we=m(t,"P",{"data-svelte-h":!0}),j(we)!=="svelte-1ximgfp"&&(we.innerHTML=Ba),Dl=i(t),je=m(t,"P",{"data-svelte-h":!0}),j(je)!=="svelte-1fcrkl9"&&(je.innerHTML=Ya),Kl=i(t),X=m(t,"OL",{});var A=_(X);Te=m(A,"LI",{});var bn=_(Te);us=m(bn,"P",{"data-svelte-h":!0}),j(us)!=="svelte-1ndluax"&&(us.innerHTML=La),Fn=i(bn),g(ve.$$.fragment,bn),bn.forEach(l),En=i(A),_e=m(A,"LI",{});var wn=_(_e);hs=m(wn,"P",{"data-svelte-h":!0}),j(hs)!=="svelte-18oxlfo"&&(hs.innerHTML=Sa),An=i(wn),g(ke.$$.fragment,wn),wn.forEach(l),zn=i(A),Je=m(A,"LI",{});var jn=_(Je);$s=m(jn,"P",{"data-svelte-h":!0}),j($s)!=="svelte-1v961uv"&&($s.textContent=Pa),Bn=i(jn),g(Ue.$$.fragment,jn),jn.forEach(l),Yn=i(A),Ce=m(A,"LI",{});var Tn=_(Ce);gs=m(Tn,"P",{"data-svelte-h":!0}),j(gs)!=="svelte-1pb52rt"&&(gs.textContent=Qa),Ln=i(Tn),g(Ze.$$.fragment,Tn),Tn.forEach(l),Sn=i(A),z=m(A,"LI",{});var _t=_(z);Ms=m(_t,"P",{"data-svelte-h":!0}),j(Ms)!=="svelte-1vmtcn7"&&(Ms.textContent=qa),Pn=i(_t),g(Re.$$.fragment,_t),Qn=i(_t),ys=m(_t,"P",{"data-svelte-h":!0}),j(ys)!=="svelte-1c5wtqo"&&(ys.innerHTML=Oa),qn=i(_t),g(Ge.$$.fragment,_t),_t.forEach(l),On=i(A),We=m(A,"LI",{});var vn=_(We);bs=m(vn,"P",{"data-svelte-h":!0}),j(bs)!=="svelte-1jzjwm2"&&(bs.innerHTML=Da),Dn=i(vn),g(He.$$.fragment,vn),vn.forEach(l),A.forEach(l),tn=i(t),xe=m(t,"P",{"data-svelte-h":!0}),j(xe)!=="svelte-hkenju"&&(xe.innerHTML=Ka),en=i(t),g(Ie.$$.fragment,t),sn=i(t),Ve=m(t,"P",{"data-svelte-h":!0}),j(Ve)!=="svelte-1awed5n"&&(Ve.innerHTML=tr),ln=i(t),g(Xe.$$.fragment,t),nn=i(t),g(jt.$$.fragment,t),an=i(t),Ne=m(t,"P",{"data-svelte-h":!0}),j(Ne)!=="svelte-1cvip2r"&&(Ne.innerHTML=er),rn=i(t),Fe=m(t,"P",{"data-svelte-h":!0}),j(Fe)!=="svelte-ajmll9"&&(Fe.innerHTML=sr),on=i(t),st=m(t,"H2",{class:!0});var _n=_(st);Tt=m(_n,"A",{id:!0,class:!0,href:!0});var Tr=_(Tt);Vs=m(Tr,"SPAN",{});var vr=_(Vs);g(Ee.$$.fragment,vr),vr.forEach(l),Tr.forEach(l),Kn=i(_n),ws=m(_n,"SPAN",{"data-svelte-h":!0}),j(ws)!=="svelte-1lcap8u"&&(ws.textContent=lr),_n.forEach(l),pn=i(t),Ae=m(t,"P",{"data-svelte-h":!0}),j(Ae)!=="svelte-myeyeb"&&(Ae.innerHTML=nr),cn=i(t),F=m(t,"OL",{});var S=_(F);ze=m(S,"LI",{});var kn=_(ze);js=m(kn,"P",{"data-svelte-h":!0}),j(js)!=="svelte-1y6y9l8"&&(js.innerHTML=ar),ta=i(kn),g(Be.$$.fragment,kn),kn.forEach(l),ea=i(S),Ye=m(S,"LI",{});var Jn=_(Ye);Ts=m(Jn,"P",{"data-svelte-h":!0}),j(Ts)!=="svelte-18oe8vk"&&(Ts.textContent=rr),sa=i(Jn),g(Le.$$.fragment,Jn),Jn.forEach(l),la=i(S),Se=m(S,"LI",{});var Un=_(Se);vs=m(Un,"P",{"data-svelte-h":!0}),j(vs)!=="svelte-1vmtcn7"&&(vs.textContent=or),na=i(Un),g(Pe.$$.fragment,Un),Un.forEach(l),aa=i(S),Qe=m(S,"LI",{});var Cn=_(Qe);_s=m(Cn,"P",{"data-svelte-h":!0}),j(_s)!=="svelte-m3lu8g"&&(_s.innerHTML=pr),ra=i(Cn),g(qe.$$.fragment,Cn),Cn.forEach(l),oa=i(S),Oe=m(S,"LI",{});var Zn=_(Oe);ks=m(Zn,"P",{"data-svelte-h":!0}),j(ks)!=="svelte-ffpzwi"&&(ks.innerHTML=ir),pa=i(Zn),g(De.$$.fragment,Zn),Zn.forEach(l),S.forEach(l),mn=i(t),lt=m(t,"H2",{class:!0});var Rn=_(lt);vt=m(Rn,"A",{id:!0,class:!0,href:!0});var _r=_(vt);Xs=m(_r,"SPAN",{});var kr=_(Xs);g(Ke.$$.fragment,kr),kr.forEach(l),_r.forEach(l),ia=i(Rn),Js=m(Rn,"SPAN",{"data-svelte-h":!0}),j(Js)!=="svelte-hxzd21"&&(Js.textContent=cr),Rn.forEach(l),fn=i(t),ts=m(t,"P",{"data-svelte-h":!0}),j(ts)!=="svelte-vqs42a"&&(ts.textContent=mr),dn=i(t),Ns=m(t,"P",{}),_(Ns).forEach(l),this.h()},h(){J(s,"name","hf:doc:metadata"),J(s,"content",JSON.stringify($o)),J(f,"id","quick-tour"),J(f,"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"),J(f,"href","#quick-tour"),J(u,"class","relative group"),J(at,"id","pipeline"),J(at,"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"),J(at,"href","#pipeline"),J(P,"class","relative group"),J(ot,"id","use-another-model-and-tokenizer-in-the-pipeline"),J(ot,"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"),J(ot,"href","#use-another-model-and-tokenizer-in-the-pipeline"),J(Q,"class","relative group"),J(it,"id","autoclass"),J(it,"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"),J(it,"href","#autoclass"),J(q,"class","relative group"),J(ct,"id","autotokenizer"),J(ct,"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"),J(ct,"href","#autotokenizer"),J(O,"class","relative group"),J(dt,"id","automodel"),J(dt,"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"),J(dt,"href","#automodel"),J(D,"class","relative group"),J($t,"id","save-a-model"),J($t,"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"),J($t,"href","#save-a-model"),J(K,"class","relative group"),J(yt,"id","custom-model-builds"),J(yt,"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"),J(yt,"href","#custom-model-builds"),J(tt,"class","relative group"),J(wt,"id","trainer-a-pytorch-optimized-training-loop"),J(wt,"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"),J(wt,"href","#trainer-a-pytorch-optimized-training-loop"),J(et,"class","relative group"),J(Tt,"id","train-with-tensorflow"),J(Tt,"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"),J(Tt,"href","#train-with-tensorflow"),J(st,"class","relative group"),J(vt,"id","whats-next"),J(vt,"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"),J(vt,"href","#whats-next"),J(lt,"class","relative group")},m(t,n){h(document.head,s),a(t,o,n),a(t,e,n),a(t,r,n),a(t,u,n),h(u,f),h(f,U),M(Z,U,null),h(u,W),h(u,G),a(t,R,n),M(H,t,n),a(t,Y,n),a(t,V,n),a(t,N,n),a(t,d,n),a(t,L,n),M(kt,t,n),a(t,Ss,n),a(t,Jt,n),a(t,Ps,n),M(nt,t,n),a(t,Qs,n),a(t,P,n),h(P,at),h(at,Cs),M(Ut,Cs,null),h(P,Gn),h(P,rs),a(t,qs,n),M(Ct,t,n),a(t,Os,n),a(t,Zt,n),a(t,Ds,n),M(rt,t,n),a(t,Ks,n),a(t,Rt,n),a(t,tl,n),a(t,Gt,n),a(t,el,n),M(Wt,t,n),a(t,sl,n),a(t,Ht,n),a(t,ll,n),M(xt,t,n),a(t,nl,n),a(t,It,n),a(t,al,n),M(Vt,t,n),a(t,rl,n),a(t,Xt,n),a(t,ol,n),M(Nt,t,n),a(t,pl,n),a(t,Ft,n),a(t,il,n),M(Et,t,n),a(t,cl,n),a(t,At,n),a(t,ml,n),M(zt,t,n),a(t,fl,n),a(t,Bt,n),a(t,dl,n),M(Yt,t,n),a(t,ul,n),a(t,Lt,n),a(t,hl,n),a(t,Q,n),h(Q,ot),h(ot,Zs),M(St,Zs,null),h(Q,Wn),h(Q,os),a(t,$l,n),a(t,Pt,n),a(t,gl,n),M(Qt,t,n),a(t,Ml,n),M(pt,t,n),a(t,yl,n),a(t,qt,n),a(t,bl,n),M(Ot,t,n),a(t,wl,n),a(t,Dt,n),a(t,jl,n),a(t,q,n),h(q,it),h(it,Rs),M(Kt,Rs,null),h(q,Hn),h(q,ps),a(t,Tl,n),M(te,t,n),a(t,vl,n),a(t,ee,n),a(t,_l,n),a(t,se,n),a(t,kl,n),a(t,O,n),h(O,ct),h(ct,Gs),M(le,Gs,null),h(O,xn),h(O,is),a(t,Jl,n),a(t,ne,n),a(t,Ul,n),a(t,ae,n),a(t,Cl,n),M(re,t,n),a(t,Zl,n),a(t,oe,n),a(t,Rl,n),M(pe,t,n),a(t,Gl,n),a(t,ie,n),a(t,Wl,n),a(t,ce,n),a(t,Hl,n),a(t,me,n),a(t,xl,n),M(mt,t,n),a(t,Il,n),M(ft,t,n),a(t,Vl,n),a(t,D,n),h(D,dt),h(dt,Ws),M(fe,Ws,null),h(D,In),h(D,cs),a(t,Xl,n),M(ut,t,n),a(t,Nl,n),M(ht,t,n),a(t,Fl,n),a(t,K,n),h(K,$t),h($t,Hs),M(de,Hs,null),h(K,Vn),h(K,ms),a(t,El,n),M(gt,t,n),a(t,Al,n),a(t,ue,n),a(t,zl,n),M(Mt,t,n),a(t,Bl,n),a(t,tt,n),h(tt,yt),h(yt,xs),M(he,xs,null),h(tt,Xn),h(tt,fs),a(t,Yl,n),a(t,$e,n),a(t,Ll,n),a(t,ge,n),a(t,Sl,n),M(Me,t,n),a(t,Pl,n),M(bt,t,n),a(t,Ql,n),a(t,ye,n),a(t,ql,n),a(t,et,n),h(et,wt),h(wt,Is),M(be,Is,null),h(et,Nn),h(et,ds),a(t,Ol,n),a(t,we,n),a(t,Dl,n),a(t,je,n),a(t,Kl,n),a(t,X,n),h(X,Te),h(Te,us),h(Te,Fn),M(ve,Te,null),h(X,En),h(X,_e),h(_e,hs),h(_e,An),M(ke,_e,null),h(X,zn),h(X,Je),h(Je,$s),h(Je,Bn),M(Ue,Je,null),h(X,Yn),h(X,Ce),h(Ce,gs),h(Ce,Ln),M(Ze,Ce,null),h(X,Sn),h(X,z),h(z,Ms),h(z,Pn),M(Re,z,null),h(z,Qn),h(z,ys),h(z,qn),M(Ge,z,null),h(X,On),h(X,We),h(We,bs),h(We,Dn),M(He,We,null),a(t,tn,n),a(t,xe,n),a(t,en,n),M(Ie,t,n),a(t,sn,n),a(t,Ve,n),a(t,ln,n),M(Xe,t,n),a(t,nn,n),M(jt,t,n),a(t,an,n),a(t,Ne,n),a(t,rn,n),a(t,Fe,n),a(t,on,n),a(t,st,n),h(st,Tt),h(Tt,Vs),M(Ee,Vs,null),h(st,Kn),h(st,ws),a(t,pn,n),a(t,Ae,n),a(t,cn,n),a(t,F,n),h(F,ze),h(ze,js),h(ze,ta),M(Be,ze,null),h(F,ea),h(F,Ye),h(Ye,Ts),h(Ye,sa),M(Le,Ye,null),h(F,la),h(F,Se),h(Se,vs),h(Se,na),M(Pe,Se,null),h(F,aa),h(F,Qe),h(Qe,_s),h(Qe,ra),M(qe,Qe,null),h(F,oa),h(F,Oe),h(Oe,ks),h(Oe,pa),M(De,Oe,null),a(t,mn,n),a(t,lt,n),h(lt,vt),h(vt,Xs),M(Ke,Xs,null),h(lt,ia),h(lt,Js),a(t,fn,n),a(t,ts,n),a(t,dn,n),a(t,Ns,n),un=!0},p(t,[n]){const es={};n&2&&(es.$$scope={dirty:n,ctx:t}),nt.$set(es);const Fs={};n&2&&(Fs.$$scope={dirty:n,ctx:t}),rt.$set(Fs);const Es={};n&2&&(Es.$$scope={dirty:n,ctx:t}),pt.$set(Es);const ss={};n&2&&(ss.$$scope={dirty:n,ctx:t}),mt.$set(ss);const As={};n&2&&(As.$$scope={dirty:n,ctx:t}),ft.$set(As);const zs={};n&2&&(zs.$$scope={dirty:n,ctx:t}),ut.$set(zs);const ls={};n&2&&(ls.$$scope={dirty:n,ctx:t}),ht.$set(ls);const Bs={};n&2&&(Bs.$$scope={dirty:n,ctx:t}),gt.$set(Bs);const Ys={};n&2&&(Ys.$$scope={dirty:n,ctx:t}),Mt.$set(Ys);const ns={};n&2&&(ns.$$scope={dirty:n,ctx:t}),bt.$set(ns);const Ls={};n&2&&(Ls.$$scope={dirty:n,ctx:t}),jt.$set(Ls)},i(t){un||(y(Z.$$.fragment,t),y(H.$$.fragment,t),y(kt.$$.fragment,t),y(nt.$$.fragment,t),y(Ut.$$.fragment,t),y(Ct.$$.fragment,t),y(rt.$$.fragment,t),y(Wt.$$.fragment,t),y(xt.$$.fragment,t),y(Vt.$$.fragment,t),y(Nt.$$.fragment,t),y(Et.$$.fragment,t),y(zt.$$.fragment,t),y(Yt.$$.fragment,t),y(St.$$.fragment,t),y(Qt.$$.fragment,t),y(pt.$$.fragment,t),y(Ot.$$.fragment,t),y(Kt.$$.fragment,t),y(te.$$.fragment,t),y(le.$$.fragment,t),y(re.$$.fragment,t),y(pe.$$.fragment,t),y(mt.$$.fragment,t),y(ft.$$.fragment,t),y(fe.$$.fragment,t),y(ut.$$.fragment,t),y(ht.$$.fragment,t),y(de.$$.fragment,t),y(gt.$$.fragment,t),y(Mt.$$.fragment,t),y(he.$$.fragment,t),y(Me.$$.fragment,t),y(bt.$$.fragment,t),y(be.$$.fragment,t),y(ve.$$.fragment,t),y(ke.$$.fragment,t),y(Ue.$$.fragment,t),y(Ze.$$.fragment,t),y(Re.$$.fragment,t),y(Ge.$$.fragment,t),y(He.$$.fragment,t),y(Ie.$$.fragment,t),y(Xe.$$.fragment,t),y(jt.$$.fragment,t),y(Ee.$$.fragment,t),y(Be.$$.fragment,t),y(Le.$$.fragment,t),y(Pe.$$.fragment,t),y(qe.$$.fragment,t),y(De.$$.fragment,t),y(Ke.$$.fragment,t),un=!0)},o(t){b(Z.$$.fragment,t),b(H.$$.fragment,t),b(kt.$$.fragment,t),b(nt.$$.fragment,t),b(Ut.$$.fragment,t),b(Ct.$$.fragment,t),b(rt.$$.fragment,t),b(Wt.$$.fragment,t),b(xt.$$.fragment,t),b(Vt.$$.fragment,t),b(Nt.$$.fragment,t),b(Et.$$.fragment,t),b(zt.$$.fragment,t),b(Yt.$$.fragment,t),b(St.$$.fragment,t),b(Qt.$$.fragment,t),b(pt.$$.fragment,t),b(Ot.$$.fragment,t),b(Kt.$$.fragment,t),b(te.$$.fragment,t),b(le.$$.fragment,t),b(re.$$.fragment,t),b(pe.$$.fragment,t),b(mt.$$.fragment,t),b(ft.$$.fragment,t),b(fe.$$.fragment,t),b(ut.$$.fragment,t),b(ht.$$.fragment,t),b(de.$$.fragment,t),b(gt.$$.fragment,t),b(Mt.$$.fragment,t),b(he.$$.fragment,t),b(Me.$$.fragment,t),b(bt.$$.fragment,t),b(be.$$.fragment,t),b(ve.$$.fragment,t),b(ke.$$.fragment,t),b(Ue.$$.fragment,t),b(Ze.$$.fragment,t),b(Re.$$.fragment,t),b(Ge.$$.fragment,t),b(He.$$.fragment,t),b(Ie.$$.fragment,t),b(Xe.$$.fragment,t),b(jt.$$.fragment,t),b(Ee.$$.fragment,t),b(Be.$$.fragment,t),b(Le.$$.fragment,t),b(Pe.$$.fragment,t),b(qe.$$.fragment,t),b(De.$$.fragment,t),b(Ke.$$.fragment,t),un=!1},d(t){t&&(l(o),l(e),l(r),l(u),l(R),l(Y),l(V),l(N),l(d),l(L),l(Ss),l(Jt),l(Ps),l(Qs),l(P),l(qs),l(Os),l(Zt),l(Ds),l(Ks),l(Rt),l(tl),l(Gt),l(el),l(sl),l(Ht),l(ll),l(nl),l(It),l(al),l(rl),l(Xt),l(ol),l(pl),l(Ft),l(il),l(cl),l(At),l(ml),l(fl),l(Bt),l(dl),l(ul),l(Lt),l(hl),l(Q),l($l),l(Pt),l(gl),l(Ml),l(yl),l(qt),l(bl),l(wl),l(Dt),l(jl),l(q),l(Tl),l(vl),l(ee),l(_l),l(se),l(kl),l(O),l(Jl),l(ne),l(Ul),l(ae),l(Cl),l(Zl),l(oe),l(Rl),l(Gl),l(ie),l(Wl),l(ce),l(Hl),l(me),l(xl),l(Il),l(Vl),l(D),l(Xl),l(Nl),l(Fl),l(K),l(El),l(Al),l(ue),l(zl),l(Bl),l(tt),l(Yl),l($e),l(Ll),l(ge),l(Sl),l(Pl),l(Ql),l(ye),l(ql),l(et),l(Ol),l(we),l(Dl),l(je),l(Kl),l(X),l(tn),l(xe),l(en),l(sn),l(Ve),l(ln),l(nn),l(an),l(Ne),l(rn),l(Fe),l(on),l(st),l(pn),l(Ae),l(cn),l(F),l(mn),l(lt),l(fn),l(ts),l(dn),l(Ns)),l(s),w(Z),w(H,t),w(kt,t),w(nt,t),w(Ut),w(Ct,t),w(rt,t),w(Wt,t),w(xt,t),w(Vt,t),w(Nt,t),w(Et,t),w(zt,t),w(Yt,t),w(St),w(Qt,t),w(pt,t),w(Ot,t),w(Kt),w(te,t),w(le),w(re,t),w(pe,t),w(mt,t),w(ft,t),w(fe),w(ut,t),w(ht,t),w(de),w(gt,t),w(Mt,t),w(he),w(Me,t),w(bt,t),w(be),w(ve),w(ke),w(Ue),w(Ze),w(Re),w(Ge),w(He),w(Ie,t),w(Xe,t),w(jt,t),w(Ee),w(Be),w(Le),w(Pe),w(qe),w(De),w(Ke)}}}const $o={local:"quick-tour",sections:[{local:"pipeline",sections:[{local:"use-another-model-and-tokenizer-in-the-pipeline",title:"파이프라인에서 다른 모델과 토크나이저 사용하기 "}],title:"파이프라인 "},{local:"autoclass",sections:[{local:"autotokenizer",title:"AutoTokenizer "},{local:"automodel",title:"AutoModel "},{local:"save-a-model",title:"모델 저장하기 "}],title:"AutoClass "},{local:"custom-model-builds",title:"커스텀 모델 구축하기 "},{local:"trainer-a-pytorch-optimized-training-loop",title:"Trainer - PyTorch에 최적화된 훈련 루프 "},{local:"train-with-tensorflow",title:"TensorFlow로 훈련시키기 "},{local:"whats-next",title:"다음 단계는 무엇인가요? "}],title:"둘러보기 "};function go(v){return Cr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ko extends Zr{constructor(s){super(),Rr(this,s,go,ho,Ur,{})}}export{ko as component};
