import{s as Ur,o as Cr,n as I}from"../chunks/scheduler.56730f09.js";import{S as Zr,i as Rr,g as c,s as o,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 as n,w as M,d as y,t as b,x as w}from"../chunks/index.ba464511.js";import{T as Us}from"../chunks/Tip.70442610.js";import{Y as Jr}from"../chunks/Youtube.7b20230c.js";import{I as B}from"../chunks/IconCopyLink.89bde88e.js";import{C as k}from"../chunks/CodeBlock.2302fd0d.js";import{D as Wr}from"../chunks/DocNotebookDropdown.68fd8653.js";import{F as ns,M as E}from"../chunks/Markdown.6303afae.js";function Hr(v){let s,p;return s=new k({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRvcmNo",highlighted:"pip install torch",wrap:!1}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p:I,i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function xr(v){let s,p;return s=new E({props:{$$slots:{default:[Hr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Ir(v){let s,p;return s=new k({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRlbnNvcmZsb3c=",highlighted:"pip install tensorflow",wrap:!1}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p:I,i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Vr(v){let s,p;return s=new E({props:{$$slots:{default:[Ir]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Xr(v){let s,p='사용 가능한 작업의 전체 목록은 <a href="./main_classes/pipelines">Pipelines API 참조</a>를 확인하세요.';return{c(){s=c("p"),s.innerHTML=p},l(t){s=m(t,"P",{"data-svelte-h":!0}),j(s)!=="svelte-jc1org"&&(s.innerHTML=p)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function Nr(v){let s,p="<code>AutoModelForSequenceClassification</code>과 <code>AutoTokenizer</code>를 사용하여 사전 훈련된 모델과 관련된 토크나이저를 로드하세요 (다음 섹션에서 <code>AutoClass</code>에 대해 더 자세히 알아보겠습니다):",t,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)`,wrap:!1}}),{c(){s=c("p"),s.innerHTML=p,t=o(),$(r.$$.fragment)},l(f){s=m(f,"P",{"data-svelte-h":!0}),j(s)!=="svelte-2p9zoo"&&(s.innerHTML=p),t=i(f),g(r.$$.fragment,f)},m(f,U){n(f,s,U),n(f,t,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(t)),w(r,f)}}}function Fr(v){let s,p;return s=new E({props:{$$slots:{default:[Nr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Er(v){let s,p="<code>TFAutoModelForSequenceClassification</code>과 <code>AutoTokenizer</code>를 사용하여 사전 훈련된 모델과 관련된 토크나이저를 로드하세요 (다음 섹션에서 <code>TFAutoClass</code>에 대해 더 자세히 알아보겠습니다):",t,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)`,wrap:!1}}),{c(){s=c("p"),s.innerHTML=p,t=o(),$(r.$$.fragment)},l(f){s=m(f,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1kci4ds"&&(s.innerHTML=p),t=i(f),g(r.$$.fragment,f)},m(f,U){n(f,s,U),n(f,t,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(t)),w(r,f)}}}function Ar(v){let s,p;return s=new E({props:{$$slots:{default:[Er]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function zr(v){let s,p;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>)`,wrap:!1}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p:I,i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Br(v){let s,p;return s=new E({props:{$$slots:{default:[zr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Yr(v){let s,p;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>)`,wrap:!1}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p:I,i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Lr(v){let s,p;return s=new E({props:{$$slots:{default:[Yr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Sr(v){let s,p='<a href="./preprocessing">전처리</a> 튜토리얼을 참조하시면 토큰화에 대한 자세한 설명과 함께 이미지, 오디오와 멀티모달 입력을 전처리하기 위한 <code>AutoImageProcessor</code>와 <code>AutoFeatureExtractor</code>, <code>AutoProcessor</code>의 사용방법도 알 수 있습니다.';return{c(){s=c("p"),s.innerHTML=p},l(t){s=m(t,"P",{"data-svelte-h":!0}),j(s)!=="svelte-7pesi2"&&(s.innerHTML=p)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function Pr(v){let s,p='<code>AutoModel</code> 클래스에서 지원하는 과업에 대해서는 <a href="./task_summary">과업 요약</a>을 참조하세요.';return{c(){s=c("p"),s.innerHTML=p},l(t){s=m(t,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1xki2u8"&&(s.innerHTML=p)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function Qr(v){let s,p="🤗 Transformers는 사전 훈련된 인스턴스를 간단하고 통합된 방법으로 로드할 수 있습니다. 즉, <code>AutoTokenizer</code>처럼 <code>AutoModel</code>을 로드할 수 있습니다. 유일한 차이점은 과업에 알맞은 <code>AutoModel</code>을 선택해야 한다는 점입니다. 텍스트 (또는 시퀀스) 분류의 경우 <code>AutoModelForSequenceClassification</code>을 로드해야 합니다:",t,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)`,wrap:!1}}),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)',wrap:!1}}),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;)`,wrap:!1}}),{c(){s=c("p"),s.innerHTML=p,t=o(),$(r.$$.fragment),u=o(),$(f.$$.fragment),U=o(),Z=c("p"),Z.innerHTML=W,G=o(),$(T.$$.fragment),R=o(),H=c("p"),H.innerHTML=Y,V=o(),$(x.$$.fragment)},l(d){s=m(d,"P",{"data-svelte-h":!0}),j(s)!=="svelte-xkn7yr"&&(s.innerHTML=p),t=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){n(d,s,C),n(d,t,C),M(r,d,C),n(d,u,C),M(f,d,C),n(d,U,C),n(d,Z,C),n(d,G,C),M(T,d,C),n(d,R,C),n(d,H,C),n(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(t),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,p;return s=new E({props:{$$slots:{default:[Qr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function Or(v){let s,p='<code>AutoModel</code> 클래스에서 지원하는 과업에 대해서는 <a href="./task_summary">과업 요약</a>을 참조하세요.';return{c(){s=c("p"),s.innerHTML=p},l(t){s=m(t,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1xki2u8"&&(s.innerHTML=p)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function Dr(v){let s,p="🤗 Transformers는 사전 훈련된 인스턴스를 간단하고 통합된 방법으로 로드할 수 있습니다. 즉, <code>AutoTokenizer</code>처럼 <code>TFAutoModel</code>을 로드할 수 있습니다. 유일한 차이점은 과업에 알맞은 <code>TFAutoModel</code>을 선택해야 한다는 점입니다. 텍스트 (또는 시퀀스) 분류의 경우 <code>TFAutoModelForSequenceClassification</code>을 로드해야 합니다:",t,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)`,wrap:!1}}),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)',wrap:!1}}),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`,wrap:!1}}),{c(){s=c("p"),s.innerHTML=p,t=o(),$(r.$$.fragment),u=o(),$(f.$$.fragment),U=o(),Z=c("p"),Z.textContent=W,G=o(),$(T.$$.fragment),R=o(),H=c("p"),H.innerHTML=Y,V=o(),$(x.$$.fragment)},l(d){s=m(d,"P",{"data-svelte-h":!0}),j(s)!=="svelte-18fnh6p"&&(s.innerHTML=p),t=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){n(d,s,C),n(d,t,C),M(r,d,C),n(d,u,C),M(f,d,C),n(d,U,C),n(d,Z,C),n(d,G,C),M(T,d,C),n(d,R,C),n(d,H,C),n(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(t),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,p;return s=new E({props:{$$slots:{default:[Dr]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function ep(v){let s,p="모든 🤗 Transformers 모델(PyTorch 또는 TensorFlow)은 (softmax와 같은) 최종 활성화 함수 <em>이전에</em> 텐서를 출력합니다. 왜냐하면 최종 활성화 함수의 출력은 종종 손실 함수 출력과 결합되기 때문입니다. 모델 출력은 특수한 데이터 클래스이므로 IDE에서 자동 완성됩니다. 모델 출력은 튜플이나 딕셔너리처럼 동작하며 (정수, 슬라이스 또는 문자열로 인덱싱 가능), None인 속성은 무시됩니다.";return{c(){s=c("p"),s.innerHTML=p},l(t){s=m(t,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1hw7pec"&&(s.innerHTML=p)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function tp(v){let s,p="미세조정된 모델을 토크나이저와 함께 저장하려면 <code>PreTrainedModel.save_pretrained()</code>를 사용하세요:",t,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)`,wrap:!1}}),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>)',wrap:!1}}),{c(){s=c("p"),s.innerHTML=p,t=o(),$(r.$$.fragment),u=o(),f=c("p"),f.innerHTML=U,Z=o(),$(W.$$.fragment)},l(T){s=m(T,"P",{"data-svelte-h":!0}),j(s)!=="svelte-17ceysc"&&(s.innerHTML=p),t=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){n(T,s,R),n(T,t,R),M(r,T,R),n(T,u,R),n(T,f,R),n(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(t),l(u),l(f),l(Z)),w(r,T),w(W,T)}}}function sp(v){let s,p;return s=new E({props:{$$slots:{default:[tp]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function lp(v){let s,p="미세조정된 모델을 토크나이저와 함께 저장하려면 <code>TFPreTrainedModel.save_pretrained()</code>를 사용하세요:",t,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)`,wrap:!1}}),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>)',wrap:!1}}),{c(){s=c("p"),s.innerHTML=p,t=o(),$(r.$$.fragment),u=o(),f=c("p"),f.innerHTML=U,Z=o(),$(W.$$.fragment)},l(T){s=m(T,"P",{"data-svelte-h":!0}),j(s)!=="svelte-8fihd2"&&(s.innerHTML=p),t=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){n(T,s,R),n(T,t,R),M(r,T,R),n(T,u,R),n(T,f,R),n(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(t),l(u),l(f),l(Z)),w(r,T),w(W,T)}}}function ap(v){let s,p;return s=new E({props:{$$slots:{default:[lp]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function np(v){let s,p;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>)`,wrap:!1}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p:I,i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function rp(v){let s,p;return s=new E({props:{$$slots:{default:[np]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function pp(v){let s,p;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>)`,wrap:!1}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p:I,i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function op(v){let s,p;return s=new E({props:{$$slots:{default:[pp]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function ip(v){let s,p="<code>AutoModel.from_config()</code>를 사용하여 바꾼 구성대로 모델을 생성하세요:",t,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)`,wrap:!1}}),{c(){s=c("p"),s.innerHTML=p,t=o(),$(r.$$.fragment)},l(f){s=m(f,"P",{"data-svelte-h":!0}),j(s)!=="svelte-e2zo3n"&&(s.innerHTML=p),t=i(f),g(r.$$.fragment,f)},m(f,U){n(f,s,U),n(f,t,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(t)),w(r,f)}}}function cp(v){let s,p;return s=new E({props:{$$slots:{default:[ip]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function mp(v){let s,p="<code>TFAutoModel.from_config()</code>를 사용하여 바꾼 구성대로 모델을 생성하세요:",t,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)`,wrap:!1}}),{c(){s=c("p"),s.innerHTML=p,t=o(),$(r.$$.fragment)},l(f){s=m(f,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1j96frd"&&(s.innerHTML=p),t=i(f),g(r.$$.fragment,f)},m(f,U){n(f,s,U),n(f,t,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(t)),w(r,f)}}}function fp(v){let s,p;return s=new E({props:{$$slots:{default:[mp]},$$scope:{ctx:v}}}),{c(){$(s.$$.fragment)},l(t){g(s.$$.fragment,t)},m(t,r){M(s,t,r),p=!0},p(t,r){const u={};r&2&&(u.$$scope={dirty:r,ctx:t}),s.$set(u)},i(t){p||(y(s.$$.fragment,t),p=!0)},o(t){b(s.$$.fragment,t),p=!1},d(t){w(s,t)}}}function dp(v){let s,p="번역이나 요약과 같이 시퀀스-시퀀스 모델을 사용하는 과업에는 <code>Seq2SeqTrainer</code> 및 <code>Seq2SeqTrainingArguments</code> 클래스를 사용하세요.";return{c(){s=c("p"),s.innerHTML=p},l(t){s=m(t,"P",{"data-svelte-h":!0}),j(s)!=="svelte-82jwth"&&(s.innerHTML=p)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function up(v){let s,p,t,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,ke,Ss,Je,cn="또한 선호하는 머신 러닝 프레임워크를 설치해야 합니다:",Ps,ae,Qs,P,ne,Cs,Ue,Ra,rs,mn="파이프라인",qs,Ce,Os,Ze,fn='<a href="./main_classes/pipelines"><code>pipeline</code></a>은 사전 훈련된 모델로 추론하기에 가장 쉽고 빠른 방법입니다. <code>pipeline()</code>은 여러 모달리티에서 다양한 과업을 쉽게 처리할 수 있으며, 아래 표에 표시된 몇 가지 과업을 기본적으로 지원합니다:',Ds,re,Ks,Re,dn="<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>",el,Ge,un="먼저 <code>pipeline()</code>의 인스턴스를 생성하고 사용할 작업을 지정합니다. 이 가이드에서는 감정 분석을 위해 <code>pipeline()</code>을 사용하는 예제를 보여드리겠습니다:",tl,We,sl,He,hn='<code>pipeline()</code>은 감정 분석을 위한 <a href="https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english" rel="nofollow">사전 훈련된 모델</a>과 토크나이저를 자동으로 다운로드하고 캐시합니다. 이제 <code>classifier</code>를 대상 텍스트에 사용할 수 있습니다:',ll,xe,al,Ie,$n="만약 입력이 여러 개 있는 경우, 입력을 리스트로 <code>pipeline()</code>에 전달하여, 사전 훈련된 모델의 출력을 딕셔너리로 이루어진 리스트 형태로 받을 수 있습니다:",nl,Ve,rl,Xe,gn="<code>pipeline()</code>은 주어진 과업에 관계없이 데이터셋 전부를 순회할 수도 있습니다. 이 예제에서는 자동 음성 인식을 과업으로 선택해 보겠습니다:",pl,Ne,ol,Fe,Mn='데이터셋을 로드할 차례입니다. (자세한 내용은 🤗 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,Ee,cl,Ae,yn='데이터셋의 샘플링 레이트가 기존 모델인 <a href="https://huggingface.co/facebook/wav2vec2-base-960h" rel="nofollow"><code>facebook/wav2vec2-base-960h</code></a>의 훈련 당시 샘플링 레이트와 일치하는지 확인해야 합니다:',ml,ze,fl,Be,bn="<code>&quot;audio&quot;</code> 열을 호출하면 자동으로 오디오 파일을 가져와서 리샘플링합니다. 첫 4개 샘플에서 원시 웨이브폼 배열을 추출하고 파이프라인에 리스트로 전달하세요:",dl,Ye,ul,Le,wn='음성이나 비전과 같이 입력이 큰 대규모 데이터셋의 경우, 모든 입력을 메모리에 로드하려면 리스트 대신 제너레이터 형태로 전달해야 합니다. 자세한 내용은 <a href="./main_classes/pipelines">Pipelines API 참조</a>를 확인하세요.',hl,Q,pe,Zs,Se,Ga,ps,jn="파이프라인에서 다른 모델과 토크나이저 사용하기",$l,Pe,Tn='<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,Qe,Ml,oe,yl,qe,vn="<code>pipeline()</code>에서 모델과 토크나이저를 지정하면, 이제 <code>classifier</code>를 프랑스어 텍스트에 적용할 수 있습니다:",bl,Oe,wl,De,_n='마땅한 모델을 찾을 수 없는 경우 데이터를 기반으로 사전 훈련된 모델을 미세조정해야 합니다. 미세조정 방법에 대한 자세한 내용은 <a href="./training">미세조정 튜토리얼</a>을 참조하세요. 사전 훈련된 모델을 미세조정한 후에는 모델을 Hub의 커뮤니티와 공유하여 머신러닝 민주화에 기여해주세요! 🤗',jl,q,ie,Rs,Ke,Wa,os,kn="AutoClass",Tl,et,vl,tt,Jn='<code>AutoModelForSequenceClassification</code>과 <code>AutoTokenizer</code> 클래스는 위에서 다룬 <code>pipeline()</code>의 기능을 구현하는 데 사용됩니다. <a href="./model_doc/auto">AutoClass</a>는 사전 훈련된 모델의 아키텍처를 이름이나 경로에서 자동으로 가져오는 ‘바로가기’입니다. 과업에 적합한 <code>AutoClass</code>를 선택하고 해당 전처리 클래스를 선택하기만 하면 됩니다.',_l,st,Un="이전 섹션의 예제로 돌아가서 <code>pipeline()</code>의 결과를 <code>AutoClass</code>를 활용해 복제하는 방법을 살펴보겠습니다.",kl,O,ce,Gs,lt,Ha,is,Cn="AutoTokenizer",Jl,at,Zn='토크나이저는 텍스트를 모델의 입력으로 사용하기 위해 숫자 배열 형태로 전처리하는 역할을 담당합니다. 토큰화 과정에는 단어를 어디에서 끊을지, 어느 수준까지 나눌지와 같은 여러 규칙들이 있습니다 (토큰화에 대한 자세한 내용은 <a href="./tokenizer_summary">토크나이저 요약</a>을 참조하세요). 가장 중요한 점은 모델이 사전 훈련된 모델과 동일한 토큰화 규칙을 사용하도록 동일한 모델 이름으로 토크나이저를 인스턴스화해야 한다는 것입니다.',Ul,nt,Rn="<code>AutoTokenizer</code>로 토크나이저를 로드하세요:",Cl,rt,Zl,pt,Gn="텍스트를 토크나이저에 전달하세요:",Rl,ot,Gl,it,Wn="토크나이저는 다음을 포함한 딕셔너리를 반환합니다:",Wl,ct,Hn='<li><a href="./glossary#input-ids">input_ids</a>: 토큰의 숫자 표현.</li> <li><a href=".glossary#attention-mask">attention_mask</a>: 어떤 토큰에 주의를 기울여야 하는지를 나타냅니다.</li>',Hl,mt,xn="토크나이저는 입력을 리스트 형태로도 받을 수 있으며, 텍스트를 패딩하고 잘라내어 일정한 길이의 묶음을 반환할 수도 있습니다:",xl,me,Il,fe,Vl,D,de,Ws,ft,xa,cs,In="AutoModel",Xl,ue,Nl,he,Fl,K,$e,Hs,dt,Ia,ms,Vn="모델 저장하기",El,ge,Al,ut,Xn="🤗 Transformers의 멋진 기능 중 하나는 모델을 PyTorch 또는 TensorFlow 모델로 저장해뒀다가 다른 프레임워크로 다시 로드할 수 있는 점입니다. <code>from_pt</code> 또는 <code>from_tf</code> 매개변수를 사용하여 모델을 한 프레임워크에서 다른 프레임워크로 변환할 수 있습니다:",zl,Me,Bl,ee,ye,xs,ht,Va,fs,Nn="커스텀 모델 구축하기",Yl,$t,Fn="모델의 구성 클래스를 수정하여 모델의 구조를 바꿀 수 있습니다. (은닉층이나 어텐션 헤드의 수와 같은) 모델의 속성은 구성에서 지정되기 때문입니다. 커스텀 구성 클래스로 모델을 만들면 처음부터 시작해야 합니다. 모델 속성은 무작위로 초기화되므로 의미 있는 결과를 얻으려면 먼저 모델을 훈련시켜야 합니다.",Ll,gt,En="먼저 <code>AutoConfig</code>를 가져오고 수정하고 싶은 사전학습된 모델을 로드하세요. <code>AutoConfig.from_pretrained()</code> 내부에서 (어텐션 헤드 수와 같이) 변경하려는 속성를 지정할 수 있습니다:",Sl,Mt,Pl,be,Ql,yt,An='커스텀 구성에 대한 자세한 내용은 <a href="./create_a_model">커스텀 아키텍처 만들기</a> 가이드를 확인하세요.',ql,te,we,Is,bt,Xa,ds,zn="Trainer - PyTorch에 최적화된 훈련 루프",Ol,wt,Bn='모든 모델은 <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,jt,Yn="과업에 따라 다르지만 일반적으로 <code>Trainer</code>에 다음 매개변수를 전달합니다:",Kl,X,Tt,us,Ln='<code>PreTrainedModel</code> 또는 <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow"><code>torch.nn.Module</code></a>로 시작합니다:',Na,vt,Fa,_t,hs,Sn="<code>TrainingArguments</code>는 학습률, 배치 크기, 훈련할 에포크 수와 같은 모델 하이퍼파라미터를 포함합니다. 훈련 인자를 지정하지 않으면 기본값이 사용됩니다:",Ea,kt,Aa,Jt,$s,Pn="토크나이저, 이미지 프로세서, 특징 추출기(feature extractor) 또는 프로세서와 전처리 클래스를 로드하세요:",za,Ut,Ba,Ct,gs,Qn="데이터셋을 로드하세요:",Ya,Zt,La,z,Ms,qn="데이터셋을 토큰화하는 함수를 생성하세요:",Sa,Rt,Pa,ys,On="그리고 <code>map</code>로 데이터셋 전체에 적용하세요:",Qa,Gt,qa,Wt,bs,Dn="<code>DataCollatorWithPadding</code>을 사용하여 데이터셋의 표본 묶음을 만드세요:",Oa,Ht,ea,xt,Kn="이제 위의 모든 클래스를 <code>Trainer</code>로 모으세요:",ta,It,sa,Vt,er="준비가 되었으면 <code>train()</code>을 호출하여 훈련을 시작하세요:",la,Xt,aa,je,na,Nt,tr="<code>Trainer</code> 내의 메서드를 서브클래스화하여 훈련 루프를 바꿀 수도 있습니다. 이러면 손실 함수, 옵티마이저, 스케줄러와 같은 기능 또한 바꿀 수 있게 됩니다. 변경 가능한 메소드에 대해서는 <code>Trainer</code> 문서를 참고하세요.",ra,Ft,sr='훈련 루프를 수정하는 다른 방법은 <a href="./main_classes/callbacks">Callbacks</a>를 사용하는 것입니다. Callbacks로 다른 라이브러리와 통합하고, 훈련 루프를 체크하여 진행 상황을 보고받거나, 훈련을 조기에 중단할 수 있습니다. Callbacks은 훈련 루프 자체를 바꾸지는 않습니다. 손실 함수와 같은 것을 바꾸려면 <code>Trainer</code>를 서브클래스화해야 합니다.',pa,se,Te,Vs,Et,Da,ws,lr="TensorFlow로 훈련시키기",oa,At,ar='모든 모델은 <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> 메소드로 바로 훈련을 시작할 수 있습니다.',ia,F,zt,js,nr='<code>TFPreTrainedModel</code> 또는 <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow"><code>tf.keras.Model</code></a>로 시작합니다:',Ka,Bt,en,Yt,Ts,rr="토크나이저, 이미지 프로세서, 특징 추출기(feature extractor) 또는 프로세서와 같은 전처리 클래스를 로드하세요:",tn,Lt,sn,St,vs,pr="데이터셋을 토큰화하는 함수를 생성하세요:",ln,Pt,an,Qt,_s,or="<code>map</code>을 사용하여 전체 데이터셋에 토큰화 함수를 적용하고, 데이터셋과 토크나이저를 <code>prepare_tf_dataset()</code>에 전달하세요. 배치 크기를 변경하거나 데이터셋을 섞을 수도 있습니다:",nn,qt,rn,Ot,ks,ir="준비되었으면 <code>compile</code> 및 <code>fit</code>를 호출하여 훈련을 시작하세요. 🤗 Transformers의 모든 모델은 과업과 관련된 기본 손실 함수를 가지고 있으므로 명시적으로 지정하지 않아도 됩니다:",pn,Dt,ca,le,ve,Xs,Kt,on,Js,cr="다음 단계는 무엇인가요?",ma,es,mr="🤗 Transformers 둘러보기를 모두 읽으셨다면, 가이드를 살펴보고 더 구체적인 것을 수행하는 방법을 알아보세요. 이를테면 커스텀 모델 구축하는 방법, 과업에 알맞게 모델을 미세조정하는 방법, 스크립트로 모델 훈련하는 방법 등이 있습니다. 🤗 Transformers 핵심 개념에 대해 더 알아보려면 커피 한 잔 들고 개념 가이드를 살펴보세요!",fa,Ns,da;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"}]}}),ke=new k({props:{code:"IXBpcCUyMGluc3RhbGwlMjB0cmFuc2Zvcm1lcnMlMjBkYXRhc2V0cw==",highlighted:"!pip install transformers datasets",wrap:!1}}),ae=new ns({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Vr],pytorch:[xr]},$$scope:{ctx:v}}}),Ue=new B({}),Ce=new Jr({props:{id:"tiZFewofSLM"}}),re=new Us({props:{$$slots:{default:[Xr]},$$scope:{ctx:v}}}),We=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>)`,wrap:!1}}),xe=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>}]`,wrap:!1}}),Ve=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>`,wrap:!1}}),Ne=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>)`,wrap:!1}}),Ee=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>)`,wrap:!1}}),ze=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))',wrap:!1}}),Ye=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>]`,wrap:!1}}),Se=new B({}),Qe=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>',wrap:!1}}),oe=new ns({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Ar],pytorch:[Fr]},$$scope:{ctx:v}}}),Oe=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>}]`,wrap:!1}}),Ke=new B({}),et=new Jr({props:{id:"AhChOFRegn4"}}),lt=new B({}),rt=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)`,wrap:!1}}),ot=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>]}`,wrap:!1}}),me=new ns({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Lr],pytorch:[Br]},$$scope:{ctx:v}}}),fe=new Us({props:{$$slots:{default:[Sr]},$$scope:{ctx:v}}}),ft=new B({}),ue=new ns({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Kr],pytorch:[qr]},$$scope:{ctx:v}}}),he=new Us({props:{$$slots:{default:[ep]},$$scope:{ctx:v}}}),dt=new B({}),ge=new ns({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[ap],pytorch:[sp]},$$scope:{ctx:v}}}),Me=new ns({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[op],pytorch:[rp]},$$scope:{ctx:v}}}),ht=new B({}),Mt=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>)`,wrap:!1}}),be=new ns({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[fp],pytorch:[cp]},$$scope:{ctx:v}}}),bt=new B({}),vt=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>)`,wrap:!1}}),kt=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>)`,wrap:!1}}),Ut=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>)`,wrap:!1}}),Zt=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>`,wrap:!1}}),Rt=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>])`,wrap:!1}}),Gt=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>)',wrap:!1}}),Ht=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)`,wrap:!1}}),It=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>`,wrap:!1}}),Xt=new k({props:{code:"dHJhaW5lci50cmFpbigp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>trainer.train()',wrap:!1}}),je=new Us({props:{$$slots:{default:[dp]},$$scope:{ctx:v}}}),Et=new B({}),Bt=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>)`,wrap:!1}}),Lt=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>)`,wrap:!1}}),Pt=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>`,wrap:!1}}),qt=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>`,wrap:!1}}),Dt=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>`,wrap:!1}}),Kt=new B({}),{c(){s=c("meta"),p=o(),t=c("p"),r=o(),u=c("h1"),f=c("a"),U=c("span"),$(Z.$$.fragment),W=o(),G=c("span"),G.textContent=T,R=o(),$(H.$$.fragment),Y=o(),V=c("p"),V.innerHTML=x,N=o(),d=c("p"),d.textContent=C,L=o(),$(ke.$$.fragment),Ss=o(),Je=c("p"),Je.textContent=cn,Ps=o(),$(ae.$$.fragment),Qs=o(),P=c("h2"),ne=c("a"),Cs=c("span"),$(Ue.$$.fragment),Ra=o(),rs=c("span"),rs.textContent=mn,qs=o(),$(Ce.$$.fragment),Os=o(),Ze=c("p"),Ze.innerHTML=fn,Ds=o(),$(re.$$.fragment),Ks=o(),Re=c("table"),Re.innerHTML=dn,el=o(),Ge=c("p"),Ge.innerHTML=un,tl=o(),$(We.$$.fragment),sl=o(),He=c("p"),He.innerHTML=hn,ll=o(),$(xe.$$.fragment),al=o(),Ie=c("p"),Ie.innerHTML=$n,nl=o(),$(Ve.$$.fragment),rl=o(),Xe=c("p"),Xe.innerHTML=gn,pl=o(),$(Ne.$$.fragment),ol=o(),Fe=c("p"),Fe.innerHTML=Mn,il=o(),$(Ee.$$.fragment),cl=o(),Ae=c("p"),Ae.innerHTML=yn,ml=o(),$(ze.$$.fragment),fl=o(),Be=c("p"),Be.innerHTML=bn,dl=o(),$(Ye.$$.fragment),ul=o(),Le=c("p"),Le.innerHTML=wn,hl=o(),Q=c("h3"),pe=c("a"),Zs=c("span"),$(Se.$$.fragment),Ga=o(),ps=c("span"),ps.textContent=jn,$l=o(),Pe=c("p"),Pe.innerHTML=Tn,gl=o(),$(Qe.$$.fragment),Ml=o(),$(oe.$$.fragment),yl=o(),qe=c("p"),qe.innerHTML=vn,bl=o(),$(Oe.$$.fragment),wl=o(),De=c("p"),De.innerHTML=_n,jl=o(),q=c("h2"),ie=c("a"),Rs=c("span"),$(Ke.$$.fragment),Wa=o(),os=c("span"),os.textContent=kn,Tl=o(),$(et.$$.fragment),vl=o(),tt=c("p"),tt.innerHTML=Jn,_l=o(),st=c("p"),st.innerHTML=Un,kl=o(),O=c("h3"),ce=c("a"),Gs=c("span"),$(lt.$$.fragment),Ha=o(),is=c("span"),is.textContent=Cn,Jl=o(),at=c("p"),at.innerHTML=Zn,Ul=o(),nt=c("p"),nt.innerHTML=Rn,Cl=o(),$(rt.$$.fragment),Zl=o(),pt=c("p"),pt.textContent=Gn,Rl=o(),$(ot.$$.fragment),Gl=o(),it=c("p"),it.textContent=Wn,Wl=o(),ct=c("ul"),ct.innerHTML=Hn,Hl=o(),mt=c("p"),mt.textContent=xn,xl=o(),$(me.$$.fragment),Il=o(),$(fe.$$.fragment),Vl=o(),D=c("h3"),de=c("a"),Ws=c("span"),$(ft.$$.fragment),xa=o(),cs=c("span"),cs.textContent=In,Xl=o(),$(ue.$$.fragment),Nl=o(),$(he.$$.fragment),Fl=o(),K=c("h3"),$e=c("a"),Hs=c("span"),$(dt.$$.fragment),Ia=o(),ms=c("span"),ms.textContent=Vn,El=o(),$(ge.$$.fragment),Al=o(),ut=c("p"),ut.innerHTML=Xn,zl=o(),$(Me.$$.fragment),Bl=o(),ee=c("h2"),ye=c("a"),xs=c("span"),$(ht.$$.fragment),Va=o(),fs=c("span"),fs.textContent=Nn,Yl=o(),$t=c("p"),$t.textContent=Fn,Ll=o(),gt=c("p"),gt.innerHTML=En,Sl=o(),$(Mt.$$.fragment),Pl=o(),$(be.$$.fragment),Ql=o(),yt=c("p"),yt.innerHTML=An,ql=o(),te=c("h2"),we=c("a"),Is=c("span"),$(bt.$$.fragment),Xa=o(),ds=c("span"),ds.textContent=zn,Ol=o(),wt=c("p"),wt.innerHTML=Bn,Dl=o(),jt=c("p"),jt.innerHTML=Yn,Kl=o(),X=c("ol"),Tt=c("li"),us=c("p"),us.innerHTML=Ln,Na=o(),$(vt.$$.fragment),Fa=o(),_t=c("li"),hs=c("p"),hs.innerHTML=Sn,Ea=o(),$(kt.$$.fragment),Aa=o(),Jt=c("li"),$s=c("p"),$s.textContent=Pn,za=o(),$(Ut.$$.fragment),Ba=o(),Ct=c("li"),gs=c("p"),gs.textContent=Qn,Ya=o(),$(Zt.$$.fragment),La=o(),z=c("li"),Ms=c("p"),Ms.textContent=qn,Sa=o(),$(Rt.$$.fragment),Pa=o(),ys=c("p"),ys.innerHTML=On,Qa=o(),$(Gt.$$.fragment),qa=o(),Wt=c("li"),bs=c("p"),bs.innerHTML=Dn,Oa=o(),$(Ht.$$.fragment),ea=o(),xt=c("p"),xt.innerHTML=Kn,ta=o(),$(It.$$.fragment),sa=o(),Vt=c("p"),Vt.innerHTML=er,la=o(),$(Xt.$$.fragment),aa=o(),$(je.$$.fragment),na=o(),Nt=c("p"),Nt.innerHTML=tr,ra=o(),Ft=c("p"),Ft.innerHTML=sr,pa=o(),se=c("h2"),Te=c("a"),Vs=c("span"),$(Et.$$.fragment),Da=o(),ws=c("span"),ws.textContent=lr,oa=o(),At=c("p"),At.innerHTML=ar,ia=o(),F=c("ol"),zt=c("li"),js=c("p"),js.innerHTML=nr,Ka=o(),$(Bt.$$.fragment),en=o(),Yt=c("li"),Ts=c("p"),Ts.textContent=rr,tn=o(),$(Lt.$$.fragment),sn=o(),St=c("li"),vs=c("p"),vs.textContent=pr,ln=o(),$(Pt.$$.fragment),an=o(),Qt=c("li"),_s=c("p"),_s.innerHTML=or,nn=o(),$(qt.$$.fragment),rn=o(),Ot=c("li"),ks=c("p"),ks.innerHTML=ir,pn=o(),$(Dt.$$.fragment),ca=o(),le=c("h2"),ve=c("a"),Xs=c("span"),$(Kt.$$.fragment),on=o(),Js=c("span"),Js.textContent=cr,ma=o(),es=c("p"),es.textContent=mr,fa=o(),Ns=c("p"),this.h()},l(e){const a=Gr("svelte-1phssyn",document.head);s=m(a,"META",{name:!0,content:!0}),a.forEach(l),p=i(e),t=m(e,"P",{}),_(t).forEach(l),r=i(e),u=m(e,"H1",{class:!0});var ts=_(u);f=m(ts,"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(ts),G=m(ts,"SPAN",{"data-svelte-h":!0}),j(G)!=="svelte-12bipl7"&&(G.textContent=T),ts.forEach(l),R=i(e),g(H.$$.fragment,e),Y=i(e),V=m(e,"P",{"data-svelte-h":!0}),j(V)!=="svelte-6mg9x4"&&(V.innerHTML=x),N=i(e),d=m(e,"P",{"data-svelte-h":!0}),j(d)!=="svelte-1k0z9pm"&&(d.textContent=C),L=i(e),g(ke.$$.fragment,e),Ss=i(e),Je=m(e,"P",{"data-svelte-h":!0}),j(Je)!=="svelte-15tdirm"&&(Je.textContent=cn),Ps=i(e),g(ae.$$.fragment,e),Qs=i(e),P=m(e,"H2",{class:!0});var ss=_(P);ne=m(ss,"A",{id:!0,class:!0,href:!0});var As=_(ne);Cs=m(As,"SPAN",{});var zs=_(Cs);g(Ue.$$.fragment,zs),zs.forEach(l),As.forEach(l),Ra=i(ss),rs=m(ss,"SPAN",{"data-svelte-h":!0}),j(rs)!=="svelte-14zr2sx"&&(rs.textContent=mn),ss.forEach(l),qs=i(e),g(Ce.$$.fragment,e),Os=i(e),Ze=m(e,"P",{"data-svelte-h":!0}),j(Ze)!=="svelte-1w7vzh3"&&(Ze.innerHTML=fn),Ds=i(e),g(re.$$.fragment,e),Ks=i(e),Re=m(e,"TABLE",{"data-svelte-h":!0}),j(Re)!=="svelte-1hgozun"&&(Re.innerHTML=dn),el=i(e),Ge=m(e,"P",{"data-svelte-h":!0}),j(Ge)!=="svelte-azyw3l"&&(Ge.innerHTML=un),tl=i(e),g(We.$$.fragment,e),sl=i(e),He=m(e,"P",{"data-svelte-h":!0}),j(He)!=="svelte-vo05u9"&&(He.innerHTML=hn),ll=i(e),g(xe.$$.fragment,e),al=i(e),Ie=m(e,"P",{"data-svelte-h":!0}),j(Ie)!=="svelte-1ojxldp"&&(Ie.innerHTML=$n),nl=i(e),g(Ve.$$.fragment,e),rl=i(e),Xe=m(e,"P",{"data-svelte-h":!0}),j(Xe)!=="svelte-1j1fqr5"&&(Xe.innerHTML=gn),pl=i(e),g(Ne.$$.fragment,e),ol=i(e),Fe=m(e,"P",{"data-svelte-h":!0}),j(Fe)!=="svelte-1h4e9f5"&&(Fe.innerHTML=Mn),il=i(e),g(Ee.$$.fragment,e),cl=i(e),Ae=m(e,"P",{"data-svelte-h":!0}),j(Ae)!=="svelte-14oiedi"&&(Ae.innerHTML=yn),ml=i(e),g(ze.$$.fragment,e),fl=i(e),Be=m(e,"P",{"data-svelte-h":!0}),j(Be)!=="svelte-1yaj65v"&&(Be.innerHTML=bn),dl=i(e),g(Ye.$$.fragment,e),ul=i(e),Le=m(e,"P",{"data-svelte-h":!0}),j(Le)!=="svelte-1r53z39"&&(Le.innerHTML=wn),hl=i(e),Q=m(e,"H3",{class:!0});var ls=_(Q);pe=m(ls,"A",{id:!0,class:!0,href:!0});var Bs=_(pe);Zs=m(Bs,"SPAN",{});var Ys=_(Zs);g(Se.$$.fragment,Ys),Ys.forEach(l),Bs.forEach(l),Ga=i(ls),ps=m(ls,"SPAN",{"data-svelte-h":!0}),j(ps)!=="svelte-6emnja"&&(ps.textContent=jn),ls.forEach(l),$l=i(e),Pe=m(e,"P",{"data-svelte-h":!0}),j(Pe)!=="svelte-1r35uy"&&(Pe.innerHTML=Tn),gl=i(e),g(Qe.$$.fragment,e),Ml=i(e),g(oe.$$.fragment,e),yl=i(e),qe=m(e,"P",{"data-svelte-h":!0}),j(qe)!=="svelte-94oea8"&&(qe.innerHTML=vn),bl=i(e),g(Oe.$$.fragment,e),wl=i(e),De=m(e,"P",{"data-svelte-h":!0}),j(De)!=="svelte-q9e5jp"&&(De.innerHTML=_n),jl=i(e),q=m(e,"H2",{class:!0});var as=_(q);ie=m(as,"A",{id:!0,class:!0,href:!0});var Ls=_(ie);Rs=m(Ls,"SPAN",{});var fr=_(Rs);g(Ke.$$.fragment,fr),fr.forEach(l),Ls.forEach(l),Wa=i(as),os=m(as,"SPAN",{"data-svelte-h":!0}),j(os)!=="svelte-1wy78nw"&&(os.textContent=kn),as.forEach(l),Tl=i(e),g(et.$$.fragment,e),vl=i(e),tt=m(e,"P",{"data-svelte-h":!0}),j(tt)!=="svelte-14dotb2"&&(tt.innerHTML=Jn),_l=i(e),st=m(e,"P",{"data-svelte-h":!0}),j(st)!=="svelte-1jdzkyq"&&(st.innerHTML=Un),kl=i(e),O=m(e,"H3",{class:!0});var ua=_(O);ce=m(ua,"A",{id:!0,class:!0,href:!0});var dr=_(ce);Gs=m(dr,"SPAN",{});var ur=_(Gs);g(lt.$$.fragment,ur),ur.forEach(l),dr.forEach(l),Ha=i(ua),is=m(ua,"SPAN",{"data-svelte-h":!0}),j(is)!=="svelte-duoi8l"&&(is.textContent=Cn),ua.forEach(l),Jl=i(e),at=m(e,"P",{"data-svelte-h":!0}),j(at)!=="svelte-ec7bh3"&&(at.innerHTML=Zn),Ul=i(e),nt=m(e,"P",{"data-svelte-h":!0}),j(nt)!=="svelte-zox7f"&&(nt.innerHTML=Rn),Cl=i(e),g(rt.$$.fragment,e),Zl=i(e),pt=m(e,"P",{"data-svelte-h":!0}),j(pt)!=="svelte-1jksv9d"&&(pt.textContent=Gn),Rl=i(e),g(ot.$$.fragment,e),Gl=i(e),it=m(e,"P",{"data-svelte-h":!0}),j(it)!=="svelte-1c10jmq"&&(it.textContent=Wn),Wl=i(e),ct=m(e,"UL",{"data-svelte-h":!0}),j(ct)!=="svelte-99hc5f"&&(ct.innerHTML=Hn),Hl=i(e),mt=m(e,"P",{"data-svelte-h":!0}),j(mt)!=="svelte-jype1g"&&(mt.textContent=xn),xl=i(e),g(me.$$.fragment,e),Il=i(e),g(fe.$$.fragment,e),Vl=i(e),D=m(e,"H3",{class:!0});var ha=_(D);de=m(ha,"A",{id:!0,class:!0,href:!0});var hr=_(de);Ws=m(hr,"SPAN",{});var $r=_(Ws);g(ft.$$.fragment,$r),$r.forEach(l),hr.forEach(l),xa=i(ha),cs=m(ha,"SPAN",{"data-svelte-h":!0}),j(cs)!=="svelte-1uxnbm5"&&(cs.textContent=In),ha.forEach(l),Xl=i(e),g(ue.$$.fragment,e),Nl=i(e),g(he.$$.fragment,e),Fl=i(e),K=m(e,"H3",{class:!0});var $a=_(K);$e=m($a,"A",{id:!0,class:!0,href:!0});var gr=_($e);Hs=m(gr,"SPAN",{});var Mr=_(Hs);g(dt.$$.fragment,Mr),Mr.forEach(l),gr.forEach(l),Ia=i($a),ms=m($a,"SPAN",{"data-svelte-h":!0}),j(ms)!=="svelte-1iee4xm"&&(ms.textContent=Vn),$a.forEach(l),El=i(e),g(ge.$$.fragment,e),Al=i(e),ut=m(e,"P",{"data-svelte-h":!0}),j(ut)!=="svelte-olv60e"&&(ut.innerHTML=Xn),zl=i(e),g(Me.$$.fragment,e),Bl=i(e),ee=m(e,"H2",{class:!0});var ga=_(ee);ye=m(ga,"A",{id:!0,class:!0,href:!0});var yr=_(ye);xs=m(yr,"SPAN",{});var br=_(xs);g(ht.$$.fragment,br),br.forEach(l),yr.forEach(l),Va=i(ga),fs=m(ga,"SPAN",{"data-svelte-h":!0}),j(fs)!=="svelte-11eby6m"&&(fs.textContent=Nn),ga.forEach(l),Yl=i(e),$t=m(e,"P",{"data-svelte-h":!0}),j($t)!=="svelte-pasr7c"&&($t.textContent=Fn),Ll=i(e),gt=m(e,"P",{"data-svelte-h":!0}),j(gt)!=="svelte-1dwc4qs"&&(gt.innerHTML=En),Sl=i(e),g(Mt.$$.fragment,e),Pl=i(e),g(be.$$.fragment,e),Ql=i(e),yt=m(e,"P",{"data-svelte-h":!0}),j(yt)!=="svelte-1glm9pk"&&(yt.innerHTML=An),ql=i(e),te=m(e,"H2",{class:!0});var Ma=_(te);we=m(Ma,"A",{id:!0,class:!0,href:!0});var wr=_(we);Is=m(wr,"SPAN",{});var jr=_(Is);g(bt.$$.fragment,jr),jr.forEach(l),wr.forEach(l),Xa=i(Ma),ds=m(Ma,"SPAN",{"data-svelte-h":!0}),j(ds)!=="svelte-75dfpj"&&(ds.textContent=zn),Ma.forEach(l),Ol=i(e),wt=m(e,"P",{"data-svelte-h":!0}),j(wt)!=="svelte-1ximgfp"&&(wt.innerHTML=Bn),Dl=i(e),jt=m(e,"P",{"data-svelte-h":!0}),j(jt)!=="svelte-1fcrkl9"&&(jt.innerHTML=Yn),Kl=i(e),X=m(e,"OL",{});var A=_(X);Tt=m(A,"LI",{});var ya=_(Tt);us=m(ya,"P",{"data-svelte-h":!0}),j(us)!=="svelte-1ndluax"&&(us.innerHTML=Ln),Na=i(ya),g(vt.$$.fragment,ya),ya.forEach(l),Fa=i(A),_t=m(A,"LI",{});var ba=_(_t);hs=m(ba,"P",{"data-svelte-h":!0}),j(hs)!=="svelte-18oxlfo"&&(hs.innerHTML=Sn),Ea=i(ba),g(kt.$$.fragment,ba),ba.forEach(l),Aa=i(A),Jt=m(A,"LI",{});var wa=_(Jt);$s=m(wa,"P",{"data-svelte-h":!0}),j($s)!=="svelte-1v961uv"&&($s.textContent=Pn),za=i(wa),g(Ut.$$.fragment,wa),wa.forEach(l),Ba=i(A),Ct=m(A,"LI",{});var ja=_(Ct);gs=m(ja,"P",{"data-svelte-h":!0}),j(gs)!=="svelte-1pb52rt"&&(gs.textContent=Qn),Ya=i(ja),g(Zt.$$.fragment,ja),ja.forEach(l),La=i(A),z=m(A,"LI",{});var _e=_(z);Ms=m(_e,"P",{"data-svelte-h":!0}),j(Ms)!=="svelte-1vmtcn7"&&(Ms.textContent=qn),Sa=i(_e),g(Rt.$$.fragment,_e),Pa=i(_e),ys=m(_e,"P",{"data-svelte-h":!0}),j(ys)!=="svelte-1c5wtqo"&&(ys.innerHTML=On),Qa=i(_e),g(Gt.$$.fragment,_e),_e.forEach(l),qa=i(A),Wt=m(A,"LI",{});var Ta=_(Wt);bs=m(Ta,"P",{"data-svelte-h":!0}),j(bs)!=="svelte-1jzjwm2"&&(bs.innerHTML=Dn),Oa=i(Ta),g(Ht.$$.fragment,Ta),Ta.forEach(l),A.forEach(l),ea=i(e),xt=m(e,"P",{"data-svelte-h":!0}),j(xt)!=="svelte-hkenju"&&(xt.innerHTML=Kn),ta=i(e),g(It.$$.fragment,e),sa=i(e),Vt=m(e,"P",{"data-svelte-h":!0}),j(Vt)!=="svelte-1awed5n"&&(Vt.innerHTML=er),la=i(e),g(Xt.$$.fragment,e),aa=i(e),g(je.$$.fragment,e),na=i(e),Nt=m(e,"P",{"data-svelte-h":!0}),j(Nt)!=="svelte-1cvip2r"&&(Nt.innerHTML=tr),ra=i(e),Ft=m(e,"P",{"data-svelte-h":!0}),j(Ft)!=="svelte-ajmll9"&&(Ft.innerHTML=sr),pa=i(e),se=m(e,"H2",{class:!0});var va=_(se);Te=m(va,"A",{id:!0,class:!0,href:!0});var Tr=_(Te);Vs=m(Tr,"SPAN",{});var vr=_(Vs);g(Et.$$.fragment,vr),vr.forEach(l),Tr.forEach(l),Da=i(va),ws=m(va,"SPAN",{"data-svelte-h":!0}),j(ws)!=="svelte-1lcap8u"&&(ws.textContent=lr),va.forEach(l),oa=i(e),At=m(e,"P",{"data-svelte-h":!0}),j(At)!=="svelte-myeyeb"&&(At.innerHTML=ar),ia=i(e),F=m(e,"OL",{});var S=_(F);zt=m(S,"LI",{});var _a=_(zt);js=m(_a,"P",{"data-svelte-h":!0}),j(js)!=="svelte-1y6y9l8"&&(js.innerHTML=nr),Ka=i(_a),g(Bt.$$.fragment,_a),_a.forEach(l),en=i(S),Yt=m(S,"LI",{});var ka=_(Yt);Ts=m(ka,"P",{"data-svelte-h":!0}),j(Ts)!=="svelte-18oe8vk"&&(Ts.textContent=rr),tn=i(ka),g(Lt.$$.fragment,ka),ka.forEach(l),sn=i(S),St=m(S,"LI",{});var Ja=_(St);vs=m(Ja,"P",{"data-svelte-h":!0}),j(vs)!=="svelte-1vmtcn7"&&(vs.textContent=pr),ln=i(Ja),g(Pt.$$.fragment,Ja),Ja.forEach(l),an=i(S),Qt=m(S,"LI",{});var Ua=_(Qt);_s=m(Ua,"P",{"data-svelte-h":!0}),j(_s)!=="svelte-m3lu8g"&&(_s.innerHTML=or),nn=i(Ua),g(qt.$$.fragment,Ua),Ua.forEach(l),rn=i(S),Ot=m(S,"LI",{});var Ca=_(Ot);ks=m(Ca,"P",{"data-svelte-h":!0}),j(ks)!=="svelte-ffpzwi"&&(ks.innerHTML=ir),pn=i(Ca),g(Dt.$$.fragment,Ca),Ca.forEach(l),S.forEach(l),ca=i(e),le=m(e,"H2",{class:!0});var Za=_(le);ve=m(Za,"A",{id:!0,class:!0,href:!0});var _r=_(ve);Xs=m(_r,"SPAN",{});var kr=_(Xs);g(Kt.$$.fragment,kr),kr.forEach(l),_r.forEach(l),on=i(Za),Js=m(Za,"SPAN",{"data-svelte-h":!0}),j(Js)!=="svelte-hxzd21"&&(Js.textContent=cr),Za.forEach(l),ma=i(e),es=m(e,"P",{"data-svelte-h":!0}),j(es)!=="svelte-vqs42a"&&(es.textContent=mr),fa=i(e),Ns=m(e,"P",{}),_(Ns).forEach(l),this.h()},h(){J(s,"name","hf:doc:metadata"),J(s,"content",JSON.stringify(hp)),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(ne,"id","pipeline"),J(ne,"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(ne,"href","#pipeline"),J(P,"class","relative group"),J(pe,"id","use-another-model-and-tokenizer-in-the-pipeline"),J(pe,"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(pe,"href","#use-another-model-and-tokenizer-in-the-pipeline"),J(Q,"class","relative group"),J(ie,"id","autoclass"),J(ie,"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(ie,"href","#autoclass"),J(q,"class","relative group"),J(ce,"id","autotokenizer"),J(ce,"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(ce,"href","#autotokenizer"),J(O,"class","relative group"),J(de,"id","automodel"),J(de,"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(de,"href","#automodel"),J(D,"class","relative group"),J($e,"id","save-a-model"),J($e,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),J($e,"href","#save-a-model"),J(K,"class","relative group"),J(ye,"id","custom-model-builds"),J(ye,"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(ye,"href","#custom-model-builds"),J(ee,"class","relative group"),J(we,"id","trainer-a-pytorch-optimized-training-loop"),J(we,"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(we,"href","#trainer-a-pytorch-optimized-training-loop"),J(te,"class","relative group"),J(Te,"id","train-with-tensorflow"),J(Te,"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(Te,"href","#train-with-tensorflow"),J(se,"class","relative group"),J(ve,"id","whats-next"),J(ve,"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(ve,"href","#whats-next"),J(le,"class","relative group")},m(e,a){h(document.head,s),n(e,p,a),n(e,t,a),n(e,r,a),n(e,u,a),h(u,f),h(f,U),M(Z,U,null),h(u,W),h(u,G),n(e,R,a),M(H,e,a),n(e,Y,a),n(e,V,a),n(e,N,a),n(e,d,a),n(e,L,a),M(ke,e,a),n(e,Ss,a),n(e,Je,a),n(e,Ps,a),M(ae,e,a),n(e,Qs,a),n(e,P,a),h(P,ne),h(ne,Cs),M(Ue,Cs,null),h(P,Ra),h(P,rs),n(e,qs,a),M(Ce,e,a),n(e,Os,a),n(e,Ze,a),n(e,Ds,a),M(re,e,a),n(e,Ks,a),n(e,Re,a),n(e,el,a),n(e,Ge,a),n(e,tl,a),M(We,e,a),n(e,sl,a),n(e,He,a),n(e,ll,a),M(xe,e,a),n(e,al,a),n(e,Ie,a),n(e,nl,a),M(Ve,e,a),n(e,rl,a),n(e,Xe,a),n(e,pl,a),M(Ne,e,a),n(e,ol,a),n(e,Fe,a),n(e,il,a),M(Ee,e,a),n(e,cl,a),n(e,Ae,a),n(e,ml,a),M(ze,e,a),n(e,fl,a),n(e,Be,a),n(e,dl,a),M(Ye,e,a),n(e,ul,a),n(e,Le,a),n(e,hl,a),n(e,Q,a),h(Q,pe),h(pe,Zs),M(Se,Zs,null),h(Q,Ga),h(Q,ps),n(e,$l,a),n(e,Pe,a),n(e,gl,a),M(Qe,e,a),n(e,Ml,a),M(oe,e,a),n(e,yl,a),n(e,qe,a),n(e,bl,a),M(Oe,e,a),n(e,wl,a),n(e,De,a),n(e,jl,a),n(e,q,a),h(q,ie),h(ie,Rs),M(Ke,Rs,null),h(q,Wa),h(q,os),n(e,Tl,a),M(et,e,a),n(e,vl,a),n(e,tt,a),n(e,_l,a),n(e,st,a),n(e,kl,a),n(e,O,a),h(O,ce),h(ce,Gs),M(lt,Gs,null),h(O,Ha),h(O,is),n(e,Jl,a),n(e,at,a),n(e,Ul,a),n(e,nt,a),n(e,Cl,a),M(rt,e,a),n(e,Zl,a),n(e,pt,a),n(e,Rl,a),M(ot,e,a),n(e,Gl,a),n(e,it,a),n(e,Wl,a),n(e,ct,a),n(e,Hl,a),n(e,mt,a),n(e,xl,a),M(me,e,a),n(e,Il,a),M(fe,e,a),n(e,Vl,a),n(e,D,a),h(D,de),h(de,Ws),M(ft,Ws,null),h(D,xa),h(D,cs),n(e,Xl,a),M(ue,e,a),n(e,Nl,a),M(he,e,a),n(e,Fl,a),n(e,K,a),h(K,$e),h($e,Hs),M(dt,Hs,null),h(K,Ia),h(K,ms),n(e,El,a),M(ge,e,a),n(e,Al,a),n(e,ut,a),n(e,zl,a),M(Me,e,a),n(e,Bl,a),n(e,ee,a),h(ee,ye),h(ye,xs),M(ht,xs,null),h(ee,Va),h(ee,fs),n(e,Yl,a),n(e,$t,a),n(e,Ll,a),n(e,gt,a),n(e,Sl,a),M(Mt,e,a),n(e,Pl,a),M(be,e,a),n(e,Ql,a),n(e,yt,a),n(e,ql,a),n(e,te,a),h(te,we),h(we,Is),M(bt,Is,null),h(te,Xa),h(te,ds),n(e,Ol,a),n(e,wt,a),n(e,Dl,a),n(e,jt,a),n(e,Kl,a),n(e,X,a),h(X,Tt),h(Tt,us),h(Tt,Na),M(vt,Tt,null),h(X,Fa),h(X,_t),h(_t,hs),h(_t,Ea),M(kt,_t,null),h(X,Aa),h(X,Jt),h(Jt,$s),h(Jt,za),M(Ut,Jt,null),h(X,Ba),h(X,Ct),h(Ct,gs),h(Ct,Ya),M(Zt,Ct,null),h(X,La),h(X,z),h(z,Ms),h(z,Sa),M(Rt,z,null),h(z,Pa),h(z,ys),h(z,Qa),M(Gt,z,null),h(X,qa),h(X,Wt),h(Wt,bs),h(Wt,Oa),M(Ht,Wt,null),n(e,ea,a),n(e,xt,a),n(e,ta,a),M(It,e,a),n(e,sa,a),n(e,Vt,a),n(e,la,a),M(Xt,e,a),n(e,aa,a),M(je,e,a),n(e,na,a),n(e,Nt,a),n(e,ra,a),n(e,Ft,a),n(e,pa,a),n(e,se,a),h(se,Te),h(Te,Vs),M(Et,Vs,null),h(se,Da),h(se,ws),n(e,oa,a),n(e,At,a),n(e,ia,a),n(e,F,a),h(F,zt),h(zt,js),h(zt,Ka),M(Bt,zt,null),h(F,en),h(F,Yt),h(Yt,Ts),h(Yt,tn),M(Lt,Yt,null),h(F,sn),h(F,St),h(St,vs),h(St,ln),M(Pt,St,null),h(F,an),h(F,Qt),h(Qt,_s),h(Qt,nn),M(qt,Qt,null),h(F,rn),h(F,Ot),h(Ot,ks),h(Ot,pn),M(Dt,Ot,null),n(e,ca,a),n(e,le,a),h(le,ve),h(ve,Xs),M(Kt,Xs,null),h(le,on),h(le,Js),n(e,ma,a),n(e,es,a),n(e,fa,a),n(e,Ns,a),da=!0},p(e,[a]){const ts={};a&2&&(ts.$$scope={dirty:a,ctx:e}),ae.$set(ts);const Fs={};a&2&&(Fs.$$scope={dirty:a,ctx:e}),re.$set(Fs);const Es={};a&2&&(Es.$$scope={dirty:a,ctx:e}),oe.$set(Es);const ss={};a&2&&(ss.$$scope={dirty:a,ctx:e}),me.$set(ss);const As={};a&2&&(As.$$scope={dirty:a,ctx:e}),fe.$set(As);const zs={};a&2&&(zs.$$scope={dirty:a,ctx:e}),ue.$set(zs);const ls={};a&2&&(ls.$$scope={dirty:a,ctx:e}),he.$set(ls);const Bs={};a&2&&(Bs.$$scope={dirty:a,ctx:e}),ge.$set(Bs);const Ys={};a&2&&(Ys.$$scope={dirty:a,ctx:e}),Me.$set(Ys);const as={};a&2&&(as.$$scope={dirty:a,ctx:e}),be.$set(as);const Ls={};a&2&&(Ls.$$scope={dirty:a,ctx:e}),je.$set(Ls)},i(e){da||(y(Z.$$.fragment,e),y(H.$$.fragment,e),y(ke.$$.fragment,e),y(ae.$$.fragment,e),y(Ue.$$.fragment,e),y(Ce.$$.fragment,e),y(re.$$.fragment,e),y(We.$$.fragment,e),y(xe.$$.fragment,e),y(Ve.$$.fragment,e),y(Ne.$$.fragment,e),y(Ee.$$.fragment,e),y(ze.$$.fragment,e),y(Ye.$$.fragment,e),y(Se.$$.fragment,e),y(Qe.$$.fragment,e),y(oe.$$.fragment,e),y(Oe.$$.fragment,e),y(Ke.$$.fragment,e),y(et.$$.fragment,e),y(lt.$$.fragment,e),y(rt.$$.fragment,e),y(ot.$$.fragment,e),y(me.$$.fragment,e),y(fe.$$.fragment,e),y(ft.$$.fragment,e),y(ue.$$.fragment,e),y(he.$$.fragment,e),y(dt.$$.fragment,e),y(ge.$$.fragment,e),y(Me.$$.fragment,e),y(ht.$$.fragment,e),y(Mt.$$.fragment,e),y(be.$$.fragment,e),y(bt.$$.fragment,e),y(vt.$$.fragment,e),y(kt.$$.fragment,e),y(Ut.$$.fragment,e),y(Zt.$$.fragment,e),y(Rt.$$.fragment,e),y(Gt.$$.fragment,e),y(Ht.$$.fragment,e),y(It.$$.fragment,e),y(Xt.$$.fragment,e),y(je.$$.fragment,e),y(Et.$$.fragment,e),y(Bt.$$.fragment,e),y(Lt.$$.fragment,e),y(Pt.$$.fragment,e),y(qt.$$.fragment,e),y(Dt.$$.fragment,e),y(Kt.$$.fragment,e),da=!0)},o(e){b(Z.$$.fragment,e),b(H.$$.fragment,e),b(ke.$$.fragment,e),b(ae.$$.fragment,e),b(Ue.$$.fragment,e),b(Ce.$$.fragment,e),b(re.$$.fragment,e),b(We.$$.fragment,e),b(xe.$$.fragment,e),b(Ve.$$.fragment,e),b(Ne.$$.fragment,e),b(Ee.$$.fragment,e),b(ze.$$.fragment,e),b(Ye.$$.fragment,e),b(Se.$$.fragment,e),b(Qe.$$.fragment,e),b(oe.$$.fragment,e),b(Oe.$$.fragment,e),b(Ke.$$.fragment,e),b(et.$$.fragment,e),b(lt.$$.fragment,e),b(rt.$$.fragment,e),b(ot.$$.fragment,e),b(me.$$.fragment,e),b(fe.$$.fragment,e),b(ft.$$.fragment,e),b(ue.$$.fragment,e),b(he.$$.fragment,e),b(dt.$$.fragment,e),b(ge.$$.fragment,e),b(Me.$$.fragment,e),b(ht.$$.fragment,e),b(Mt.$$.fragment,e),b(be.$$.fragment,e),b(bt.$$.fragment,e),b(vt.$$.fragment,e),b(kt.$$.fragment,e),b(Ut.$$.fragment,e),b(Zt.$$.fragment,e),b(Rt.$$.fragment,e),b(Gt.$$.fragment,e),b(Ht.$$.fragment,e),b(It.$$.fragment,e),b(Xt.$$.fragment,e),b(je.$$.fragment,e),b(Et.$$.fragment,e),b(Bt.$$.fragment,e),b(Lt.$$.fragment,e),b(Pt.$$.fragment,e),b(qt.$$.fragment,e),b(Dt.$$.fragment,e),b(Kt.$$.fragment,e),da=!1},d(e){e&&(l(p),l(t),l(r),l(u),l(R),l(Y),l(V),l(N),l(d),l(L),l(Ss),l(Je),l(Ps),l(Qs),l(P),l(qs),l(Os),l(Ze),l(Ds),l(Ks),l(Re),l(el),l(Ge),l(tl),l(sl),l(He),l(ll),l(al),l(Ie),l(nl),l(rl),l(Xe),l(pl),l(ol),l(Fe),l(il),l(cl),l(Ae),l(ml),l(fl),l(Be),l(dl),l(ul),l(Le),l(hl),l(Q),l($l),l(Pe),l(gl),l(Ml),l(yl),l(qe),l(bl),l(wl),l(De),l(jl),l(q),l(Tl),l(vl),l(tt),l(_l),l(st),l(kl),l(O),l(Jl),l(at),l(Ul),l(nt),l(Cl),l(Zl),l(pt),l(Rl),l(Gl),l(it),l(Wl),l(ct),l(Hl),l(mt),l(xl),l(Il),l(Vl),l(D),l(Xl),l(Nl),l(Fl),l(K),l(El),l(Al),l(ut),l(zl),l(Bl),l(ee),l(Yl),l($t),l(Ll),l(gt),l(Sl),l(Pl),l(Ql),l(yt),l(ql),l(te),l(Ol),l(wt),l(Dl),l(jt),l(Kl),l(X),l(ea),l(xt),l(ta),l(sa),l(Vt),l(la),l(aa),l(na),l(Nt),l(ra),l(Ft),l(pa),l(se),l(oa),l(At),l(ia),l(F),l(ca),l(le),l(ma),l(es),l(fa),l(Ns)),l(s),w(Z),w(H,e),w(ke,e),w(ae,e),w(Ue),w(Ce,e),w(re,e),w(We,e),w(xe,e),w(Ve,e),w(Ne,e),w(Ee,e),w(ze,e),w(Ye,e),w(Se),w(Qe,e),w(oe,e),w(Oe,e),w(Ke),w(et,e),w(lt),w(rt,e),w(ot,e),w(me,e),w(fe,e),w(ft),w(ue,e),w(he,e),w(dt),w(ge,e),w(Me,e),w(ht),w(Mt,e),w(be,e),w(bt),w(vt),w(kt),w(Ut),w(Zt),w(Rt),w(Gt),w(Ht),w(It,e),w(Xt,e),w(je,e),w(Et),w(Bt),w(Lt),w(Pt),w(qt),w(Dt),w(Kt)}}}const hp={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 $p(v){return Cr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _p extends Zr{constructor(s){super(),Rr(this,s,$p,up,Ur,{})}}export{_p as component};
