import{s as Xl,o as xl,n as I}from"../chunks/scheduler.bdbef820.js";import{S as Nl,i as zl,g as y,s as p,r as d,A as El,h as b,f as l,c as m,j as x,u,x as w,k as Hl,y as k,a as n,v as $,d as h,t as g,w as M}from"../chunks/index.33f81d56.js";import{T as Kt}from"../chunks/Tip.34194030.js";import{Y as Fl}from"../chunks/Youtube.0e329b00.js";import{C as _}from"../chunks/CodeBlock.362b34a4.js";import{D as Yl}from"../chunks/DocNotebookDropdown.d5db5928.js";import{F as Nt,M as E}from"../chunks/Markdown.03194dea.js";import{H as L,E as Al}from"../chunks/EditOnGithub.a9246e21.js";function Bl(j){let s,o;return s=new _({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRvcmNo",highlighted:"pip install torch",wrap:!1}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p:I,i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function Ll(j){let s,o;return s=new E({props:{$$slots:{default:[Bl]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function ql(j){let s,o;return s=new _({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRlbnNvcmZsb3c=",highlighted:"pip install tensorflow",wrap:!1}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p:I,i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function Ql(j){let s,o;return s=new E({props:{$$slots:{default:[ql]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function Sl(j){let s,o='사용 가능한 작업의 전체 목록은 <a href="./main_classes/pipelines">Pipelines API 참조</a>를 확인하세요.';return{c(){s=y("p"),s.innerHTML=o},l(t){s=b(t,"P",{"data-svelte-h":!0}),w(s)!=="svelte-jc1org"&&(s.innerHTML=o)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function Pl(j){let s,o='<a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModelForSequenceClassification">AutoModelForSequenceClassification</a>과 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>를 사용하여 사전 훈련된 모델과 관련된 토크나이저를 로드하세요 (다음 섹션에서 <code>AutoClass</code>에 대해 더 자세히 알아보겠습니다):',t,r,f;return r=new _({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=y("p"),s.innerHTML=o,t=p(),d(r.$$.fragment)},l(i){s=b(i,"P",{"data-svelte-h":!0}),w(s)!=="svelte-1fqqfp6"&&(s.innerHTML=o),t=m(i),u(r.$$.fragment,i)},m(i,J){n(i,s,J),n(i,t,J),$(r,i,J),f=!0},p:I,i(i){f||(h(r.$$.fragment,i),f=!0)},o(i){g(r.$$.fragment,i),f=!1},d(i){i&&(l(s),l(t)),M(r,i)}}}function Ol(j){let s,o;return s=new E({props:{$$slots:{default:[Pl]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function Dl(j){let s,o='<a href="/docs/transformers/main/ko/model_doc/auto#transformers.TFAutoModelForSequenceClassification">TFAutoModelForSequenceClassification</a>과 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>를 사용하여 사전 훈련된 모델과 관련된 토크나이저를 로드하세요 (다음 섹션에서 <code>TFAutoClass</code>에 대해 더 자세히 알아보겠습니다):',t,r,f;return r=new _({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=y("p"),s.innerHTML=o,t=p(),d(r.$$.fragment)},l(i){s=b(i,"P",{"data-svelte-h":!0}),w(s)!=="svelte-zl2akk"&&(s.innerHTML=o),t=m(i),u(r.$$.fragment,i)},m(i,J){n(i,s,J),n(i,t,J),$(r,i,J),f=!0},p:I,i(i){f||(h(r.$$.fragment,i),f=!0)},o(i){g(r.$$.fragment,i),f=!1},d(i){i&&(l(s),l(t)),M(r,i)}}}function Kl(j){let s,o;return s=new E({props:{$$slots:{default:[Dl]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function en(j){let s,o;return s=new _({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(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p:I,i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function tn(j){let s,o;return s=new E({props:{$$slots:{default:[en]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function sn(j){let s,o;return s=new _({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(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p:I,i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function an(j){let s,o;return s=new E({props:{$$slots:{default:[sn]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function ln(j){let s,o='<a href="./preprocessing">전처리</a> 튜토리얼을 참조하시면 토큰화에 대한 자세한 설명과 함께 이미지, 오디오와 멀티모달 입력을 전처리하기 위한 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>와 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoFeatureExtractor">AutoFeatureExtractor</a>, <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>의 사용방법도 알 수 있습니다.';return{c(){s=y("p"),s.innerHTML=o},l(t){s=b(t,"P",{"data-svelte-h":!0}),w(s)!=="svelte-1p2umsq"&&(s.innerHTML=o)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function nn(j){let s,o='<a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModel">AutoModel</a> 클래스에서 지원하는 과업에 대해서는 <a href="./task_summary">과업 요약</a>을 참조하세요.';return{c(){s=y("p"),s.innerHTML=o},l(t){s=b(t,"P",{"data-svelte-h":!0}),w(s)!=="svelte-hki0es"&&(s.innerHTML=o)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function rn(j){let s,o='🤗 Transformers는 사전 훈련된 인스턴스를 간단하고 통합된 방법으로 로드할 수 있습니다. 즉, <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>처럼 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModel">AutoModel</a>을 로드할 수 있습니다. 유일한 차이점은 과업에 알맞은 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModel">AutoModel</a>을 선택해야 한다는 점입니다. 텍스트 (또는 시퀀스) 분류의 경우 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModelForSequenceClassification">AutoModelForSequenceClassification</a>을 로드해야 합니다:',t,r,f,i,J,C,v="이제 전처리된 입력 묶음을 직접 모델에 전달해야 합니다. 아래처럼 <code>**</code>를 앞에 붙여 딕셔너리를 풀어주면 됩니다:",G,T,Z,W,q="모델의 최종 활성화 함수 출력은 <code>logits</code> 속성에 담겨있습니다. <code>logits</code>에 softmax 함수를 적용하여 확률을 얻을 수 있습니다:",V,R,H;return r=new _({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}}),i=new Kt({props:{$$slots:{default:[nn]},$$scope:{ctx:j}}}),T=new _({props:{code:"cHRfb3V0cHV0cyUyMCUzRCUyMHB0X21vZGVsKCoqcHRfYmF0Y2gp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>pt_outputs = pt_model(**pt_batch)',wrap:!1}}),R=new _({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=y("p"),s.innerHTML=o,t=p(),d(r.$$.fragment),f=p(),d(i.$$.fragment),J=p(),C=y("p"),C.innerHTML=v,G=p(),d(T.$$.fragment),Z=p(),W=y("p"),W.innerHTML=q,V=p(),d(R.$$.fragment)},l(c){s=b(c,"P",{"data-svelte-h":!0}),w(s)!=="svelte-1w4ms6h"&&(s.innerHTML=o),t=m(c),u(r.$$.fragment,c),f=m(c),u(i.$$.fragment,c),J=m(c),C=b(c,"P",{"data-svelte-h":!0}),w(C)!=="svelte-1t6qist"&&(C.innerHTML=v),G=m(c),u(T.$$.fragment,c),Z=m(c),W=b(c,"P",{"data-svelte-h":!0}),w(W)!=="svelte-yhe83l"&&(W.innerHTML=q),V=m(c),u(R.$$.fragment,c)},m(c,U){n(c,s,U),n(c,t,U),$(r,c,U),n(c,f,U),$(i,c,U),n(c,J,U),n(c,C,U),n(c,G,U),$(T,c,U),n(c,Z,U),n(c,W,U),n(c,V,U),$(R,c,U),H=!0},p(c,U){const N={};U&2&&(N.$$scope={dirty:U,ctx:c}),i.$set(N)},i(c){H||(h(r.$$.fragment,c),h(i.$$.fragment,c),h(T.$$.fragment,c),h(R.$$.fragment,c),H=!0)},o(c){g(r.$$.fragment,c),g(i.$$.fragment,c),g(T.$$.fragment,c),g(R.$$.fragment,c),H=!1},d(c){c&&(l(s),l(t),l(f),l(J),l(C),l(G),l(Z),l(W),l(V)),M(r,c),M(i,c),M(T,c),M(R,c)}}}function on(j){let s,o;return s=new E({props:{$$slots:{default:[rn]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function pn(j){let s,o='<a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModel">AutoModel</a> 클래스에서 지원하는 과업에 대해서는 <a href="./task_summary">과업 요약</a>을 참조하세요.';return{c(){s=y("p"),s.innerHTML=o},l(t){s=b(t,"P",{"data-svelte-h":!0}),w(s)!=="svelte-hki0es"&&(s.innerHTML=o)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function mn(j){let s,o='🤗 Transformers는 사전 훈련된 인스턴스를 간단하고 통합된 방법으로 로드할 수 있습니다. 즉, <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>처럼 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.TFAutoModel">TFAutoModel</a>을 로드할 수 있습니다. 유일한 차이점은 과업에 알맞은 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.TFAutoModel">TFAutoModel</a>을 선택해야 한다는 점입니다. 텍스트 (또는 시퀀스) 분류의 경우 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.TFAutoModelForSequenceClassification">TFAutoModelForSequenceClassification</a>을 로드해야 합니다:',t,r,f,i,J,C,v="이제 전처리된 입력 묶음을 직접 모델에 전달해야 합니다. 아래처럼 그대로 텐서를 전달하면 됩니다:",G,T,Z,W,q="모델의 최종 활성화 함수 출력은 <code>logits</code> 속성에 담겨있습니다. <code>logits</code>에 softmax 함수를 적용하여 확률을 얻을 수 있습니다:",V,R,H;return r=new _({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}}),i=new Kt({props:{$$slots:{default:[pn]},$$scope:{ctx:j}}}),T=new _({props:{code:"dGZfb3V0cHV0cyUyMCUzRCUyMHRmX21vZGVsKHRmX2JhdGNoKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>tf_outputs = tf_model(tf_batch)',wrap:!1}}),R=new _({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=y("p"),s.innerHTML=o,t=p(),d(r.$$.fragment),f=p(),d(i.$$.fragment),J=p(),C=y("p"),C.textContent=v,G=p(),d(T.$$.fragment),Z=p(),W=y("p"),W.innerHTML=q,V=p(),d(R.$$.fragment)},l(c){s=b(c,"P",{"data-svelte-h":!0}),w(s)!=="svelte-i149g9"&&(s.innerHTML=o),t=m(c),u(r.$$.fragment,c),f=m(c),u(i.$$.fragment,c),J=m(c),C=b(c,"P",{"data-svelte-h":!0}),w(C)!=="svelte-iofx68"&&(C.textContent=v),G=m(c),u(T.$$.fragment,c),Z=m(c),W=b(c,"P",{"data-svelte-h":!0}),w(W)!=="svelte-yhe83l"&&(W.innerHTML=q),V=m(c),u(R.$$.fragment,c)},m(c,U){n(c,s,U),n(c,t,U),$(r,c,U),n(c,f,U),$(i,c,U),n(c,J,U),n(c,C,U),n(c,G,U),$(T,c,U),n(c,Z,U),n(c,W,U),n(c,V,U),$(R,c,U),H=!0},p(c,U){const N={};U&2&&(N.$$scope={dirty:U,ctx:c}),i.$set(N)},i(c){H||(h(r.$$.fragment,c),h(i.$$.fragment,c),h(T.$$.fragment,c),h(R.$$.fragment,c),H=!0)},o(c){g(r.$$.fragment,c),g(i.$$.fragment,c),g(T.$$.fragment,c),g(R.$$.fragment,c),H=!1},d(c){c&&(l(s),l(t),l(f),l(J),l(C),l(G),l(Z),l(W),l(V)),M(r,c),M(i,c),M(T,c),M(R,c)}}}function cn(j){let s,o;return s=new E({props:{$$slots:{default:[mn]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function fn(j){let s,o="모든 🤗 Transformers 모델(PyTorch 또는 TensorFlow)은 (softmax와 같은) 최종 활성화 함수 <em>이전에</em> 텐서를 출력합니다. 왜냐하면 최종 활성화 함수의 출력은 종종 손실 함수 출력과 결합되기 때문입니다. 모델 출력은 특수한 데이터 클래스이므로 IDE에서 자동 완성됩니다. 모델 출력은 튜플이나 딕셔너리처럼 동작하며 (정수, 슬라이스 또는 문자열로 인덱싱 가능), None인 속성은 무시됩니다.";return{c(){s=y("p"),s.innerHTML=o},l(t){s=b(t,"P",{"data-svelte-h":!0}),w(s)!=="svelte-1hw7pec"&&(s.innerHTML=o)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function dn(j){let s,o='미세조정된 모델을 토크나이저와 함께 저장하려면 <a href="/docs/transformers/main/ko/main_classes/model#transformers.PreTrainedModel.save_pretrained">PreTrainedModel.save_pretrained()</a>를 사용하세요:',t,r,f,i,J='모델을 다시 사용하려면 <a href="/docs/transformers/main/ko/main_classes/model#transformers.PreTrainedModel.from_pretrained">PreTrainedModel.from_pretrained()</a>로 모델을 다시 로드하세요:',C,v,G;return r=new _({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}}),v=new _({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=y("p"),s.innerHTML=o,t=p(),d(r.$$.fragment),f=p(),i=y("p"),i.innerHTML=J,C=p(),d(v.$$.fragment)},l(T){s=b(T,"P",{"data-svelte-h":!0}),w(s)!=="svelte-11chfxn"&&(s.innerHTML=o),t=m(T),u(r.$$.fragment,T),f=m(T),i=b(T,"P",{"data-svelte-h":!0}),w(i)!=="svelte-a9sdqv"&&(i.innerHTML=J),C=m(T),u(v.$$.fragment,T)},m(T,Z){n(T,s,Z),n(T,t,Z),$(r,T,Z),n(T,f,Z),n(T,i,Z),n(T,C,Z),$(v,T,Z),G=!0},p:I,i(T){G||(h(r.$$.fragment,T),h(v.$$.fragment,T),G=!0)},o(T){g(r.$$.fragment,T),g(v.$$.fragment,T),G=!1},d(T){T&&(l(s),l(t),l(f),l(i),l(C)),M(r,T),M(v,T)}}}function un(j){let s,o;return s=new E({props:{$$slots:{default:[dn]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function $n(j){let s,o='미세조정된 모델을 토크나이저와 함께 저장하려면 <a href="/docs/transformers/main/ko/main_classes/model#transformers.TFPreTrainedModel.save_pretrained">TFPreTrainedModel.save_pretrained()</a>를 사용하세요:',t,r,f,i,J='모델을 다시 사용하려면 <a href="/docs/transformers/main/ko/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">TFPreTrainedModel.from_pretrained()</a>로 모델을 다시 로드하세요:',C,v,G;return r=new _({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}}),v=new _({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=y("p"),s.innerHTML=o,t=p(),d(r.$$.fragment),f=p(),i=y("p"),i.innerHTML=J,C=p(),d(v.$$.fragment)},l(T){s=b(T,"P",{"data-svelte-h":!0}),w(s)!=="svelte-wau3gn"&&(s.innerHTML=o),t=m(T),u(r.$$.fragment,T),f=m(T),i=b(T,"P",{"data-svelte-h":!0}),w(i)!=="svelte-1pjhidn"&&(i.innerHTML=J),C=m(T),u(v.$$.fragment,T)},m(T,Z){n(T,s,Z),n(T,t,Z),$(r,T,Z),n(T,f,Z),n(T,i,Z),n(T,C,Z),$(v,T,Z),G=!0},p:I,i(T){G||(h(r.$$.fragment,T),h(v.$$.fragment,T),G=!0)},o(T){g(r.$$.fragment,T),g(v.$$.fragment,T),G=!1},d(T){T&&(l(s),l(t),l(f),l(i),l(C)),M(r,T),M(v,T)}}}function hn(j){let s,o;return s=new E({props:{$$slots:{default:[$n]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function gn(j){let s,o;return s=new _({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(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p:I,i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function Mn(j){let s,o;return s=new E({props:{$$slots:{default:[gn]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function yn(j){let s,o;return s=new _({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(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p:I,i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function bn(j){let s,o;return s=new E({props:{$$slots:{default:[yn]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function Tn(j){let s,o='<a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModel.from_config">AutoModel.from_config()</a>를 사용하여 바꾼 구성대로 모델을 생성하세요:',t,r,f;return r=new _({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=y("p"),s.innerHTML=o,t=p(),d(r.$$.fragment)},l(i){s=b(i,"P",{"data-svelte-h":!0}),w(s)!=="svelte-1unctl4"&&(s.innerHTML=o),t=m(i),u(r.$$.fragment,i)},m(i,J){n(i,s,J),n(i,t,J),$(r,i,J),f=!0},p:I,i(i){f||(h(r.$$.fragment,i),f=!0)},o(i){g(r.$$.fragment,i),f=!1},d(i){i&&(l(s),l(t)),M(r,i)}}}function wn(j){let s,o;return s=new E({props:{$$slots:{default:[Tn]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function jn(j){let s,o='<a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModel.from_config">TFAutoModel.from_config()</a>를 사용하여 바꾼 구성대로 모델을 생성하세요:',t,r,f;return r=new _({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=y("p"),s.innerHTML=o,t=p(),d(r.$$.fragment)},l(i){s=b(i,"P",{"data-svelte-h":!0}),w(s)!=="svelte-2lpbt6"&&(s.innerHTML=o),t=m(i),u(r.$$.fragment,i)},m(i,J){n(i,s,J),n(i,t,J),$(r,i,J),f=!0},p:I,i(i){f||(h(r.$$.fragment,i),f=!0)},o(i){g(r.$$.fragment,i),f=!1},d(i){i&&(l(s),l(t)),M(r,i)}}}function _n(j){let s,o;return s=new E({props:{$$slots:{default:[jn]},$$scope:{ctx:j}}}),{c(){d(s.$$.fragment)},l(t){u(s.$$.fragment,t)},m(t,r){$(s,t,r),o=!0},p(t,r){const f={};r&2&&(f.$$scope={dirty:r,ctx:t}),s.$set(f)},i(t){o||(h(s.$$.fragment,t),o=!0)},o(t){g(s.$$.fragment,t),o=!1},d(t){M(s,t)}}}function kn(j){let s,o='번역이나 요약과 같이 시퀀스-시퀀스 모델을 사용하는 과업에는 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Seq2SeqTrainer">Seq2SeqTrainer</a> 및 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Seq2SeqTrainingArguments">Seq2SeqTrainingArguments</a> 클래스를 사용하세요.';return{c(){s=y("p"),s.innerHTML=o},l(t){s=b(t,"P",{"data-svelte-h":!0}),w(s)!=="svelte-m7qdh2"&&(s.innerHTML=o)},m(t,r){n(t,s,r)},p:I,d(t){t&&l(s)}}}function Jn(j){let s,o,t,r,f,i,J,C,v,G='🤗 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>를 참조하기를 권장합니다.',T,Z,W="시작하기 전에 필요한 라이브러리가 모두 설치되어 있는지 확인하세요:",q,V,R,H,c="또한 선호하는 머신 러닝 프레임워크를 설치해야 합니다:",U,N,ts,le,ss,ne,as,re,Ba='<a href="./main_classes/pipelines"><code>pipeline</code></a>은 사전 훈련된 모델로 추론하기에 가장 쉽고 빠른 방법입니다. <code>pipeline()</code>은 여러 모달리티에서 다양한 과업을 쉽게 처리할 수 있으며, 아래 표에 표시된 몇 가지 과업을 기본적으로 지원합니다:',ls,Q,ns,oe,La="<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>",rs,pe,qa="먼저 <code>pipeline()</code>의 인스턴스를 생성하고 사용할 작업을 지정합니다. 이 가이드에서는 감정 분석을 위해 <code>pipeline()</code>을 사용하는 예제를 보여드리겠습니다:",os,me,ps,ie,Qa='<code>pipeline()</code>은 감정 분석을 위한 <a href="https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english" rel="nofollow">사전 훈련된 모델</a>과 토크나이저를 자동으로 다운로드하고 캐시합니다. 이제 <code>classifier</code>를 대상 텍스트에 사용할 수 있습니다:',ms,ce,is,fe,Sa="만약 입력이 여러 개 있는 경우, 입력을 리스트로 <code>pipeline()</code>에 전달하여, 사전 훈련된 모델의 출력을 딕셔너리로 이루어진 리스트 형태로 받을 수 있습니다:",cs,de,fs,ue,Pa="<code>pipeline()</code>은 주어진 과업에 관계없이 데이터셋 전부를 순회할 수도 있습니다. 이 예제에서는 자동 음성 인식을 과업으로 선택해 보겠습니다:",ds,$e,us,he,Oa='데이터셋을 로드할 차례입니다. (자세한 내용은 🤗 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> 데이터셋을 로드하겠습니다:',$s,ge,hs,Me,Da='데이터셋의 샘플링 레이트가 기존 모델인 <a href="https://huggingface.co/facebook/wav2vec2-base-960h" rel="nofollow"><code>facebook/wav2vec2-base-960h</code></a>의 훈련 당시 샘플링 레이트와 일치하는지 확인해야 합니다:',gs,ye,Ms,be,Ka="<code>&quot;audio&quot;</code> 열을 호출하면 자동으로 오디오 파일을 가져와서 리샘플링합니다. 첫 4개 샘플에서 원시 웨이브폼 배열을 추출하고 파이프라인에 리스트로 전달하세요:",ys,Te,bs,we,el='음성이나 비전과 같이 입력이 큰 대규모 데이터셋의 경우, 모든 입력을 메모리에 로드하려면 리스트 대신 제너레이터 형태로 전달해야 합니다. 자세한 내용은 <a href="./main_classes/pipelines">Pipelines API 참조</a>를 확인하세요.',Ts,je,ws,_e,tl='<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>이 반환됩니다:',js,ke,_s,S,ks,Je,sl="<code>pipeline()</code>에서 모델과 토크나이저를 지정하면, 이제 <code>classifier</code>를 프랑스어 텍스트에 적용할 수 있습니다:",Js,Ue,Us,Ze,al='마땅한 모델을 찾을 수 없는 경우 데이터를 기반으로 사전 훈련된 모델을 미세조정해야 합니다. 미세조정 방법에 대한 자세한 내용은 <a href="./training">미세조정 튜토리얼</a>을 참조하세요. 사전 훈련된 모델을 미세조정한 후에는 모델을 Hub의 커뮤니티와 공유하여 머신러닝 민주화에 기여해주세요! 🤗',Zs,Ce,Cs,ve,vs,Ge,ll='<a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoModelForSequenceClassification">AutoModelForSequenceClassification</a>과 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a> 클래스는 위에서 다룬 <code>pipeline()</code>의 기능을 구현하는 데 사용됩니다. <a href="./model_doc/auto">AutoClass</a>는 사전 훈련된 모델의 아키텍처를 이름이나 경로에서 자동으로 가져오는 ‘바로가기’입니다. 과업에 적합한 <code>AutoClass</code>를 선택하고 해당 전처리 클래스를 선택하기만 하면 됩니다.',Gs,Re,nl="이전 섹션의 예제로 돌아가서 <code>pipeline()</code>의 결과를 <code>AutoClass</code>를 활용해 복제하는 방법을 살펴보겠습니다.",Rs,We,Ws,Ie,rl='토크나이저는 텍스트를 모델의 입력으로 사용하기 위해 숫자 배열 형태로 전처리하는 역할을 담당합니다. 토큰화 과정에는 단어를 어디에서 끊을지, 어느 수준까지 나눌지와 같은 여러 규칙들이 있습니다 (토큰화에 대한 자세한 내용은 <a href="./tokenizer_summary">토크나이저 요약</a>을 참조하세요). 가장 중요한 점은 모델이 사전 훈련된 모델과 동일한 토큰화 규칙을 사용하도록 동일한 모델 이름으로 토크나이저를 인스턴스화해야 한다는 것입니다.',Is,Ve,ol='<a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>로 토크나이저를 로드하세요:',Vs,He,Hs,Fe,pl="텍스트를 토크나이저에 전달하세요:",Fs,Xe,Xs,xe,ml="토크나이저는 다음을 포함한 딕셔너리를 반환합니다:",xs,Ne,il='<li><a href="./glossary#input-ids">input_ids</a>: 토큰의 숫자 표현.</li> <li><a href=".glossary#attention-mask">attention_mask</a>: 어떤 토큰에 주의를 기울여야 하는지를 나타냅니다.</li>',Ns,ze,cl="토크나이저는 입력을 리스트 형태로도 받을 수 있으며, 텍스트를 패딩하고 잘라내어 일정한 길이의 묶음을 반환할 수도 있습니다:",zs,P,Es,O,Ys,Ee,As,D,Bs,K,Ls,Ye,qs,ee,Qs,Ae,fl="🤗 Transformers의 멋진 기능 중 하나는 모델을 PyTorch 또는 TensorFlow 모델로 저장해뒀다가 다른 프레임워크로 다시 로드할 수 있는 점입니다. <code>from_pt</code> 또는 <code>from_tf</code> 매개변수를 사용하여 모델을 한 프레임워크에서 다른 프레임워크로 변환할 수 있습니다:",Ss,te,Ps,Be,Os,Le,dl="모델의 구성 클래스를 수정하여 모델의 구조를 바꿀 수 있습니다. (은닉층이나 어텐션 헤드의 수와 같은) 모델의 속성은 구성에서 지정되기 때문입니다. 커스텀 구성 클래스로 모델을 만들면 처음부터 시작해야 합니다. 모델 속성은 무작위로 초기화되므로 의미 있는 결과를 얻으려면 먼저 모델을 훈련시켜야 합니다.",Ds,qe,ul='먼저 <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoConfig">AutoConfig</a>를 가져오고 수정하고 싶은 사전학습된 모델을 로드하세요. <a href="/docs/transformers/main/ko/model_doc/auto#transformers.AutoConfig.from_pretrained">AutoConfig.from_pretrained()</a> 내부에서 (어텐션 헤드 수와 같이) 변경하려는 속성를 지정할 수 있습니다:',Ks,Qe,ea,se,ta,Se,$l='커스텀 구성에 대한 자세한 내용은 <a href="./create_a_model">커스텀 아키텍처 만들기</a> 가이드를 확인하세요.',sa,Pe,aa,Oe,hl='모든 모델은 <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow"><code>torch.nn.Module</code></a>이므로 일반적인 훈련 루프에서 사용할 수 있습니다. 직접 훈련 루프를 작성할 수도 있지만, 🤗 Transformers는 PyTorch를 위한 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Trainer">Trainer</a> 클래스를 제공합니다. 이 클래스에는 기본 훈련 루프가 포함되어 있으며 분산 훈련, 혼합 정밀도 등과 같은 기능을 추가로 제공합니다.',la,De,gl='과업에 따라 다르지만 일반적으로 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Trainer">Trainer</a>에 다음 매개변수를 전달합니다:',na,F,Ke,zt,Ml='<a href="/docs/transformers/main/ko/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> 또는 <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow"><code>torch.nn.Module</code></a>로 시작합니다:',ja,et,_a,tt,Et,yl='<a href="/docs/transformers/main/ko/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>는 학습률, 배치 크기, 훈련할 에포크 수와 같은 모델 하이퍼파라미터를 포함합니다. 훈련 인자를 지정하지 않으면 기본값이 사용됩니다:',ka,st,Ja,at,Yt,bl="토크나이저, 이미지 프로세서, 특징 추출기(feature extractor) 또는 프로세서와 전처리 클래스를 로드하세요:",Ua,lt,Za,nt,At,Tl="데이터셋을 로드하세요:",Ca,rt,va,A,Bt,wl="데이터셋을 토큰화하는 함수를 생성하세요:",Ga,ot,Ra,Lt,jl="그리고 <code>map</code>로 데이터셋 전체에 적용하세요:",Wa,pt,Ia,mt,qt,_l='<a href="/docs/transformers/main/ko/main_classes/data_collator#transformers.DataCollatorWithPadding">DataCollatorWithPadding</a>을 사용하여 데이터셋의 표본 묶음을 만드세요:',Va,it,ra,ct,kl='이제 위의 모든 클래스를 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Trainer">Trainer</a>로 모으세요:',oa,ft,pa,dt,Jl='준비가 되었으면 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Trainer.train">train()</a>을 호출하여 훈련을 시작하세요:',ma,ut,ia,ae,ca,$t,Ul='<a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Trainer">Trainer</a> 내의 메서드를 서브클래스화하여 훈련 루프를 바꿀 수도 있습니다. 이러면 손실 함수, 옵티마이저, 스케줄러와 같은 기능 또한 바꿀 수 있게 됩니다. 변경 가능한 메소드에 대해서는 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Trainer">Trainer</a> 문서를 참고하세요.',fa,ht,Zl='훈련 루프를 수정하는 다른 방법은 <a href="./main_classes/callback">Callbacks</a>를 사용하는 것입니다. Callbacks로 다른 라이브러리와 통합하고, 훈련 루프를 체크하여 진행 상황을 보고받거나, 훈련을 조기에 중단할 수 있습니다. Callbacks은 훈련 루프 자체를 바꾸지는 않습니다. 손실 함수와 같은 것을 바꾸려면 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Trainer">Trainer</a>를 서브클래스화해야 합니다.',da,gt,ua,Mt,Cl='모든 모델은 <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> 형태로 쉽게 로드할 수 있는 <a href="/docs/transformers/main/ko/main_classes/model#transformers.TFPreTrainedModel.prepare_tf_dataset">prepare_tf_dataset()</a> 메소드를 제공하기 때문에, 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> 메소드로 바로 훈련을 시작할 수 있습니다.',$a,z,yt,Qt,vl='<a href="/docs/transformers/main/ko/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> 또는 <a href="https://www.tensorflow.org/api_docs/python/tf/keras/Model" rel="nofollow"><code>tf.keras.Model</code></a>로 시작합니다:',Ha,bt,Fa,Tt,St,Gl="토크나이저, 이미지 프로세서, 특징 추출기(feature extractor) 또는 프로세서와 같은 전처리 클래스를 로드하세요:",Xa,wt,xa,jt,Pt,Rl="데이터셋을 토큰화하는 함수를 생성하세요:",Na,_t,za,kt,Ot,Wl='<code>map</code>을 사용하여 전체 데이터셋에 토큰화 함수를 적용하고, 데이터셋과 토크나이저를 <a href="/docs/transformers/main/ko/main_classes/model#transformers.TFPreTrainedModel.prepare_tf_dataset">prepare_tf_dataset()</a>에 전달하세요. 배치 크기를 변경하거나 데이터셋을 섞을 수도 있습니다:',Ea,Jt,Ya,Ut,Dt,Il="준비되었으면 <code>compile</code> 및 <code>fit</code>를 호출하여 훈련을 시작하세요. 🤗 Transformers의 모든 모델은 과업과 관련된 기본 손실 함수를 가지고 있으므로 명시적으로 지정하지 않아도 됩니다:",Aa,Zt,ha,Ct,ga,vt,Vl="🤗 Transformers 둘러보기를 모두 읽으셨다면, 가이드를 살펴보고 더 구체적인 것을 수행하는 방법을 알아보세요. 이를테면 커스텀 모델 구축하는 방법, 과업에 알맞게 모델을 미세조정하는 방법, 스크립트로 모델 훈련하는 방법 등이 있습니다. 🤗 Transformers 핵심 개념에 대해 더 알아보려면 커피 한 잔 들고 개념 가이드를 살펴보세요!",Ma,Gt,ya,es,ba;return f=new L({props:{title:"둘러보기",local:"quick-tour",headingTag:"h1"}}),J=new Yl({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"}]}}),V=new _({props:{code:"IXBpcCUyMGluc3RhbGwlMjB0cmFuc2Zvcm1lcnMlMjBkYXRhc2V0cyUyMGV2YWx1YXRlJTIwYWNjZWxlcmF0ZQ==",highlighted:"!pip install transformers datasets evaluate accelerate",wrap:!1}}),N=new Nt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Ql],pytorch:[Ll]},$$scope:{ctx:j}}}),le=new L({props:{title:"파이프라인",local:"pipeline",headingTag:"h2"}}),ne=new Fl({props:{id:"tiZFewofSLM"}}),Q=new Kt({props:{$$slots:{default:[Sl]},$$scope:{ctx:j}}}),me=new _({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}}),ce=new _({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}}),de=new _({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}}),$e=new _({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}}),ge=new _({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}}),ye=new _({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}}),Te=new _({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}}),je=new L({props:{title:"파이프라인에서 다른 모델과 토크나이저 사용하기",local:"use-another-model-and-tokenizer-in-the-pipeline",headingTag:"h3"}}),ke=new _({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}}),S=new Nt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Kl],pytorch:[Ol]},$$scope:{ctx:j}}}),Ue=new _({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}}),Ce=new L({props:{title:"AutoClass",local:"autoclass",headingTag:"h2"}}),ve=new Fl({props:{id:"AhChOFRegn4"}}),We=new L({props:{title:"AutoTokenizer",local:"autotokenizer",headingTag:"h3"}}),He=new _({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}}),Xe=new _({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}}),P=new Nt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[an],pytorch:[tn]},$$scope:{ctx:j}}}),O=new Kt({props:{$$slots:{default:[ln]},$$scope:{ctx:j}}}),Ee=new L({props:{title:"AutoModel",local:"automodel",headingTag:"h3"}}),D=new Nt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[cn],pytorch:[on]},$$scope:{ctx:j}}}),K=new Kt({props:{$$slots:{default:[fn]},$$scope:{ctx:j}}}),Ye=new L({props:{title:"모델 저장하기",local:"save-a-model",headingTag:"h3"}}),ee=new Nt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[hn],pytorch:[un]},$$scope:{ctx:j}}}),te=new Nt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[bn],pytorch:[Mn]},$$scope:{ctx:j}}}),Be=new L({props:{title:"커스텀 모델 구축하기",local:"custom-model-builds",headingTag:"h2"}}),Qe=new _({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Db25maWclMEElMEFteV9jb25maWclMjAlM0QlMjBBdXRvQ29uZmlnLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0JTJGZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBuX2hlYWRzJTNEMTIp",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/distilbert-base-uncased&quot;</span>, n_heads=<span class="hljs-number">12</span>)`,wrap:!1}}),se=new Nt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[_n],pytorch:[wn]},$$scope:{ctx:j}}}),Pe=new L({props:{title:"Trainer - PyTorch에 최적화된 훈련 루프",local:"trainer-a-pytorch-optimized-training-loop",headingTag:"h2"}}),et=new _({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEElMEFtb2RlbCUyMCUzRCUyMEF1dG9Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmRpc3RpbGJlcnQlMkZkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZCUyMik=",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/distilbert-base-uncased&quot;</span>)`,wrap:!1}}),st=new _({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}}),lt=new _({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0JTJGZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQlMjIp",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/distilbert-base-uncased&quot;</span>)`,wrap:!1}}),rt=new _({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}}),ot=new _({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}}),pt=new _({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}}),it=new _({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}}),ft=new _({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluZXIlMEElMEF0cmFpbmVyJTIwJTNEJTIwVHJhaW5lciglMEElMjAlMjAlMjAlMjBtb2RlbCUzRG1vZGVsJTJDJTBBJTIwJTIwJTIwJTIwYXJncyUzRHRyYWluaW5nX2FyZ3MlMkMlMEElMjAlMjAlMjAlMjB0cmFpbl9kYXRhc2V0JTNEZGF0YXNldCU1QiUyMnRyYWluJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwZXZhbF9kYXRhc2V0JTNEZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjBwcm9jZXNzaW5nX2NsYXNzJTNEdG9rZW5pemVyJTJDJTBBJTIwJTIwJTIwJTIwZGF0YV9jb2xsYXRvciUzRGRhdGFfY29sbGF0b3IlMkMlMEEpJTIwJTIwJTIzJTIwZG9jdGVzdCUzQSUyMCUyQlNLSVA=",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>    processing_class=tokenizer,
<span class="hljs-meta">... </span>    data_collator=data_collator,
<span class="hljs-meta">... </span>)  <span class="hljs-comment"># doctest: +SKIP</span>`,wrap:!1}}),ut=new _({props:{code:"dHJhaW5lci50cmFpbigp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>trainer.train()',wrap:!1}}),ae=new Kt({props:{$$slots:{default:[kn]},$$scope:{ctx:j}}}),gt=new L({props:{title:"TensorFlow로 훈련시키기",local:"train-with-tensorflow",headingTag:"h2"}}),bt=new _({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbiUwQSUwQW1vZGVsJTIwJTNEJTIwVEZBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0JTJGZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQlMjIp",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/distilbert-base-uncased&quot;</span>)`,wrap:!1}}),wt=new _({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0JTJGZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQlMjIp",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/distilbert-base-uncased&quot;</span>)`,wrap:!1}}),_t=new _({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}}),Jt=new _({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}}),Zt=new _({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}}),Ct=new L({props:{title:"다음 단계는 무엇인가요?",local:"whats-next",headingTag:"h2"}}),Gt=new Al({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ko/quicktour.md"}}),{c(){s=y("meta"),o=p(),t=y("p"),r=p(),d(f.$$.fragment),i=p(),d(J.$$.fragment),C=p(),v=y("p"),v.innerHTML=G,T=p(),Z=y("p"),Z.textContent=W,q=p(),d(V.$$.fragment),R=p(),H=y("p"),H.textContent=c,U=p(),d(N.$$.fragment),ts=p(),d(le.$$.fragment),ss=p(),d(ne.$$.fragment),as=p(),re=y("p"),re.innerHTML=Ba,ls=p(),d(Q.$$.fragment),ns=p(),oe=y("table"),oe.innerHTML=La,rs=p(),pe=y("p"),pe.innerHTML=qa,os=p(),d(me.$$.fragment),ps=p(),ie=y("p"),ie.innerHTML=Qa,ms=p(),d(ce.$$.fragment),is=p(),fe=y("p"),fe.innerHTML=Sa,cs=p(),d(de.$$.fragment),fs=p(),ue=y("p"),ue.innerHTML=Pa,ds=p(),d($e.$$.fragment),us=p(),he=y("p"),he.innerHTML=Oa,$s=p(),d(ge.$$.fragment),hs=p(),Me=y("p"),Me.innerHTML=Da,gs=p(),d(ye.$$.fragment),Ms=p(),be=y("p"),be.innerHTML=Ka,ys=p(),d(Te.$$.fragment),bs=p(),we=y("p"),we.innerHTML=el,Ts=p(),d(je.$$.fragment),ws=p(),_e=y("p"),_e.innerHTML=tl,js=p(),d(ke.$$.fragment),_s=p(),d(S.$$.fragment),ks=p(),Je=y("p"),Je.innerHTML=sl,Js=p(),d(Ue.$$.fragment),Us=p(),Ze=y("p"),Ze.innerHTML=al,Zs=p(),d(Ce.$$.fragment),Cs=p(),d(ve.$$.fragment),vs=p(),Ge=y("p"),Ge.innerHTML=ll,Gs=p(),Re=y("p"),Re.innerHTML=nl,Rs=p(),d(We.$$.fragment),Ws=p(),Ie=y("p"),Ie.innerHTML=rl,Is=p(),Ve=y("p"),Ve.innerHTML=ol,Vs=p(),d(He.$$.fragment),Hs=p(),Fe=y("p"),Fe.textContent=pl,Fs=p(),d(Xe.$$.fragment),Xs=p(),xe=y("p"),xe.textContent=ml,xs=p(),Ne=y("ul"),Ne.innerHTML=il,Ns=p(),ze=y("p"),ze.textContent=cl,zs=p(),d(P.$$.fragment),Es=p(),d(O.$$.fragment),Ys=p(),d(Ee.$$.fragment),As=p(),d(D.$$.fragment),Bs=p(),d(K.$$.fragment),Ls=p(),d(Ye.$$.fragment),qs=p(),d(ee.$$.fragment),Qs=p(),Ae=y("p"),Ae.innerHTML=fl,Ss=p(),d(te.$$.fragment),Ps=p(),d(Be.$$.fragment),Os=p(),Le=y("p"),Le.textContent=dl,Ds=p(),qe=y("p"),qe.innerHTML=ul,Ks=p(),d(Qe.$$.fragment),ea=p(),d(se.$$.fragment),ta=p(),Se=y("p"),Se.innerHTML=$l,sa=p(),d(Pe.$$.fragment),aa=p(),Oe=y("p"),Oe.innerHTML=hl,la=p(),De=y("p"),De.innerHTML=gl,na=p(),F=y("ol"),Ke=y("li"),zt=y("p"),zt.innerHTML=Ml,ja=p(),d(et.$$.fragment),_a=p(),tt=y("li"),Et=y("p"),Et.innerHTML=yl,ka=p(),d(st.$$.fragment),Ja=p(),at=y("li"),Yt=y("p"),Yt.textContent=bl,Ua=p(),d(lt.$$.fragment),Za=p(),nt=y("li"),At=y("p"),At.textContent=Tl,Ca=p(),d(rt.$$.fragment),va=p(),A=y("li"),Bt=y("p"),Bt.textContent=wl,Ga=p(),d(ot.$$.fragment),Ra=p(),Lt=y("p"),Lt.innerHTML=jl,Wa=p(),d(pt.$$.fragment),Ia=p(),mt=y("li"),qt=y("p"),qt.innerHTML=_l,Va=p(),d(it.$$.fragment),ra=p(),ct=y("p"),ct.innerHTML=kl,oa=p(),d(ft.$$.fragment),pa=p(),dt=y("p"),dt.innerHTML=Jl,ma=p(),d(ut.$$.fragment),ia=p(),d(ae.$$.fragment),ca=p(),$t=y("p"),$t.innerHTML=Ul,fa=p(),ht=y("p"),ht.innerHTML=Zl,da=p(),d(gt.$$.fragment),ua=p(),Mt=y("p"),Mt.innerHTML=Cl,$a=p(),z=y("ol"),yt=y("li"),Qt=y("p"),Qt.innerHTML=vl,Ha=p(),d(bt.$$.fragment),Fa=p(),Tt=y("li"),St=y("p"),St.textContent=Gl,Xa=p(),d(wt.$$.fragment),xa=p(),jt=y("li"),Pt=y("p"),Pt.textContent=Rl,Na=p(),d(_t.$$.fragment),za=p(),kt=y("li"),Ot=y("p"),Ot.innerHTML=Wl,Ea=p(),d(Jt.$$.fragment),Ya=p(),Ut=y("li"),Dt=y("p"),Dt.innerHTML=Il,Aa=p(),d(Zt.$$.fragment),ha=p(),d(Ct.$$.fragment),ga=p(),vt=y("p"),vt.textContent=Vl,Ma=p(),d(Gt.$$.fragment),ya=p(),es=y("p"),this.h()},l(e){const a=El("svelte-u9bgzb",document.head);s=b(a,"META",{name:!0,content:!0}),a.forEach(l),o=m(e),t=b(e,"P",{}),x(t).forEach(l),r=m(e),u(f.$$.fragment,e),i=m(e),u(J.$$.fragment,e),C=m(e),v=b(e,"P",{"data-svelte-h":!0}),w(v)!=="svelte-6mg9x4"&&(v.innerHTML=G),T=m(e),Z=b(e,"P",{"data-svelte-h":!0}),w(Z)!=="svelte-1k0z9pm"&&(Z.textContent=W),q=m(e),u(V.$$.fragment,e),R=m(e),H=b(e,"P",{"data-svelte-h":!0}),w(H)!=="svelte-15tdirm"&&(H.textContent=c),U=m(e),u(N.$$.fragment,e),ts=m(e),u(le.$$.fragment,e),ss=m(e),u(ne.$$.fragment,e),as=m(e),re=b(e,"P",{"data-svelte-h":!0}),w(re)!=="svelte-1w7vzh3"&&(re.innerHTML=Ba),ls=m(e),u(Q.$$.fragment,e),ns=m(e),oe=b(e,"TABLE",{"data-svelte-h":!0}),w(oe)!=="svelte-1hgozun"&&(oe.innerHTML=La),rs=m(e),pe=b(e,"P",{"data-svelte-h":!0}),w(pe)!=="svelte-azyw3l"&&(pe.innerHTML=qa),os=m(e),u(me.$$.fragment,e),ps=m(e),ie=b(e,"P",{"data-svelte-h":!0}),w(ie)!=="svelte-ijc3e4"&&(ie.innerHTML=Qa),ms=m(e),u(ce.$$.fragment,e),is=m(e),fe=b(e,"P",{"data-svelte-h":!0}),w(fe)!=="svelte-1ojxldp"&&(fe.innerHTML=Sa),cs=m(e),u(de.$$.fragment,e),fs=m(e),ue=b(e,"P",{"data-svelte-h":!0}),w(ue)!=="svelte-1j1fqr5"&&(ue.innerHTML=Pa),ds=m(e),u($e.$$.fragment,e),us=m(e),he=b(e,"P",{"data-svelte-h":!0}),w(he)!=="svelte-1h4e9f5"&&(he.innerHTML=Oa),$s=m(e),u(ge.$$.fragment,e),hs=m(e),Me=b(e,"P",{"data-svelte-h":!0}),w(Me)!=="svelte-14oiedi"&&(Me.innerHTML=Da),gs=m(e),u(ye.$$.fragment,e),Ms=m(e),be=b(e,"P",{"data-svelte-h":!0}),w(be)!=="svelte-1yaj65v"&&(be.innerHTML=Ka),ys=m(e),u(Te.$$.fragment,e),bs=m(e),we=b(e,"P",{"data-svelte-h":!0}),w(we)!=="svelte-1r53z39"&&(we.innerHTML=el),Ts=m(e),u(je.$$.fragment,e),ws=m(e),_e=b(e,"P",{"data-svelte-h":!0}),w(_e)!=="svelte-1r35uy"&&(_e.innerHTML=tl),js=m(e),u(ke.$$.fragment,e),_s=m(e),u(S.$$.fragment,e),ks=m(e),Je=b(e,"P",{"data-svelte-h":!0}),w(Je)!=="svelte-94oea8"&&(Je.innerHTML=sl),Js=m(e),u(Ue.$$.fragment,e),Us=m(e),Ze=b(e,"P",{"data-svelte-h":!0}),w(Ze)!=="svelte-q9e5jp"&&(Ze.innerHTML=al),Zs=m(e),u(Ce.$$.fragment,e),Cs=m(e),u(ve.$$.fragment,e),vs=m(e),Ge=b(e,"P",{"data-svelte-h":!0}),w(Ge)!=="svelte-xtw7a8"&&(Ge.innerHTML=ll),Gs=m(e),Re=b(e,"P",{"data-svelte-h":!0}),w(Re)!=="svelte-1jdzkyq"&&(Re.innerHTML=nl),Rs=m(e),u(We.$$.fragment,e),Ws=m(e),Ie=b(e,"P",{"data-svelte-h":!0}),w(Ie)!=="svelte-ec7bh3"&&(Ie.innerHTML=rl),Is=m(e),Ve=b(e,"P",{"data-svelte-h":!0}),w(Ve)!=="svelte-1dw0ywd"&&(Ve.innerHTML=ol),Vs=m(e),u(He.$$.fragment,e),Hs=m(e),Fe=b(e,"P",{"data-svelte-h":!0}),w(Fe)!=="svelte-1jksv9d"&&(Fe.textContent=pl),Fs=m(e),u(Xe.$$.fragment,e),Xs=m(e),xe=b(e,"P",{"data-svelte-h":!0}),w(xe)!=="svelte-1c10jmq"&&(xe.textContent=ml),xs=m(e),Ne=b(e,"UL",{"data-svelte-h":!0}),w(Ne)!=="svelte-99hc5f"&&(Ne.innerHTML=il),Ns=m(e),ze=b(e,"P",{"data-svelte-h":!0}),w(ze)!=="svelte-jype1g"&&(ze.textContent=cl),zs=m(e),u(P.$$.fragment,e),Es=m(e),u(O.$$.fragment,e),Ys=m(e),u(Ee.$$.fragment,e),As=m(e),u(D.$$.fragment,e),Bs=m(e),u(K.$$.fragment,e),Ls=m(e),u(Ye.$$.fragment,e),qs=m(e),u(ee.$$.fragment,e),Qs=m(e),Ae=b(e,"P",{"data-svelte-h":!0}),w(Ae)!=="svelte-olv60e"&&(Ae.innerHTML=fl),Ss=m(e),u(te.$$.fragment,e),Ps=m(e),u(Be.$$.fragment,e),Os=m(e),Le=b(e,"P",{"data-svelte-h":!0}),w(Le)!=="svelte-pasr7c"&&(Le.textContent=dl),Ds=m(e),qe=b(e,"P",{"data-svelte-h":!0}),w(qe)!=="svelte-1jnv1sz"&&(qe.innerHTML=ul),Ks=m(e),u(Qe.$$.fragment,e),ea=m(e),u(se.$$.fragment,e),ta=m(e),Se=b(e,"P",{"data-svelte-h":!0}),w(Se)!=="svelte-1glm9pk"&&(Se.innerHTML=$l),sa=m(e),u(Pe.$$.fragment,e),aa=m(e),Oe=b(e,"P",{"data-svelte-h":!0}),w(Oe)!=="svelte-hm18ag"&&(Oe.innerHTML=hl),la=m(e),De=b(e,"P",{"data-svelte-h":!0}),w(De)!=="svelte-y6ri6q"&&(De.innerHTML=gl),na=m(e),F=b(e,"OL",{});var X=x(F);Ke=b(X,"LI",{});var Rt=x(Ke);zt=b(Rt,"P",{"data-svelte-h":!0}),w(zt)!=="svelte-1ya7owa"&&(zt.innerHTML=Ml),ja=m(Rt),u(et.$$.fragment,Rt),Rt.forEach(l),_a=m(X),tt=b(X,"LI",{});var Wt=x(tt);Et=b(Wt,"P",{"data-svelte-h":!0}),w(Et)!=="svelte-chk5es"&&(Et.innerHTML=yl),ka=m(Wt),u(st.$$.fragment,Wt),Wt.forEach(l),Ja=m(X),at=b(X,"LI",{});var It=x(at);Yt=b(It,"P",{"data-svelte-h":!0}),w(Yt)!=="svelte-1v961uv"&&(Yt.textContent=bl),Ua=m(It),u(lt.$$.fragment,It),It.forEach(l),Za=m(X),nt=b(X,"LI",{});var Vt=x(nt);At=b(Vt,"P",{"data-svelte-h":!0}),w(At)!=="svelte-1pb52rt"&&(At.textContent=Tl),Ca=m(Vt),u(rt.$$.fragment,Vt),Vt.forEach(l),va=m(X),A=b(X,"LI",{});var B=x(A);Bt=b(B,"P",{"data-svelte-h":!0}),w(Bt)!=="svelte-1vmtcn7"&&(Bt.textContent=wl),Ga=m(B),u(ot.$$.fragment,B),Ra=m(B),Lt=b(B,"P",{"data-svelte-h":!0}),w(Lt)!=="svelte-1c5wtqo"&&(Lt.innerHTML=jl),Wa=m(B),u(pt.$$.fragment,B),B.forEach(l),Ia=m(X),mt=b(X,"LI",{});var Ht=x(mt);qt=b(Ht,"P",{"data-svelte-h":!0}),w(qt)!=="svelte-97h4bf"&&(qt.innerHTML=_l),Va=m(Ht),u(it.$$.fragment,Ht),Ht.forEach(l),X.forEach(l),ra=m(e),ct=b(e,"P",{"data-svelte-h":!0}),w(ct)!=="svelte-cumrfb"&&(ct.innerHTML=kl),oa=m(e),u(ft.$$.fragment,e),pa=m(e),dt=b(e,"P",{"data-svelte-h":!0}),w(dt)!=="svelte-apexmq"&&(dt.innerHTML=Jl),ma=m(e),u(ut.$$.fragment,e),ia=m(e),u(ae.$$.fragment,e),ca=m(e),$t=b(e,"P",{"data-svelte-h":!0}),w($t)!=="svelte-1l68j87"&&($t.innerHTML=Ul),fa=m(e),ht=b(e,"P",{"data-svelte-h":!0}),w(ht)!=="svelte-imk3v"&&(ht.innerHTML=Zl),da=m(e),u(gt.$$.fragment,e),ua=m(e),Mt=b(e,"P",{"data-svelte-h":!0}),w(Mt)!=="svelte-17vjx4p"&&(Mt.innerHTML=Cl),$a=m(e),z=b(e,"OL",{});var Y=x(z);yt=b(Y,"LI",{});var Ft=x(yt);Qt=b(Ft,"P",{"data-svelte-h":!0}),w(Qt)!=="svelte-as8wbf"&&(Qt.innerHTML=vl),Ha=m(Ft),u(bt.$$.fragment,Ft),Ft.forEach(l),Fa=m(Y),Tt=b(Y,"LI",{});var Xt=x(Tt);St=b(Xt,"P",{"data-svelte-h":!0}),w(St)!=="svelte-18oe8vk"&&(St.textContent=Gl),Xa=m(Xt),u(wt.$$.fragment,Xt),Xt.forEach(l),xa=m(Y),jt=b(Y,"LI",{});var xt=x(jt);Pt=b(xt,"P",{"data-svelte-h":!0}),w(Pt)!=="svelte-1vmtcn7"&&(Pt.textContent=Rl),Na=m(xt),u(_t.$$.fragment,xt),xt.forEach(l),za=m(Y),kt=b(Y,"LI",{});var Ta=x(kt);Ot=b(Ta,"P",{"data-svelte-h":!0}),w(Ot)!=="svelte-15e96e6"&&(Ot.innerHTML=Wl),Ea=m(Ta),u(Jt.$$.fragment,Ta),Ta.forEach(l),Ya=m(Y),Ut=b(Y,"LI",{});var wa=x(Ut);Dt=b(wa,"P",{"data-svelte-h":!0}),w(Dt)!=="svelte-ffpzwi"&&(Dt.innerHTML=Il),Aa=m(wa),u(Zt.$$.fragment,wa),wa.forEach(l),Y.forEach(l),ha=m(e),u(Ct.$$.fragment,e),ga=m(e),vt=b(e,"P",{"data-svelte-h":!0}),w(vt)!=="svelte-vqs42a"&&(vt.textContent=Vl),Ma=m(e),u(Gt.$$.fragment,e),ya=m(e),es=b(e,"P",{}),x(es).forEach(l),this.h()},h(){Hl(s,"name","hf:doc:metadata"),Hl(s,"content",Un)},m(e,a){k(document.head,s),n(e,o,a),n(e,t,a),n(e,r,a),$(f,e,a),n(e,i,a),$(J,e,a),n(e,C,a),n(e,v,a),n(e,T,a),n(e,Z,a),n(e,q,a),$(V,e,a),n(e,R,a),n(e,H,a),n(e,U,a),$(N,e,a),n(e,ts,a),$(le,e,a),n(e,ss,a),$(ne,e,a),n(e,as,a),n(e,re,a),n(e,ls,a),$(Q,e,a),n(e,ns,a),n(e,oe,a),n(e,rs,a),n(e,pe,a),n(e,os,a),$(me,e,a),n(e,ps,a),n(e,ie,a),n(e,ms,a),$(ce,e,a),n(e,is,a),n(e,fe,a),n(e,cs,a),$(de,e,a),n(e,fs,a),n(e,ue,a),n(e,ds,a),$($e,e,a),n(e,us,a),n(e,he,a),n(e,$s,a),$(ge,e,a),n(e,hs,a),n(e,Me,a),n(e,gs,a),$(ye,e,a),n(e,Ms,a),n(e,be,a),n(e,ys,a),$(Te,e,a),n(e,bs,a),n(e,we,a),n(e,Ts,a),$(je,e,a),n(e,ws,a),n(e,_e,a),n(e,js,a),$(ke,e,a),n(e,_s,a),$(S,e,a),n(e,ks,a),n(e,Je,a),n(e,Js,a),$(Ue,e,a),n(e,Us,a),n(e,Ze,a),n(e,Zs,a),$(Ce,e,a),n(e,Cs,a),$(ve,e,a),n(e,vs,a),n(e,Ge,a),n(e,Gs,a),n(e,Re,a),n(e,Rs,a),$(We,e,a),n(e,Ws,a),n(e,Ie,a),n(e,Is,a),n(e,Ve,a),n(e,Vs,a),$(He,e,a),n(e,Hs,a),n(e,Fe,a),n(e,Fs,a),$(Xe,e,a),n(e,Xs,a),n(e,xe,a),n(e,xs,a),n(e,Ne,a),n(e,Ns,a),n(e,ze,a),n(e,zs,a),$(P,e,a),n(e,Es,a),$(O,e,a),n(e,Ys,a),$(Ee,e,a),n(e,As,a),$(D,e,a),n(e,Bs,a),$(K,e,a),n(e,Ls,a),$(Ye,e,a),n(e,qs,a),$(ee,e,a),n(e,Qs,a),n(e,Ae,a),n(e,Ss,a),$(te,e,a),n(e,Ps,a),$(Be,e,a),n(e,Os,a),n(e,Le,a),n(e,Ds,a),n(e,qe,a),n(e,Ks,a),$(Qe,e,a),n(e,ea,a),$(se,e,a),n(e,ta,a),n(e,Se,a),n(e,sa,a),$(Pe,e,a),n(e,aa,a),n(e,Oe,a),n(e,la,a),n(e,De,a),n(e,na,a),n(e,F,a),k(F,Ke),k(Ke,zt),k(Ke,ja),$(et,Ke,null),k(F,_a),k(F,tt),k(tt,Et),k(tt,ka),$(st,tt,null),k(F,Ja),k(F,at),k(at,Yt),k(at,Ua),$(lt,at,null),k(F,Za),k(F,nt),k(nt,At),k(nt,Ca),$(rt,nt,null),k(F,va),k(F,A),k(A,Bt),k(A,Ga),$(ot,A,null),k(A,Ra),k(A,Lt),k(A,Wa),$(pt,A,null),k(F,Ia),k(F,mt),k(mt,qt),k(mt,Va),$(it,mt,null),n(e,ra,a),n(e,ct,a),n(e,oa,a),$(ft,e,a),n(e,pa,a),n(e,dt,a),n(e,ma,a),$(ut,e,a),n(e,ia,a),$(ae,e,a),n(e,ca,a),n(e,$t,a),n(e,fa,a),n(e,ht,a),n(e,da,a),$(gt,e,a),n(e,ua,a),n(e,Mt,a),n(e,$a,a),n(e,z,a),k(z,yt),k(yt,Qt),k(yt,Ha),$(bt,yt,null),k(z,Fa),k(z,Tt),k(Tt,St),k(Tt,Xa),$(wt,Tt,null),k(z,xa),k(z,jt),k(jt,Pt),k(jt,Na),$(_t,jt,null),k(z,za),k(z,kt),k(kt,Ot),k(kt,Ea),$(Jt,kt,null),k(z,Ya),k(z,Ut),k(Ut,Dt),k(Ut,Aa),$(Zt,Ut,null),n(e,ha,a),$(Ct,e,a),n(e,ga,a),n(e,vt,a),n(e,Ma,a),$(Gt,e,a),n(e,ya,a),n(e,es,a),ba=!0},p(e,[a]){const X={};a&2&&(X.$$scope={dirty:a,ctx:e}),N.$set(X);const Rt={};a&2&&(Rt.$$scope={dirty:a,ctx:e}),Q.$set(Rt);const Wt={};a&2&&(Wt.$$scope={dirty:a,ctx:e}),S.$set(Wt);const It={};a&2&&(It.$$scope={dirty:a,ctx:e}),P.$set(It);const Vt={};a&2&&(Vt.$$scope={dirty:a,ctx:e}),O.$set(Vt);const B={};a&2&&(B.$$scope={dirty:a,ctx:e}),D.$set(B);const Ht={};a&2&&(Ht.$$scope={dirty:a,ctx:e}),K.$set(Ht);const Y={};a&2&&(Y.$$scope={dirty:a,ctx:e}),ee.$set(Y);const Ft={};a&2&&(Ft.$$scope={dirty:a,ctx:e}),te.$set(Ft);const Xt={};a&2&&(Xt.$$scope={dirty:a,ctx:e}),se.$set(Xt);const xt={};a&2&&(xt.$$scope={dirty:a,ctx:e}),ae.$set(xt)},i(e){ba||(h(f.$$.fragment,e),h(J.$$.fragment,e),h(V.$$.fragment,e),h(N.$$.fragment,e),h(le.$$.fragment,e),h(ne.$$.fragment,e),h(Q.$$.fragment,e),h(me.$$.fragment,e),h(ce.$$.fragment,e),h(de.$$.fragment,e),h($e.$$.fragment,e),h(ge.$$.fragment,e),h(ye.$$.fragment,e),h(Te.$$.fragment,e),h(je.$$.fragment,e),h(ke.$$.fragment,e),h(S.$$.fragment,e),h(Ue.$$.fragment,e),h(Ce.$$.fragment,e),h(ve.$$.fragment,e),h(We.$$.fragment,e),h(He.$$.fragment,e),h(Xe.$$.fragment,e),h(P.$$.fragment,e),h(O.$$.fragment,e),h(Ee.$$.fragment,e),h(D.$$.fragment,e),h(K.$$.fragment,e),h(Ye.$$.fragment,e),h(ee.$$.fragment,e),h(te.$$.fragment,e),h(Be.$$.fragment,e),h(Qe.$$.fragment,e),h(se.$$.fragment,e),h(Pe.$$.fragment,e),h(et.$$.fragment,e),h(st.$$.fragment,e),h(lt.$$.fragment,e),h(rt.$$.fragment,e),h(ot.$$.fragment,e),h(pt.$$.fragment,e),h(it.$$.fragment,e),h(ft.$$.fragment,e),h(ut.$$.fragment,e),h(ae.$$.fragment,e),h(gt.$$.fragment,e),h(bt.$$.fragment,e),h(wt.$$.fragment,e),h(_t.$$.fragment,e),h(Jt.$$.fragment,e),h(Zt.$$.fragment,e),h(Ct.$$.fragment,e),h(Gt.$$.fragment,e),ba=!0)},o(e){g(f.$$.fragment,e),g(J.$$.fragment,e),g(V.$$.fragment,e),g(N.$$.fragment,e),g(le.$$.fragment,e),g(ne.$$.fragment,e),g(Q.$$.fragment,e),g(me.$$.fragment,e),g(ce.$$.fragment,e),g(de.$$.fragment,e),g($e.$$.fragment,e),g(ge.$$.fragment,e),g(ye.$$.fragment,e),g(Te.$$.fragment,e),g(je.$$.fragment,e),g(ke.$$.fragment,e),g(S.$$.fragment,e),g(Ue.$$.fragment,e),g(Ce.$$.fragment,e),g(ve.$$.fragment,e),g(We.$$.fragment,e),g(He.$$.fragment,e),g(Xe.$$.fragment,e),g(P.$$.fragment,e),g(O.$$.fragment,e),g(Ee.$$.fragment,e),g(D.$$.fragment,e),g(K.$$.fragment,e),g(Ye.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(Be.$$.fragment,e),g(Qe.$$.fragment,e),g(se.$$.fragment,e),g(Pe.$$.fragment,e),g(et.$$.fragment,e),g(st.$$.fragment,e),g(lt.$$.fragment,e),g(rt.$$.fragment,e),g(ot.$$.fragment,e),g(pt.$$.fragment,e),g(it.$$.fragment,e),g(ft.$$.fragment,e),g(ut.$$.fragment,e),g(ae.$$.fragment,e),g(gt.$$.fragment,e),g(bt.$$.fragment,e),g(wt.$$.fragment,e),g(_t.$$.fragment,e),g(Jt.$$.fragment,e),g(Zt.$$.fragment,e),g(Ct.$$.fragment,e),g(Gt.$$.fragment,e),ba=!1},d(e){e&&(l(o),l(t),l(r),l(i),l(C),l(v),l(T),l(Z),l(q),l(R),l(H),l(U),l(ts),l(ss),l(as),l(re),l(ls),l(ns),l(oe),l(rs),l(pe),l(os),l(ps),l(ie),l(ms),l(is),l(fe),l(cs),l(fs),l(ue),l(ds),l(us),l(he),l($s),l(hs),l(Me),l(gs),l(Ms),l(be),l(ys),l(bs),l(we),l(Ts),l(ws),l(_e),l(js),l(_s),l(ks),l(Je),l(Js),l(Us),l(Ze),l(Zs),l(Cs),l(vs),l(Ge),l(Gs),l(Re),l(Rs),l(Ws),l(Ie),l(Is),l(Ve),l(Vs),l(Hs),l(Fe),l(Fs),l(Xs),l(xe),l(xs),l(Ne),l(Ns),l(ze),l(zs),l(Es),l(Ys),l(As),l(Bs),l(Ls),l(qs),l(Qs),l(Ae),l(Ss),l(Ps),l(Os),l(Le),l(Ds),l(qe),l(Ks),l(ea),l(ta),l(Se),l(sa),l(aa),l(Oe),l(la),l(De),l(na),l(F),l(ra),l(ct),l(oa),l(pa),l(dt),l(ma),l(ia),l(ca),l($t),l(fa),l(ht),l(da),l(ua),l(Mt),l($a),l(z),l(ha),l(ga),l(vt),l(Ma),l(ya),l(es)),l(s),M(f,e),M(J,e),M(V,e),M(N,e),M(le,e),M(ne,e),M(Q,e),M(me,e),M(ce,e),M(de,e),M($e,e),M(ge,e),M(ye,e),M(Te,e),M(je,e),M(ke,e),M(S,e),M(Ue,e),M(Ce,e),M(ve,e),M(We,e),M(He,e),M(Xe,e),M(P,e),M(O,e),M(Ee,e),M(D,e),M(K,e),M(Ye,e),M(ee,e),M(te,e),M(Be,e),M(Qe,e),M(se,e),M(Pe,e),M(et),M(st),M(lt),M(rt),M(ot),M(pt),M(it),M(ft,e),M(ut,e),M(ae,e),M(gt,e),M(bt),M(wt),M(_t),M(Jt),M(Zt),M(Ct,e),M(Gt,e)}}}const Un='{"title":"둘러보기","local":"quick-tour","sections":[{"title":"파이프라인","local":"pipeline","sections":[{"title":"파이프라인에서 다른 모델과 토크나이저 사용하기","local":"use-another-model-and-tokenizer-in-the-pipeline","sections":[],"depth":3}],"depth":2},{"title":"AutoClass","local":"autoclass","sections":[{"title":"AutoTokenizer","local":"autotokenizer","sections":[],"depth":3},{"title":"AutoModel","local":"automodel","sections":[],"depth":3},{"title":"모델 저장하기","local":"save-a-model","sections":[],"depth":3}],"depth":2},{"title":"커스텀 모델 구축하기","local":"custom-model-builds","sections":[],"depth":2},{"title":"Trainer - PyTorch에 최적화된 훈련 루프","local":"trainer-a-pytorch-optimized-training-loop","sections":[],"depth":2},{"title":"TensorFlow로 훈련시키기","local":"train-with-tensorflow","sections":[],"depth":2},{"title":"다음 단계는 무엇인가요?","local":"whats-next","sections":[],"depth":2}],"depth":1}';function Zn(j){return xl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Fn extends Nl{constructor(s){super(),zl(this,s,Zn,Jn,Xl,{})}}export{Fn as component};
