import{s as Ka,o as tr,n as xl}from"../chunks/scheduler.56730f09.js";import{S as er,i as lr,g as r,s,u as d,A as ar,h as n,f as e,c as o,j as v,v as y,y as h,k as u,o as c,a,w as J,d as T,t as _,x as U}from"../chunks/index.ba464511.js";import{I as b}from"../chunks/IconCopyLink.89bde88e.js";import{C as j}from"../chunks/CodeBlock.2302fd0d.js";import{F as Oa,M as Zl}from"../chunks/Markdown.6303afae.js";function rr(C){let i,w=`예제 스크립트는 🤗 <a href="https://huggingface.co/docs/datasets/" rel="nofollow">Datasets</a> 라이브러리에서 데이터 세트를 다운로드하고 전처리합니다.
그런 다음 스크립트는 요약 기능을 지원하는 아키텍처에서 <a href="https://huggingface.co/docs/transformers/main_classes/trainer" rel="nofollow">Trainer</a>를 사용하여 데이터 세트를 미세 조정합니다.
다음 예는 <a href="https://huggingface.co/datasets/cnn_dailymail" rel="nofollow">CNN/DailyMail</a> 데이터 세트에서 <a href="https://huggingface.co/t5-small" rel="nofollow">T5-small</a>을 미세 조정합니다.
T5 모델은 훈련 방식에 따라 추가 <code>source_prefix</code> 인수가 필요하며, 이 프롬프트는 요약 작업임을 T5에 알려줍니다.`,p,M,f;return M=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0c3Qtc3VtbWFyaXphdGlvbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdmVyd3JpdGVfb3V0cHV0X2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHJlZGljdF93aXRoX2dlbmVyYXRl",highlighted:`python examples/pytorch/summarization/run_summarization.py \\
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),{c(){i=r("p"),i.innerHTML=w,p=s(),d(M.$$.fragment)},l(m){i=n(m,"P",{"data-svelte-h":!0}),h(i)!=="svelte-h1sv3m"&&(i.innerHTML=w),p=o(m),y(M.$$.fragment,m)},m(m,g){a(m,i,g),a(m,p,g),J(M,m,g),f=!0},p:xl,i(m){f||(T(M.$$.fragment,m),f=!0)},o(m){_(M.$$.fragment,m),f=!1},d(m){m&&(e(i),e(p)),U(M,m)}}}function nr(C){let i,w;return i=new Zl({props:{$$slots:{default:[rr]},$$scope:{ctx:C}}}),{c(){d(i.$$.fragment)},l(p){y(i.$$.fragment,p)},m(p,M){J(i,p,M),w=!0},p(p,M){const f={};M&2&&(f.$$scope={dirty:M,ctx:p}),i.$set(f)},i(p){w||(T(i.$$.fragment,p),w=!0)},o(p){_(i.$$.fragment,p),w=!1},d(p){U(i,p)}}}function ir(C){let i,w=`예제 스크립트는 🤗 <a href="https://huggingface.co/docs/datasets/" rel="nofollow">Datasets</a> 라이브러리에서 데이터 세트를 다운로드하고 전처리합니다.
그런 다음 스크립트는 요약 기능을 지원하는 아키텍처에서 Keras를 사용하여 데이터 세트를 미세 조정합니다.
다음 예는 <a href="https://huggingface.co/datasets/cnn_dailymail" rel="nofollow">CNN/DailyMail</a> 데이터 세트에서 <a href="https://huggingface.co/t5-small" rel="nofollow">T5-small</a>을 미세 조정합니다.
T5 모델은 훈련 방식에 따라 추가 <code>source_prefix</code> 인수가 필요하며, 이 프롬프트는 요약 작업임을 T5에 알려줍니다.`,p,M,f;return M=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZ0ZW5zb3JmbG93JTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9uYW1lJTIwY25uX2RhaWx5bWFpbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9jb25maWclMjAlMjIzLjAuMCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRnRzdC1zdW1tYXJpemF0aW9uJTIwJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlMjA4JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX2V2YWxfYmF0Y2hfc2l6ZSUyMDE2JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1udW1fdHJhaW5fZXBvY2hzJTIwMyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWw=",highlighted:`python examples/tensorflow/summarization/run_summarization.py  \\
    --model_name_or_path t5-small \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --output_dir /tmp/tst-summarization  \\
    --per_device_train_batch_size 8 \\
    --per_device_eval_batch_size 16 \\
    --num_train_epochs 3 \\
    --do_train \\
    --do_eval`,wrap:!1}}),{c(){i=r("p"),i.innerHTML=w,p=s(),d(M.$$.fragment)},l(m){i=n(m,"P",{"data-svelte-h":!0}),h(i)!=="svelte-1dpi2fx"&&(i.innerHTML=w),p=o(m),y(M.$$.fragment,m)},m(m,g){a(m,i,g),a(m,p,g),J(M,m,g),f=!0},p:xl,i(m){f||(T(M.$$.fragment,m),f=!0)},o(m){_(M.$$.fragment,m),f=!1},d(m){m&&(e(i),e(p)),U(M,m)}}}function sr(C){let i,w;return i=new Zl({props:{$$slots:{default:[ir]},$$scope:{ctx:C}}}),{c(){d(i.$$.fragment)},l(p){y(i.$$.fragment,p)},m(p,M){J(i,p,M),w=!0},p(p,M){const f={};M&2&&(f.$$scope={dirty:M,ctx:p}),i.$set(f)},i(p){w||(T(i.$$.fragment,p),w=!0)},o(p){_(i.$$.fragment,p),w=!1},d(p){U(i,p)}}}function or(C){let i,w=`Tensor Processing Units (TPUs)는 성능을 가속화하기 위해 특별히 설계되었습니다.
PyTorch는 <a href="https://www.tensorflow.org/xla" rel="nofollow">XLA</a> 딥러닝 컴파일러와 함께 TPU를 지원합니다(자세한 내용은 <a href="https://github.com/pytorch/xla/blob/master/README.md" rel="nofollow">여기</a> 참조).
TPU를 사용하려면 <code>xla_spawn.py</code> 스크립트를 실행하고 <code>num_cores</code> 인수를 사용하여 사용하려는 TPU 코어 수를 설정합니다.`,p,M,f;return M=new j({props:{code:"cHl0aG9uJTIweGxhX3NwYXduLnB5JTIwLS1udW1fY29yZXMlMjA4JTIwJTVDJTBBJTIwJTIwJTIwJTIwc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0c3Qtc3VtbWFyaXphdGlvbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdmVyd3JpdGVfb3V0cHV0X2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHJlZGljdF93aXRoX2dlbmVyYXRl",highlighted:`python xla_spawn.py --num_cores 8 \\
    summarization/run_summarization.py \\
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),{c(){i=r("p"),i.innerHTML=w,p=s(),d(M.$$.fragment)},l(m){i=n(m,"P",{"data-svelte-h":!0}),h(i)!=="svelte-1uupy1q"&&(i.innerHTML=w),p=o(m),y(M.$$.fragment,m)},m(m,g){a(m,i,g),a(m,p,g),J(M,m,g),f=!0},p:xl,i(m){f||(T(M.$$.fragment,m),f=!0)},o(m){_(M.$$.fragment,m),f=!1},d(m){m&&(e(i),e(p)),U(M,m)}}}function pr(C){let i,w;return i=new Zl({props:{$$slots:{default:[or]},$$scope:{ctx:C}}}),{c(){d(i.$$.fragment)},l(p){y(i.$$.fragment,p)},m(p,M){J(i,p,M),w=!0},p(p,M){const f={};M&2&&(f.$$scope={dirty:M,ctx:p}),i.$set(f)},i(p){w||(T(i.$$.fragment,p),w=!0)},o(p){_(i.$$.fragment,p),w=!1},d(p){U(i,p)}}}function mr(C){let i,w=`Tensor Processing Units (TPUs)는 성능을 가속화하기 위해 특별히 설계되었습니다.
TensorFlow 스크립트는 TPU를 훈련에 사용하기 위해 <a href="https://www.tensorflow.org/guide/distributed_training#tpustrategy" rel="nofollow"><code>TPUStrategy</code></a>를 활용합니다.
TPU를 사용하려면 TPU 리소스의 이름을 <code>tpu</code> 인수에 전달합니다.`,p,M,f;return M=new j({props:{code:"cHl0aG9uJTIwcnVuX3N1bW1hcml6YXRpb24ucHklMjAlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXRwdSUyMG5hbWVfb2ZfdHB1X3Jlc291cmNlJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9uYW1lJTIwY25uX2RhaWx5bWFpbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9jb25maWclMjAlMjIzLjAuMCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRnRzdC1zdW1tYXJpemF0aW9uJTIwJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlMjA4JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX2V2YWxfYmF0Y2hfc2l6ZSUyMDE2JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1udW1fdHJhaW5fZXBvY2hzJTIwMyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWw=",highlighted:`python run_summarization.py  \\
    --tpu name_of_tpu_resource \\
    --model_name_or_path t5-small \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --output_dir /tmp/tst-summarization  \\
    --per_device_train_batch_size 8 \\
    --per_device_eval_batch_size 16 \\
    --num_train_epochs 3 \\
    --do_train \\
    --do_eval`,wrap:!1}}),{c(){i=r("p"),i.innerHTML=w,p=s(),d(M.$$.fragment)},l(m){i=n(m,"P",{"data-svelte-h":!0}),h(i)!=="svelte-14rbp0b"&&(i.innerHTML=w),p=o(m),y(M.$$.fragment,m)},m(m,g){a(m,i,g),a(m,p,g),J(M,m,g),f=!0},p:xl,i(m){f||(T(M.$$.fragment,m),f=!0)},o(m){_(M.$$.fragment,m),f=!1},d(m){m&&(e(i),e(p)),U(M,m)}}}function Mr(C){let i,w;return i=new Zl({props:{$$slots:{default:[mr]},$$scope:{ctx:C}}}),{c(){d(i.$$.fragment)},l(p){y(i.$$.fragment,p)},m(p,M){J(i,p,M),w=!0},p(p,M){const f={};M&2&&(f.$$scope={dirty:M,ctx:p}),i.$set(f)},i(p){w||(T(i.$$.fragment,p),w=!0)},o(p){_(i.$$.fragment,p),w=!1},d(p){U(i,p)}}}function hr(C){let i,w,p,M,f,m,g,P,Nl,Dt,kl="스크립트로 실행하기",Je,q,Hl='🤗 Transformers 노트북과 함께 <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch" rel="nofollow">PyTorch</a>, <a href="https://github.com/huggingface/transformers/tree/main/examples/tensorflow" rel="nofollow">TensorFlow</a>, 또는 <a href="https://github.com/huggingface/transformers/tree/main/examples/flax" rel="nofollow">JAX/Flax</a>를 사용해 특정 태스크에 대한 모델을 훈련하는 방법을 보여주는 예제 스크립트도 있습니다.',Te,D,Ql=`또한 <a href="https://github.com/huggingface/transformers/tree/main/examples/research_projects" rel="nofollow">연구 프로젝트</a> 및 <a href="https://github.com/huggingface/transformers/tree/main/examples/legacy" rel="nofollow">레거시 예제</a>에서 대부분 커뮤니티에서 제공한 스크립트를 찾을 수 있습니다.
이러한 스크립트는 적극적으로 유지 관리되지 않으며 최신 버전의 라이브러리와 호환되지 않을 가능성이 높은 특정 버전의 🤗 Transformers를 필요로 합니다.`,_e,O,Pl=`예제 스크립트가 모든 문제에서 바로 작동하는 것은 아니며, 해결하려는 문제에 맞게 스크립트를 변경해야 할 수도 있습니다.
이를 위해 대부분의 스크립트에는 데이터 전처리 방법이 나와있어 필요에 따라 수정할 수 있습니다.`,Ue,K,ql=`예제 스크립트에 구현하고 싶은 기능이 있으면 pull request를 제출하기 전에 <a href="https://discuss.huggingface.co/" rel="nofollow">포럼</a> 또는 <a href="https://github.com/huggingface/transformers/issues" rel="nofollow">이슈</a>에서 논의해 주세요.
버그 수정은 환영하지만 가독성을 희생하면서까지 더 많은 기능을 추가하는 pull request는 병합(merge)하지 않을 가능성이 높습니다.`,ve,tt,Dl=`이 가이드에서는 <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/summarization" rel="nofollow">PyTorch</a> 및 <a href="https://github.com/huggingface/transformers/tree/main/examples/tensorflow/summarization" rel="nofollow">TensorFlow</a>에서 요약 훈련하는
스크립트 예제를 실행하는 방법을 설명합니다.
특별한 설명이 없는 한 모든 예제는 두 프레임워크 모두에서 작동할 것으로 예상됩니다.`,ge,$,R,oe,et,Ll,Ot,Ol="설정하기",je,lt,Kl="최신 버전의 예제 스크립트를 성공적으로 실행하려면 새 가상 환경에서 <strong>소스로부터 🤗 Transformers를 설치</strong>해야 합니다:",Ce,at,be,rt,ta="이전 버전의 예제 스크립트를 보려면 아래 토글을 클릭하세요:",$e,nt,ea='<summary>이전 버전의 🤗 Transformers 예제</summary> <ul><li><a href="https://github.com/huggingface/transformers/tree/v4.5.1/examples">v4.5.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.4.2/examples">v4.4.2</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.3.3/examples">v4.3.3</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.2.2/examples">v4.2.2</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.1.1/examples">v4.1.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.0.1/examples">v4.0.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.5.1/examples">v3.5.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.4.0/examples">v3.4.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.3.1/examples">v3.3.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.2.0/examples">v3.2.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.1.0/examples">v3.1.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.0.2/examples">v3.0.2</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.11.0/examples">v2.11.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.10.0/examples">v2.10.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.9.1/examples">v2.9.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.8.0/examples">v2.8.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.7.0/examples">v2.7.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.6.0/examples">v2.6.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.5.1/examples">v2.5.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.4.0/examples">v2.4.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.3.0/examples">v2.3.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.2.0/examples">v2.2.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.1.0/examples">v2.1.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.0.0/examples">v2.0.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v1.2.0/examples">v1.2.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v1.1.0/examples">v1.1.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v1.0.0/examples">v1.0.0</a></li></ul>',Xe,it,la="그리고 다음과 같이 복제(clone)해온 🤗 Transformers 버전을 특정 버전(예: v3.5.1)으로 전환하세요:",Ae,st,Ie,ot,aa="올바른 라이브러리 버전을 설정한 후 원하는 예제 폴더로 이동하여 예제별로 라이브러리에 대한 요구 사항(requirements)을 설치합니다:",We,pt,xe,X,V,pe,mt,Rl,Kt,ra="스크립트 실행하기",Ze,G,Ne,A,B,me,Mt,Vl,te,na="혼합 정밀도(mixed precision)로 분산 훈련하기",Le,ht,ia=`<a href="https://huggingface.co/docs/transformers/main_classes/trainer" rel="nofollow">Trainer</a> 클래스는 분산 훈련과 혼합 정밀도(mixed precision)를 지원하므로 스크립트에서도 사용할 수 있습니다.
이 두 가지 기능을 모두 활성화하려면 다음 두 가지를 설정해야 합니다:`,Re,ct,sa="<li><code>fp16</code> 인수를 추가해 혼합 정밀도(mixed precision)를 활성화합니다.</li> <li><code>nproc_per_node</code> 인수를 추가해 사용할 GPU 개수를 설정합니다.</li>",Ve,ut,Ge,ft,oa=`TensorFlow 스크립트는 분산 훈련을 위해 <a href="https://www.tensorflow.org/guide/distributed_training#mirroredstrategy" rel="nofollow"><code>MirroredStrategy</code></a>를 활용하며, 훈련 스크립트에 인수를 추가할 필요가 없습니다.
다중 GPU 환경이라면, TensorFlow 스크립트는 기본적으로 여러 개의 GPU를 사용합니다.`,Be,I,F,Me,wt,Gl,ee,pa="TPU 위에서 스크립트 실행하기",Fe,Y,Ye,W,z,he,dt,Bl,le,ma="🤗 Accelerate로 스크립트 실행하기",ze,yt,Ma=`🤗 <a href="https://huggingface.co/docs/accelerate" rel="nofollow">Accelerate</a>는 PyTorch 훈련 과정에 대한 완전한 가시성을 유지하면서 여러 유형의 설정(CPU 전용, 다중 GPU, TPU)에서 모델을 훈련할 수 있는 통합 방법을 제공하는 PyTorch 전용 라이브러리입니다.
🤗 Accelerate가 설치되어 있는지 확인하세요:`,Ee,E,ae,ha="참고: Accelerate는 빠르게 개발 중이므로 스크립트를 실행하려면 accelerate를 설치해야 합니다.",Fl,Jt,Se,Tt,ca=`<code>run_summarization.py</code> 스크립트 대신 <code>run_summarization_no_trainer.py</code> 스크립트를 사용해야 합니다.
🤗 Accelerate 클래스가 지원되는 스크립트는 폴더에 <code>task_no_trainer.py</code> 파일이 있습니다.
다음 명령을 실행하여 구성 파일을 생성하고 저장합니다:`,ke,_t,He,Ut,ua="설정을 테스트하여 올바르게 구성되었는지 확인합니다:",Qe,vt,Pe,gt,fa="이제 훈련을 시작할 준비가 되었습니다:",qe,jt,De,x,S,ce,Ct,Yl,re,wa="사용자 정의 데이터 세트 사용하기",Oe,bt,da=`요약 스크립트는 사용자 지정 데이터 세트가 CSV 또는 JSON 파일인 경우 지원합니다.
사용자 지정 데이터 세트를 사용하는 경우에는 몇 가지 추가 인수를 지정해야 합니다:`,Ke,$t,ya="<li><code>train_file</code>과 <code>validation_file</code>은 훈련 및 검증 파일의 경로를 지정합니다.</li> <li><code>text_column</code>은 요약할 입력 텍스트입니다.</li> <li><code>summary_column</code>은 출력할 대상 텍스트입니다.</li>",tl,Xt,Ja="사용자 지정 데이터 세트를 사용하는 요약 스크립트는 다음과 같습니다:",el,At,ll,Z,k,ue,It,zl,ne,Ta="스크립트 테스트하기",al,Wt,_a="전체 데이터 세트를 대상으로 훈련을 완료하는데 꽤 오랜 시간이 걸리기 때문에, 작은 데이터 세트에서 모든 것이 예상대로 실행되는지 확인하는 것이 좋습니다.",rl,xt,Ua="다음 인수를 사용하여 데이터 세트를 최대 샘플 수로 잘라냅니다:",nl,Zt,va="<li><code>max_train_samples</code></li> <li><code>max_eval_samples</code></li> <li><code>max_predict_samples</code></li>",il,Nt,sl,Lt,ga=`모든 예제 스크립트가 <code>max_predict_samples</code> 인수를 지원하지는 않습니다.
스크립트가 이 인수를 지원하는지 확실하지 않은 경우 <code>-h</code> 인수를 추가하여 확인하세요:`,ol,Rt,pl,N,H,fe,Vt,El,ie,ja="체크포인트(checkpoint)에서 훈련 이어서 하기",ml,Gt,Ca=`또 다른 유용한 옵션은 이전 체크포인트에서 훈련을 재개하는 것입니다.
이렇게 하면 훈련이 중단되더라도 처음부터 다시 시작하지 않고 중단한 부분부터 다시 시작할 수 있습니다.
체크포인트에서 훈련을 재개하는 방법에는 두 가지가 있습니다.`,Ml,Bt,ba=`첫 번째는 <code>output_dir previous_output_dir</code> 인수를 사용하여 <code>output_dir</code>에 저장된 최신 체크포인트부터 훈련을 재개하는 방법입니다.
이 경우 <code>overwrite_output_dir</code>을 제거해야 합니다:`,hl,Ft,cl,Yt,$a="두 번째는 <code>resume_from_checkpoint path_to_specific_checkpoint</code> 인수를 사용하여 특정 체크포인트 폴더에서 훈련을 재개하는 방법입니다.",ul,zt,fl,L,Q,we,Et,Sl,se,Xa="모델 공유하기",wl,St,Aa=`모든 스크립트는 최종 모델을 <a href="https://huggingface.co/models" rel="nofollow">Model Hub</a>에 업로드할 수 있습니다.
시작하기 전에 Hugging Face에 로그인했는지 확인하세요:`,dl,kt,yl,Ht,Ia=`그런 다음 스크립트에 <code>push_to_hub</code> 인수를 추가합니다.
이 인수는 Hugging Face 사용자 이름과 <code>output_dir</code>에 지정된 폴더 이름으로 저장소를 생성합니다.`,Jl,Qt,Wa=`저장소에 특정 이름을 지정하려면 <code>push_to_hub_model_id</code> 인수를 사용하여 추가합니다.
저장소는 네임스페이스 아래에 자동으로 나열됩니다.
다음 예는 특정 저장소 이름으로 모델을 업로드하는 방법입니다:`,Tl,Pt,_l,de,Ul;return P=new b({}),et=new b({}),at=new j({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRnRyYW5zZm9ybWVycyUwQWNkJTIwdHJhbnNmb3JtZXJzJTBBcGlwJTIwaW5zdGFsbCUyMC4=",highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/transformers
<span class="hljs-built_in">cd</span> transformers
pip install .`,wrap:!1}}),st=new j({props:{code:"Z2l0JTIwY2hlY2tvdXQlMjB0YWdzJTJGdjMuNS4x",highlighted:"git checkout tags/v3.5.1",wrap:!1}}),pt=new j({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1yJTIwcmVxdWlyZW1lbnRzLnR4dA==",highlighted:"pip install -r requirements.txt",wrap:!1}}),mt=new b({}),G=new Oa({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[sr],pytorch:[nr]},$$scope:{ctx:C}}}),Mt=new b({}),ut=new j({props:{code:"cHl0aG9uJTIwLW0lMjB0b3JjaC5kaXN0cmlidXRlZC5sYXVuY2glMjAlNUMlMEElMjAlMjAlMjAlMjAtLW5wcm9jX3Blcl9ub2RlJTIwOCUyMHB5dG9yY2glMkZzdW1tYXJpemF0aW9uJTJGcnVuX3N1bW1hcml6YXRpb24ucHklMjAlNUMlMEElMjAlMjAlMjAlMjAtLWZwMTYlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW1vZGVsX25hbWVfb3JfcGF0aCUyMHQ1LXNtYWxsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kb190cmFpbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fZXZhbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9uYW1lJTIwY25uX2RhaWx5bWFpbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9jb25maWclMjAlMjIzLjAuMCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tc291cmNlX3ByZWZpeCUyMCUyMnN1bW1hcml6ZSUzQSUyMCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRnRzdC1zdW1tYXJpemF0aW9uJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX2V2YWxfYmF0Y2hfc2l6ZSUzRDQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW92ZXJ3cml0ZV9vdXRwdXRfZGlyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wcmVkaWN0X3dpdGhfZ2VuZXJhdGU=",highlighted:`python -m torch.distributed.launch \\
    --nproc_per_node 8 pytorch/summarization/run_summarization.py \\
    --fp16 \\
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),wt=new b({}),Y=new Oa({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Mr],pytorch:[pr]},$$scope:{ctx:C}}}),dt=new b({}),Jt=new j({props:{code:"cGlwJTIwaW5zdGFsbCUyMGdpdCUyQmh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmh1Z2dpbmdmYWNlJTJGYWNjZWxlcmF0ZQ==",highlighted:"pip install git+https://github.com/huggingface/accelerate",wrap:!1}}),_t=new j({props:{code:"YWNjZWxlcmF0ZSUyMGNvbmZpZw==",highlighted:"accelerate config",wrap:!1}}),vt=new j({props:{code:"YWNjZWxlcmF0ZSUyMHRlc3Q=",highlighted:'accelerate <span class="hljs-built_in">test</span>',wrap:!1}}),jt=new j({props:{code:"YWNjZWxlcmF0ZSUyMGxhdW5jaCUyMHJ1bl9zdW1tYXJpemF0aW9uX25vX3RyYWluZXIucHklMjAlNUMlMEElMjAlMjAlMjAlMjAtLW1vZGVsX25hbWVfb3JfcGF0aCUyMHQ1LXNtYWxsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X25hbWUlMjBjbm5fZGFpbHltYWlsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X2NvbmZpZyUyMCUyMjMuMC4wJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1zb3VyY2VfcHJlZml4JTIwJTIyc3VtbWFyaXplJTNBJTIwJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwfiUyRnRtcCUyRnRzdC1zdW1tYXJpemF0aW9u",highlighted:`accelerate launch run_summarization_no_trainer.py \\
    --model_name_or_path t5-small \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir ~/tmp/tst-summarization`,wrap:!1}}),Ct=new b({}),At=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXRyYWluX2ZpbGUlMjBwYXRoX3RvX2Nzdl9vcl9qc29ubGluZXNfZmlsZSUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tdmFsaWRhdGlvbl9maWxlJTIwcGF0aF90b19jc3Zfb3JfanNvbmxpbmVzX2ZpbGUlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXRleHRfY29sdW1uJTIwdGV4dF9jb2x1bW5fbmFtZSUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tc3VtbWFyeV9jb2x1bW4lMjBzdW1tYXJ5X2NvbHVtbl9uYW1lJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1zb3VyY2VfcHJlZml4JTIwJTIyc3VtbWFyaXplJTNBJTIwJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwJTJGdG1wJTJGdHN0LXN1bW1hcml6YXRpb24lMjAlNUMlMEElMjAlMjAlMjAlMjAtLW92ZXJ3cml0ZV9vdXRwdXRfZGlyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX2V2YWxfYmF0Y2hfc2l6ZSUzRDQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXByZWRpY3Rfd2l0aF9nZW5lcmF0ZQ==",highlighted:`python examples/pytorch/summarization/run_summarization.py \\
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --train_file path_to_csv_or_jsonlines_file \\
    --validation_file path_to_csv_or_jsonlines_file \\
    --text_column text_column_name \\
    --summary_column summary_column_name \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --overwrite_output_dir \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --predict_with_generate`,wrap:!1}}),It=new b({}),Nt=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tbWF4X3RyYWluX3NhbXBsZXMlMjA1MCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tbWF4X2V2YWxfc2FtcGxlcyUyMDUwJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tYXhfcHJlZGljdF9zYW1wbGVzJTIwNTAlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX3RyYWluJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kb19ldmFsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X25hbWUlMjBjbm5fZGFpbHltYWlsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X2NvbmZpZyUyMCUyMjMuMC4wJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1zb3VyY2VfcHJlZml4JTIwJTIyc3VtbWFyaXplJTNBJTIwJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwJTJGdG1wJTJGdHN0LXN1bW1hcml6YXRpb24lMjAlNUMlMEElMjAlMjAlMjAlMjAtLXBlcl9kZXZpY2VfdHJhaW5fYmF0Y2hfc2l6ZSUzRDQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXBlcl9kZXZpY2VfZXZhbF9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3ZlcndyaXRlX291dHB1dF9kaXIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXByZWRpY3Rfd2l0aF9nZW5lcmF0ZQ==",highlighted:`python examples/pytorch/summarization/run_summarization.py \\
    --model_name_or_path t5-small \\
    --max_train_samples 50 \\
    --max_eval_samples 50 \\
    --max_predict_samples 50 \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),Rt=new j({props:{code:"ZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwLWg=",highlighted:"examples/pytorch/summarization/run_summarization.py -h",wrap:!1}}),Vt=new b({}),Ft=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0c3Qtc3VtbWFyaXphdGlvbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwcHJldmlvdXNfb3V0cHV0X2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHJlZGljdF93aXRoX2dlbmVyYXRl",highlighted:`python examples/pytorch/summarization/run_summarization.py
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --output_dir previous_output_dir \\
    --predict_with_generate`,wrap:!1}}),zt=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0c3Qtc3VtbWFyaXphdGlvbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdmVyd3JpdGVfb3V0cHV0X2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcmVzdW1lX2Zyb21fY2hlY2twb2ludCUyMHBhdGhfdG9fc3BlY2lmaWNfY2hlY2twb2ludCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHJlZGljdF93aXRoX2dlbmVyYXRl",highlighted:`python examples/pytorch/summarization/run_summarization.py
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --resume_from_checkpoint path_to_specific_checkpoint \\
    --predict_with_generate`,wrap:!1}}),Et=new b({}),kt=new j({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:"huggingface-cli login",wrap:!1}}),Pt=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXB1c2hfdG9faHViJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wdXNoX3RvX2h1Yl9tb2RlbF9pZCUyMGZpbmV0dW5lZC10NS1jbm5fZGFpbHltYWlsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwJTJGdG1wJTJGdHN0LXN1bW1hcml6YXRpb24lMjAlNUMlMEElMjAlMjAlMjAlMjAtLXBlcl9kZXZpY2VfdHJhaW5fYmF0Y2hfc2l6ZSUzRDQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXBlcl9kZXZpY2VfZXZhbF9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3ZlcndyaXRlX291dHB1dF9kaXIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXByZWRpY3Rfd2l0aF9nZW5lcmF0ZQ==",highlighted:`python examples/pytorch/summarization/run_summarization.py
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --push_to_hub \\
    --push_to_hub_model_id finetuned-t5-cnn_dailymail \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),{c(){i=r("meta"),w=s(),p=r("p"),M=s(),f=r("h1"),m=r("a"),g=r("span"),d(P.$$.fragment),Nl=s(),Dt=r("span"),Dt.textContent=kl,Je=s(),q=r("p"),q.innerHTML=Hl,Te=s(),D=r("p"),D.innerHTML=Ql,_e=s(),O=r("p"),O.textContent=Pl,Ue=s(),K=r("p"),K.innerHTML=ql,ve=s(),tt=r("p"),tt.innerHTML=Dl,ge=s(),$=r("h2"),R=r("a"),oe=r("span"),d(et.$$.fragment),Ll=s(),Ot=r("span"),Ot.textContent=Ol,je=s(),lt=r("p"),lt.innerHTML=Kl,Ce=s(),d(at.$$.fragment),be=s(),rt=r("p"),rt.textContent=ta,$e=s(),nt=r("details"),nt.innerHTML=ea,Xe=s(),it=r("p"),it.textContent=la,Ae=s(),d(st.$$.fragment),Ie=s(),ot=r("p"),ot.textContent=aa,We=s(),d(pt.$$.fragment),xe=s(),X=r("h2"),V=r("a"),pe=r("span"),d(mt.$$.fragment),Rl=s(),Kt=r("span"),Kt.textContent=ra,Ze=s(),d(G.$$.fragment),Ne=s(),A=r("h2"),B=r("a"),me=r("span"),d(Mt.$$.fragment),Vl=s(),te=r("span"),te.textContent=na,Le=s(),ht=r("p"),ht.innerHTML=ia,Re=s(),ct=r("ul"),ct.innerHTML=sa,Ve=s(),d(ut.$$.fragment),Ge=s(),ft=r("p"),ft.innerHTML=oa,Be=s(),I=r("h2"),F=r("a"),Me=r("span"),d(wt.$$.fragment),Gl=s(),ee=r("span"),ee.textContent=pa,Fe=s(),d(Y.$$.fragment),Ye=s(),W=r("h2"),z=r("a"),he=r("span"),d(dt.$$.fragment),Bl=s(),le=r("span"),le.textContent=ma,ze=s(),yt=r("p"),yt.innerHTML=Ma,Ee=s(),E=r("blockquote"),ae=r("p"),ae.textContent=ha,Fl=s(),d(Jt.$$.fragment),Se=s(),Tt=r("p"),Tt.innerHTML=ca,ke=s(),d(_t.$$.fragment),He=s(),Ut=r("p"),Ut.textContent=ua,Qe=s(),d(vt.$$.fragment),Pe=s(),gt=r("p"),gt.textContent=fa,qe=s(),d(jt.$$.fragment),De=s(),x=r("h2"),S=r("a"),ce=r("span"),d(Ct.$$.fragment),Yl=s(),re=r("span"),re.textContent=wa,Oe=s(),bt=r("p"),bt.textContent=da,Ke=s(),$t=r("ul"),$t.innerHTML=ya,tl=s(),Xt=r("p"),Xt.textContent=Ja,el=s(),d(At.$$.fragment),ll=s(),Z=r("h2"),k=r("a"),ue=r("span"),d(It.$$.fragment),zl=s(),ne=r("span"),ne.textContent=Ta,al=s(),Wt=r("p"),Wt.textContent=_a,rl=s(),xt=r("p"),xt.textContent=Ua,nl=s(),Zt=r("ul"),Zt.innerHTML=va,il=s(),d(Nt.$$.fragment),sl=s(),Lt=r("p"),Lt.innerHTML=ga,ol=s(),d(Rt.$$.fragment),pl=s(),N=r("h2"),H=r("a"),fe=r("span"),d(Vt.$$.fragment),El=s(),ie=r("span"),ie.textContent=ja,ml=s(),Gt=r("p"),Gt.textContent=Ca,Ml=s(),Bt=r("p"),Bt.innerHTML=ba,hl=s(),d(Ft.$$.fragment),cl=s(),Yt=r("p"),Yt.innerHTML=$a,ul=s(),d(zt.$$.fragment),fl=s(),L=r("h2"),Q=r("a"),we=r("span"),d(Et.$$.fragment),Sl=s(),se=r("span"),se.textContent=Xa,wl=s(),St=r("p"),St.innerHTML=Aa,dl=s(),d(kt.$$.fragment),yl=s(),Ht=r("p"),Ht.innerHTML=Ia,Jl=s(),Qt=r("p"),Qt.innerHTML=Wa,Tl=s(),d(Pt.$$.fragment),_l=s(),de=r("p"),this.h()},l(t){const l=ar("svelte-1phssyn",document.head);i=n(l,"META",{name:!0,content:!0}),l.forEach(e),w=o(t),p=n(t,"P",{}),v(p).forEach(e),M=o(t),f=n(t,"H1",{class:!0});var qt=v(f);m=n(qt,"A",{id:!0,class:!0,href:!0});var ye=v(m);g=n(ye,"SPAN",{});var xa=v(g);y(P.$$.fragment,xa),xa.forEach(e),ye.forEach(e),Nl=o(qt),Dt=n(qt,"SPAN",{"data-svelte-h":!0}),h(Dt)!=="svelte-1otx8xv"&&(Dt.textContent=kl),qt.forEach(e),Je=o(t),q=n(t,"P",{"data-svelte-h":!0}),h(q)!=="svelte-cb9dpp"&&(q.innerHTML=Hl),Te=o(t),D=n(t,"P",{"data-svelte-h":!0}),h(D)!=="svelte-xygtck"&&(D.innerHTML=Ql),_e=o(t),O=n(t,"P",{"data-svelte-h":!0}),h(O)!=="svelte-19ose0k"&&(O.textContent=Pl),Ue=o(t),K=n(t,"P",{"data-svelte-h":!0}),h(K)!=="svelte-mixhy4"&&(K.innerHTML=ql),ve=o(t),tt=n(t,"P",{"data-svelte-h":!0}),h(tt)!=="svelte-1980krf"&&(tt.innerHTML=Dl),ge=o(t),$=n(t,"H2",{class:!0});var vl=v($);R=n(vl,"A",{id:!0,class:!0,href:!0});var Za=v(R);oe=n(Za,"SPAN",{});var Na=v(oe);y(et.$$.fragment,Na),Na.forEach(e),Za.forEach(e),Ll=o(vl),Ot=n(vl,"SPAN",{"data-svelte-h":!0}),h(Ot)!=="svelte-fbbp6k"&&(Ot.textContent=Ol),vl.forEach(e),je=o(t),lt=n(t,"P",{"data-svelte-h":!0}),h(lt)!=="svelte-1ducwvi"&&(lt.innerHTML=Kl),Ce=o(t),y(at.$$.fragment,t),be=o(t),rt=n(t,"P",{"data-svelte-h":!0}),h(rt)!=="svelte-i8u7rm"&&(rt.textContent=ta),$e=o(t),nt=n(t,"DETAILS",{"data-svelte-h":!0}),h(nt)!=="svelte-1pp84xd"&&(nt.innerHTML=ea),Xe=o(t),it=n(t,"P",{"data-svelte-h":!0}),h(it)!=="svelte-18cv2w9"&&(it.textContent=la),Ae=o(t),y(st.$$.fragment,t),Ie=o(t),ot=n(t,"P",{"data-svelte-h":!0}),h(ot)!=="svelte-1avflzf"&&(ot.textContent=aa),We=o(t),y(pt.$$.fragment,t),xe=o(t),X=n(t,"H2",{class:!0});var gl=v(X);V=n(gl,"A",{id:!0,class:!0,href:!0});var La=v(V);pe=n(La,"SPAN",{});var Ra=v(pe);y(mt.$$.fragment,Ra),Ra.forEach(e),La.forEach(e),Rl=o(gl),Kt=n(gl,"SPAN",{"data-svelte-h":!0}),h(Kt)!=="svelte-13sm38j"&&(Kt.textContent=ra),gl.forEach(e),Ze=o(t),y(G.$$.fragment,t),Ne=o(t),A=n(t,"H2",{class:!0});var jl=v(A);B=n(jl,"A",{id:!0,class:!0,href:!0});var Va=v(B);me=n(Va,"SPAN",{});var Ga=v(me);y(Mt.$$.fragment,Ga),Ga.forEach(e),Va.forEach(e),Vl=o(jl),te=n(jl,"SPAN",{"data-svelte-h":!0}),h(te)!=="svelte-c6kvc3"&&(te.textContent=na),jl.forEach(e),Le=o(t),ht=n(t,"P",{"data-svelte-h":!0}),h(ht)!=="svelte-1vvgf5c"&&(ht.innerHTML=ia),Re=o(t),ct=n(t,"UL",{"data-svelte-h":!0}),h(ct)!=="svelte-1wysnl1"&&(ct.innerHTML=sa),Ve=o(t),y(ut.$$.fragment,t),Ge=o(t),ft=n(t,"P",{"data-svelte-h":!0}),h(ft)!=="svelte-ps369g"&&(ft.innerHTML=oa),Be=o(t),I=n(t,"H2",{class:!0});var Cl=v(I);F=n(Cl,"A",{id:!0,class:!0,href:!0});var Ba=v(F);Me=n(Ba,"SPAN",{});var Fa=v(Me);y(wt.$$.fragment,Fa),Fa.forEach(e),Ba.forEach(e),Gl=o(Cl),ee=n(Cl,"SPAN",{"data-svelte-h":!0}),h(ee)!=="svelte-pih8u8"&&(ee.textContent=pa),Cl.forEach(e),Fe=o(t),y(Y.$$.fragment,t),Ye=o(t),W=n(t,"H2",{class:!0});var bl=v(W);z=n(bl,"A",{id:!0,class:!0,href:!0});var Ya=v(z);he=n(Ya,"SPAN",{});var za=v(he);y(dt.$$.fragment,za),za.forEach(e),Ya.forEach(e),Bl=o(bl),le=n(bl,"SPAN",{"data-svelte-h":!0}),h(le)!=="svelte-6up669"&&(le.textContent=ma),bl.forEach(e),ze=o(t),yt=n(t,"P",{"data-svelte-h":!0}),h(yt)!=="svelte-1mmj90o"&&(yt.innerHTML=Ma),Ee=o(t),E=n(t,"BLOCKQUOTE",{});var $l=v(E);ae=n($l,"P",{"data-svelte-h":!0}),h(ae)!=="svelte-18nhjp2"&&(ae.textContent=ha),Fl=o($l),y(Jt.$$.fragment,$l),$l.forEach(e),Se=o(t),Tt=n(t,"P",{"data-svelte-h":!0}),h(Tt)!=="svelte-dnc8lj"&&(Tt.innerHTML=ca),ke=o(t),y(_t.$$.fragment,t),He=o(t),Ut=n(t,"P",{"data-svelte-h":!0}),h(Ut)!=="svelte-1wr3wvk"&&(Ut.textContent=ua),Qe=o(t),y(vt.$$.fragment,t),Pe=o(t),gt=n(t,"P",{"data-svelte-h":!0}),h(gt)!=="svelte-dp0etk"&&(gt.textContent=fa),qe=o(t),y(jt.$$.fragment,t),De=o(t),x=n(t,"H2",{class:!0});var Xl=v(x);S=n(Xl,"A",{id:!0,class:!0,href:!0});var Ea=v(S);ce=n(Ea,"SPAN",{});var Sa=v(ce);y(Ct.$$.fragment,Sa),Sa.forEach(e),Ea.forEach(e),Yl=o(Xl),re=n(Xl,"SPAN",{"data-svelte-h":!0}),h(re)!=="svelte-1cm6t0a"&&(re.textContent=wa),Xl.forEach(e),Oe=o(t),bt=n(t,"P",{"data-svelte-h":!0}),h(bt)!=="svelte-8q6g2t"&&(bt.textContent=da),Ke=o(t),$t=n(t,"UL",{"data-svelte-h":!0}),h($t)!=="svelte-1o9guy1"&&($t.innerHTML=ya),tl=o(t),Xt=n(t,"P",{"data-svelte-h":!0}),h(Xt)!=="svelte-1gh72vz"&&(Xt.textContent=Ja),el=o(t),y(At.$$.fragment,t),ll=o(t),Z=n(t,"H2",{class:!0});var Al=v(Z);k=n(Al,"A",{id:!0,class:!0,href:!0});var ka=v(k);ue=n(ka,"SPAN",{});var Ha=v(ue);y(It.$$.fragment,Ha),Ha.forEach(e),ka.forEach(e),zl=o(Al),ne=n(Al,"SPAN",{"data-svelte-h":!0}),h(ne)!=="svelte-qul7p6"&&(ne.textContent=Ta),Al.forEach(e),al=o(t),Wt=n(t,"P",{"data-svelte-h":!0}),h(Wt)!=="svelte-e7bxnz"&&(Wt.textContent=_a),rl=o(t),xt=n(t,"P",{"data-svelte-h":!0}),h(xt)!=="svelte-4bvtew"&&(xt.textContent=Ua),nl=o(t),Zt=n(t,"UL",{"data-svelte-h":!0}),h(Zt)!=="svelte-14g5f8g"&&(Zt.innerHTML=va),il=o(t),y(Nt.$$.fragment,t),sl=o(t),Lt=n(t,"P",{"data-svelte-h":!0}),h(Lt)!=="svelte-11kw235"&&(Lt.innerHTML=ga),ol=o(t),y(Rt.$$.fragment,t),pl=o(t),N=n(t,"H2",{class:!0});var Il=v(N);H=n(Il,"A",{id:!0,class:!0,href:!0});var Qa=v(H);fe=n(Qa,"SPAN",{});var Pa=v(fe);y(Vt.$$.fragment,Pa),Pa.forEach(e),Qa.forEach(e),El=o(Il),ie=n(Il,"SPAN",{"data-svelte-h":!0}),h(ie)!=="svelte-1p6suaa"&&(ie.textContent=ja),Il.forEach(e),ml=o(t),Gt=n(t,"P",{"data-svelte-h":!0}),h(Gt)!=="svelte-13nxa0f"&&(Gt.textContent=Ca),Ml=o(t),Bt=n(t,"P",{"data-svelte-h":!0}),h(Bt)!=="svelte-1w6ffz1"&&(Bt.innerHTML=ba),hl=o(t),y(Ft.$$.fragment,t),cl=o(t),Yt=n(t,"P",{"data-svelte-h":!0}),h(Yt)!=="svelte-y9guuv"&&(Yt.innerHTML=$a),ul=o(t),y(zt.$$.fragment,t),fl=o(t),L=n(t,"H2",{class:!0});var Wl=v(L);Q=n(Wl,"A",{id:!0,class:!0,href:!0});var qa=v(Q);we=n(qa,"SPAN",{});var Da=v(we);y(Et.$$.fragment,Da),Da.forEach(e),qa.forEach(e),Sl=o(Wl),se=n(Wl,"SPAN",{"data-svelte-h":!0}),h(se)!=="svelte-1kgl7du"&&(se.textContent=Xa),Wl.forEach(e),wl=o(t),St=n(t,"P",{"data-svelte-h":!0}),h(St)!=="svelte-4xiptz"&&(St.innerHTML=Aa),dl=o(t),y(kt.$$.fragment,t),yl=o(t),Ht=n(t,"P",{"data-svelte-h":!0}),h(Ht)!=="svelte-1cbnpsr"&&(Ht.innerHTML=Ia),Jl=o(t),Qt=n(t,"P",{"data-svelte-h":!0}),h(Qt)!=="svelte-gowp8l"&&(Qt.innerHTML=Wa),Tl=o(t),y(Pt.$$.fragment,t),_l=o(t),de=n(t,"P",{}),v(de).forEach(e),this.h()},h(){u(i,"name","hf:doc:metadata"),u(i,"content",JSON.stringify(cr)),u(m,"id","train-with-a-script"),u(m,"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"),u(m,"href","#train-with-a-script"),u(f,"class","relative group"),u(R,"id","setup"),u(R,"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"),u(R,"href","#setup"),u($,"class","relative group"),u(V,"id","run-a-script"),u(V,"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"),u(V,"href","#run-a-script"),u(X,"class","relative group"),u(B,"id","distributed-training-and-mixed-precision"),u(B,"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"),u(B,"href","#distributed-training-and-mixed-precision"),u(A,"class","relative group"),u(F,"id","run-a-script-on-a-tpu"),u(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"),u(F,"href","#run-a-script-on-a-tpu"),u(I,"class","relative group"),u(z,"id","run-a-script-with-accelerate"),u(z,"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"),u(z,"href","#run-a-script-with-accelerate"),u(W,"class","relative group"),u(S,"id","use-a-custom-dataset"),u(S,"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"),u(S,"href","#use-a-custom-dataset"),u(x,"class","relative group"),u(k,"id","test-a-script"),u(k,"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"),u(k,"href","#test-a-script"),u(Z,"class","relative group"),u(H,"id","resume-training-from-checkpoint"),u(H,"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"),u(H,"href","#resume-training-from-checkpoint"),u(N,"class","relative group"),u(Q,"id","share-your-model"),u(Q,"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"),u(Q,"href","#share-your-model"),u(L,"class","relative group")},m(t,l){c(document.head,i),a(t,w,l),a(t,p,l),a(t,M,l),a(t,f,l),c(f,m),c(m,g),J(P,g,null),c(f,Nl),c(f,Dt),a(t,Je,l),a(t,q,l),a(t,Te,l),a(t,D,l),a(t,_e,l),a(t,O,l),a(t,Ue,l),a(t,K,l),a(t,ve,l),a(t,tt,l),a(t,ge,l),a(t,$,l),c($,R),c(R,oe),J(et,oe,null),c($,Ll),c($,Ot),a(t,je,l),a(t,lt,l),a(t,Ce,l),J(at,t,l),a(t,be,l),a(t,rt,l),a(t,$e,l),a(t,nt,l),a(t,Xe,l),a(t,it,l),a(t,Ae,l),J(st,t,l),a(t,Ie,l),a(t,ot,l),a(t,We,l),J(pt,t,l),a(t,xe,l),a(t,X,l),c(X,V),c(V,pe),J(mt,pe,null),c(X,Rl),c(X,Kt),a(t,Ze,l),J(G,t,l),a(t,Ne,l),a(t,A,l),c(A,B),c(B,me),J(Mt,me,null),c(A,Vl),c(A,te),a(t,Le,l),a(t,ht,l),a(t,Re,l),a(t,ct,l),a(t,Ve,l),J(ut,t,l),a(t,Ge,l),a(t,ft,l),a(t,Be,l),a(t,I,l),c(I,F),c(F,Me),J(wt,Me,null),c(I,Gl),c(I,ee),a(t,Fe,l),J(Y,t,l),a(t,Ye,l),a(t,W,l),c(W,z),c(z,he),J(dt,he,null),c(W,Bl),c(W,le),a(t,ze,l),a(t,yt,l),a(t,Ee,l),a(t,E,l),c(E,ae),c(E,Fl),J(Jt,E,null),a(t,Se,l),a(t,Tt,l),a(t,ke,l),J(_t,t,l),a(t,He,l),a(t,Ut,l),a(t,Qe,l),J(vt,t,l),a(t,Pe,l),a(t,gt,l),a(t,qe,l),J(jt,t,l),a(t,De,l),a(t,x,l),c(x,S),c(S,ce),J(Ct,ce,null),c(x,Yl),c(x,re),a(t,Oe,l),a(t,bt,l),a(t,Ke,l),a(t,$t,l),a(t,tl,l),a(t,Xt,l),a(t,el,l),J(At,t,l),a(t,ll,l),a(t,Z,l),c(Z,k),c(k,ue),J(It,ue,null),c(Z,zl),c(Z,ne),a(t,al,l),a(t,Wt,l),a(t,rl,l),a(t,xt,l),a(t,nl,l),a(t,Zt,l),a(t,il,l),J(Nt,t,l),a(t,sl,l),a(t,Lt,l),a(t,ol,l),J(Rt,t,l),a(t,pl,l),a(t,N,l),c(N,H),c(H,fe),J(Vt,fe,null),c(N,El),c(N,ie),a(t,ml,l),a(t,Gt,l),a(t,Ml,l),a(t,Bt,l),a(t,hl,l),J(Ft,t,l),a(t,cl,l),a(t,Yt,l),a(t,ul,l),J(zt,t,l),a(t,fl,l),a(t,L,l),c(L,Q),c(Q,we),J(Et,we,null),c(L,Sl),c(L,se),a(t,wl,l),a(t,St,l),a(t,dl,l),J(kt,t,l),a(t,yl,l),a(t,Ht,l),a(t,Jl,l),a(t,Qt,l),a(t,Tl,l),J(Pt,t,l),a(t,_l,l),a(t,de,l),Ul=!0},p(t,[l]){const qt={};l&2&&(qt.$$scope={dirty:l,ctx:t}),G.$set(qt);const ye={};l&2&&(ye.$$scope={dirty:l,ctx:t}),Y.$set(ye)},i(t){Ul||(T(P.$$.fragment,t),T(et.$$.fragment,t),T(at.$$.fragment,t),T(st.$$.fragment,t),T(pt.$$.fragment,t),T(mt.$$.fragment,t),T(G.$$.fragment,t),T(Mt.$$.fragment,t),T(ut.$$.fragment,t),T(wt.$$.fragment,t),T(Y.$$.fragment,t),T(dt.$$.fragment,t),T(Jt.$$.fragment,t),T(_t.$$.fragment,t),T(vt.$$.fragment,t),T(jt.$$.fragment,t),T(Ct.$$.fragment,t),T(At.$$.fragment,t),T(It.$$.fragment,t),T(Nt.$$.fragment,t),T(Rt.$$.fragment,t),T(Vt.$$.fragment,t),T(Ft.$$.fragment,t),T(zt.$$.fragment,t),T(Et.$$.fragment,t),T(kt.$$.fragment,t),T(Pt.$$.fragment,t),Ul=!0)},o(t){_(P.$$.fragment,t),_(et.$$.fragment,t),_(at.$$.fragment,t),_(st.$$.fragment,t),_(pt.$$.fragment,t),_(mt.$$.fragment,t),_(G.$$.fragment,t),_(Mt.$$.fragment,t),_(ut.$$.fragment,t),_(wt.$$.fragment,t),_(Y.$$.fragment,t),_(dt.$$.fragment,t),_(Jt.$$.fragment,t),_(_t.$$.fragment,t),_(vt.$$.fragment,t),_(jt.$$.fragment,t),_(Ct.$$.fragment,t),_(At.$$.fragment,t),_(It.$$.fragment,t),_(Nt.$$.fragment,t),_(Rt.$$.fragment,t),_(Vt.$$.fragment,t),_(Ft.$$.fragment,t),_(zt.$$.fragment,t),_(Et.$$.fragment,t),_(kt.$$.fragment,t),_(Pt.$$.fragment,t),Ul=!1},d(t){t&&(e(w),e(p),e(M),e(f),e(Je),e(q),e(Te),e(D),e(_e),e(O),e(Ue),e(K),e(ve),e(tt),e(ge),e($),e(je),e(lt),e(Ce),e(be),e(rt),e($e),e(nt),e(Xe),e(it),e(Ae),e(Ie),e(ot),e(We),e(xe),e(X),e(Ze),e(Ne),e(A),e(Le),e(ht),e(Re),e(ct),e(Ve),e(Ge),e(ft),e(Be),e(I),e(Fe),e(Ye),e(W),e(ze),e(yt),e(Ee),e(E),e(Se),e(Tt),e(ke),e(He),e(Ut),e(Qe),e(Pe),e(gt),e(qe),e(De),e(x),e(Oe),e(bt),e(Ke),e($t),e(tl),e(Xt),e(el),e(ll),e(Z),e(al),e(Wt),e(rl),e(xt),e(nl),e(Zt),e(il),e(sl),e(Lt),e(ol),e(pl),e(N),e(ml),e(Gt),e(Ml),e(Bt),e(hl),e(cl),e(Yt),e(ul),e(fl),e(L),e(wl),e(St),e(dl),e(yl),e(Ht),e(Jl),e(Qt),e(Tl),e(_l),e(de)),e(i),U(P),U(et),U(at,t),U(st,t),U(pt,t),U(mt),U(G,t),U(Mt),U(ut,t),U(wt),U(Y,t),U(dt),U(Jt),U(_t,t),U(vt,t),U(jt,t),U(Ct),U(At,t),U(It),U(Nt,t),U(Rt,t),U(Vt),U(Ft,t),U(zt,t),U(Et),U(kt,t),U(Pt,t)}}}const cr={local:"train-with-a-script",sections:[{local:"setup",title:"설정하기"},{local:"run-a-script",title:"스크립트 실행하기"},{local:"distributed-training-and-mixed-precision",title:"혼합 정밀도(mixed precision)로 분산 훈련하기"},{local:"run-a-script-on-a-tpu",title:"TPU 위에서 스크립트 실행하기"},{local:"run-a-script-with-accelerate",title:"🤗 Accelerate로 스크립트 실행하기"},{local:"use-a-custom-dataset",title:"사용자 정의 데이터 세트 사용하기"},{local:"test-a-script",title:"스크립트 테스트하기"},{local:"resume-training-from-checkpoint",title:"체크포인트(checkpoint)에서 훈련 이어서 하기"},{local:"share-your-model",title:"모델 공유하기"}],title:"스크립트로 실행하기"};function ur(C){return tr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Tr extends er{constructor(i){super(),lr(this,i,ur,hr,Ka,{})}}export{Tr as component};
