Buckets:
| <meta charset="utf-8" /><meta name="hf:doc:metadata" content="{"title":"Transformers","local":"transformers","sections":[{"title":"기능","local":"features","sections":[],"depth":2},{"title":"디자인","local":"design","sections":[],"depth":2},{"title":"학습","local":"learn","sections":[],"depth":2}],"depth":1}"/> | |
| <link href="/docs/transformers/main/en/_app/immutable/entry/start.CdKvyuqB.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/chunks/bJxZLOo7.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/chunks/CBySwR1V.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/entry/app.Clj_WMPn.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/chunks/Cdb1BouH.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/chunks/dUGfULTE.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/chunks/DOLBYqcr.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/chunks/DsnmJJEf.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/nodes/0.D4nl1Swj.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/chunks/Conj1S5Z.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/nodes/70.2T1go3JJ.js" rel="modulepreload"> | |
| <link href="/docs/transformers/main/en/_app/immutable/chunks/DoQ7MZQh.js" rel="modulepreload"> | |
| <!--1ldsu9f--><meta name="hf:doc:metadata" content="{"title":"Transformers","local":"transformers","sections":[{"title":"Features","local":"features","sections":[],"depth":2},{"title":"Design","local":"design","sections":[],"depth":2},{"title":"Learn","local":"learn","sections":[],"depth":2}],"depth":1}"/><!----> | |
| <link href="/docs/transformers/main/en/_app/immutable/assets/0.tn0RQdqM.css" rel="modulepreload"> <!--[--><!--[0--><!--[--><!--[0--><!--[--><p></p> <div class="items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex" style="float: inline-end; margin-inline-start: 10px; display: inline-flex; position: relative; z-index: 10;"><div dir="ltr" class="inline-flex rounded-md max-sm:rounded-sm"><button class="inline-flex items-center gap-1 h-7 max-sm:h-7 px-2 max-sm:px-1.5 text-sm font-medium text-gray-800 border border-r-0 rounded-l-md max-sm:rounded-l-sm border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800" aria-live="polite"><span class="inline-flex items-center justify-center rounded-md p-0.5 max-sm:p-0 hover:text-gray-800 dark:hover:text-gray-200"><svg class="sm:size-3.5 size-3" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----></span> <span dir="auto">Copy page</span></button> <button class="inline-flex items-center justify-center w-6 max-sm:w-5 h-7 max-sm:h-7 disabled:pointer-events-none text-sm text-gray-500 hover:text-gray-700 dark:hover:text-white rounded-r-md max-sm:rounded-r-sm border border-l transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800" aria-haspopup="menu" aria-expanded="false" aria-label="Open copy menu"><svg class="transition-transform text-gray-400 overflow-visible sm:size-3.5 size-3 rotate-0" width="1em" height="1em" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="currentColor"></path></svg><!----></button></div> <!--[-1--><!--]--></div><!----> <!--[0--><h1 class="relative group"><a id="transformers" 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" href="#transformers"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->Transformers<!----></span></h1><!--]--><!----> <h3 align="center"><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/transformers_as_a_model_definition.png"/></h3> <p>Transformers는 텍스트, 컴퓨터 비전, 오디오, 비디오 및 멀티모달 모델에 대한 최첨단 기계 학습 모델의 모델 정의 프레임워크로, 추론과 학습 모두에 사용됩니다.</p> <p>모델 정의를 중앙화하여 생태계 전반에서 이 정의에 대한 합의가 이루어지도록 합니다. <code>transformers</code>는 프레임워크 간의 핵심 축입니다. 모델 정의가 지원되는 경우, <code>transformers</code>의 모델 정의를 활용하는 대부분의 학습 프레임워크(Axolotl, Unsloth, DeepSpeed, FSDP, PyTorch-Lightning, …), 추론 엔진(vLLM, SGLang, TGI, …), 인접 모델링 라이브러리(llama.cpp, mlx, …)와 호환됩니다.</p> <p>최신 최첨단 모델의 개발을 지원하고, 모델 정의를 단순하고 사용자 정의 가능하며 효율적으로 만들어 그 활용을 대중화하는 것을 목표로 합니다.</p> <p><a href="https://huggingface.com/models" rel="nofollow">Hugging Face Hub</a>에는 사용할 수 있는 Transformers <a href="https://huggingface.co/models?library=transformers&sort=trending" rel="nofollow">모델 체크포인트</a>가 100만 개 이상 있습니다.</p> <p>오늘 <a href="https://huggingface.com/" rel="nofollow">Hub</a>를 탐색하여 모델을 찾고 Transformers를 사용해 바로 시작해 보세요.</p> <p>Transformers에서 최신 텍스트, 비전, 오디오 및 멀티모달 모델 아키텍처를 발견하려면 <a href="./models_timeline">모델 타임라인</a>을 탐색해 보세요.</p> <!--[1--><h2 class="relative group"><a id="features" 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" href="#features"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->기능<!----></span></h2><!--]--><!----> <p>Transformers는 최첨단 사전 학습 모델을 활용한 추론 또는 학습에 필요한 모든 것을 제공합니다. 주요 기능 중 일부는 다음과 같습니다:</p> <ul><li><a href="./pipeline_tutorial">Pipeline</a>: 텍스트 생성, 이미지 분할, 자동 음성 인식, 문서 질의응답 등 다양한 기계 학습 작업을 위한 단순하고 최적화된 추론 클래스.</li> <li><a href="./trainer">Trainer</a>: PyTorch 모델의 학습 및 분산 학습을 위해 혼합 정밀도, torch.compile, FlashAttention 등의 기능을 지원하는 포괄적인 트레이너입니다.</li> <li><a href="./llm_tutorial">generate</a>: 스트리밍 및 다양한 디코딩 전략을 지원하는 대규모 언어 모델(LLM) 및 비전 언어 모델(VLM)을 활용한 빠른 텍스트 생성.</li></ul> <!--[1--><h2 class="relative group"><a id="design" 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" href="#design"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->디자인<!----></span></h2><!--]--><!----> <blockquote class="tip"><p>Transformers의 설계 원칙에 대해 자세히 알아보려면 <a href="./philosophy">Philosophy</a>를 읽어보세요.</p></blockquote> <p>Transformers는 개발자 및 머신러닝 엔지니어와 연구자를 위해 설계되었습니다. 주요 설계 원칙은 다음과 같습니다:</p> <ol><li>빠르고 사용하기 쉽습니다: 모든 모델은 세 가지 주요 클래스(설정, 모델, 전처리자)만으로 구현되어 있으며 <a href="/docs/transformers/main/ko/main_classes/pipelines#transformers.Pipeline">Pipeline</a> 또는 <a href="/docs/transformers/main/ko/main_classes/trainer#transformers.Trainer">Trainer</a>를 통해 추론이나 학습에 빠르게 사용할 수 있습니다.</li> <li>Pretrained models: 완전히 새로운 모델을 학습시키는 대신 사전 학습된 모델을 사용하면 탄소 발자국, 계산 비용 및 시간을 줄일 수 있습니다. 각 사전 학습된 모델은 원래 모델에 가깝게 재현되며 최첨단 성능을 제공합니다.</li></ol> <div class="flex justify-center"><a target="_blank" href="https://huggingface.co/support"><img alt="HuggingFace Expert Acceleration Program" src="https://hf.co/datasets/huggingface/documentation-images/resolve/81d7d9201fd4ceb537fc4cebc22c29c37a2ed216/transformers/transformers-index.png" style="width: 100%; max-width: 600px; border: 1px solid #eee; border-radius: 4px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);"/></a></div> <!--[1--><h2 class="relative group"><a id="learn" 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" href="#learn"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->학습<!----></span></h2><!--]--><!----> <p>Transformers에 처음 접하시거나 transformer 모델에 대해 더 알고 싶으시다면 <a href="https://huggingface.co/learn/llm-course/chapter1/1?fw=pt" rel="nofollow">LLM course</a>로 시작하는 것을 권장합니다. 이 종합적인 과정은 transformer 모델의 작동 원리라는 기본 개념부터 다양한 작업에 걸친 실용적인 적용까지 모든 내용을 다룹니다. 고품질 데이터셋 큐레이션부터 대규모 언어 모델의 fine-tuning 및 추론 기능 구현에 이르기까지 전체 워크플로우를 학습하게 됩니다. 학습하면서 transformer 모델에 대한 탄탄한 기초 지식을 쌓을 수 있도록 이론과 실습 연습이 모두 포함되어 있습니다.</p> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/transformers/blob/main/docs/source/en/index.md" target="_blank"><svg class="mr-1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M31,16l-7,7l-1.41-1.41L28.17,16l-5.58-5.59L24,9l7,7z"></path><path d="M1,16l7-7l1.41,1.41L3.83,16l5.58,5.59L8,23l-7-7z"></path><path d="M12.419,25.484L17.639,6.552l1.932,0.518L14.351,26.002z"></path></svg><!----> <span><span class="underline">Update</span> on GitHub</span></a><!----> <p></p><!--]--><!----><!--]--><!--]--><!--]--> <!--[-1--><!--]--><!--]--> | |
| <script> | |
| { | |
| __sveltekit_1cn8eyd = { | |
| base: "/docs/transformers/main/en", | |
| assets: "/docs/transformers/main/en" | |
| }; | |
| const element = document.currentScript.parentElement; | |
| Promise.all([ | |
| import("/docs/transformers/main/en/_app/immutable/entry/start.CdKvyuqB.js"), | |
| import("/docs/transformers/main/en/_app/immutable/entry/app.Clj_WMPn.js") | |
| ]).then(([kit, app]) => { | |
| kit.start(app, element, { | |
| node_ids: [0, 70], | |
| data: [null,null], | |
| form: null, | |
| error: null | |
| }); | |
| }); | |
| } | |
| </script> | |
Xet Storage Details
- Size:
- 14.8 kB
- Xet hash:
- 7cd718c2c2920361339661c4c6d0b39622ea7fe70dac32300e8cfd0c26887aff
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.