Instructions to use AbdulElahGwaith/transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbdulElahGwaith/transformers with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AbdulElahGwaith/transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download docs/source/ko/model_doc/barthez.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 3.44 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/ko/model_doc/barthez.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/ko/model_doc/barthez.md
-
curl -L -o barthez.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/ko/model_doc/barthez.md
BARThez [[barthez]]
๊ฐ์ [[overview]]
BARThez ๋ชจ๋ธ์ 2020๋ 10์ 23์ผ, Moussa Kamal Eddine, Antoine J.-P. Tixier, Michalis Vazirgiannis์ ์ํด BARThez: a Skilled Pretrained French Sequence-to-Sequence Model์์ ์ ์๋์์ต๋๋ค.
์ด ๋ ผ๋ฌธ์ ์ด๋ก:
์๊ธฐ์ง๋ ํ์ต์ ์ํด ๊ฐ๋ฅํด์ง ๊ท๋ฉ์ ์ ์ด ํ์ต์ ์์ฐ์ด ์ฒ๋ฆฌ(NLP) ๋ถ์ผ ์ ๋ฐ์ ๊ฑธ์ณ ํฐ ๋ฐํฅ์ ์ผ์ผ์ผฐ์ผ๋ฉฐ, BERT์ BART์ ๊ฐ์ ๋ชจ๋ธ๋ค์ ์๋ง์ ์์ฐ์ด ์ดํด ์์ ์์ ์๋ก์ด ์ต์ฒจ๋จ ์ฑ๊ณผ๋ฅผ ๊ธฐ๋กํ์ต๋๋ค. ์ผ๋ถ ์ฃผ๋ชฉํ ๋งํ ์์ธ๊ฐ ์์ง๋ง, ๋๋ถ๋ถ์ ์ฌ์ฉ ๊ฐ๋ฅํ ๋ชจ๋ธ๊ณผ ์ฐ๊ตฌ๋ ์์ด์ ์ง์ค๋์ด ์์์ต๋๋ค. ๋ณธ ์ฐ๊ตฌ์์๋ BARThez๋ฅผ ์๊ฐํฉ๋๋ค. ์ด๋ (์ฐ๋ฆฌ๊ฐ ์๋ ํ) ํ๋์ค์ด๋ฅผ ์ํ ์ฒซ ๋ฒ์งธ BART ๋ชจ๋ธ์ ๋๋ค. BARThez๋ ๊ณผ๊ฑฐ ์ฐ๊ตฌ์์ ์ป์ ๋งค์ฐ ํฐ ํ๋์ค์ด ๋จ์ผ ์ธ์ด ๋ง๋ญ์น๋ก ์ฌ์ ํ๋ จ๋์์ผ๋ฉฐ, BART์ ๋ณํ ๋ฐฉ์์ ๋ง๊ฒ ์กฐ์ ๋์์ต๋๋ค. CamemBERT ๋ฐ FlauBERT์ ๊ฐ์ ๊ธฐ์กด์ BERT ๊ธฐ๋ฐ ํ๋์ค์ด ๋ชจ๋ธ๊ณผ ๋ฌ๋ฆฌ, BARThez๋ ์์ฑ ์์ ์ ํนํ ์ ํฉํฉ๋๋ค. ์ด๋ ์ธ์ฝ๋๋ฟ๋ง ์๋๋ผ ๋์ฝ๋๋ ์ฌ์ ํ๋ จ๋์๊ธฐ ๋๋ฌธ์ ๋๋ค. ์ฐ๋ฆฌ๋ FLUE ๋ฒค์น๋งํฌ์์์ ํ๋ณ ์์ ์ธ์๋ ์ด ๋ ผ๋ฌธ๊ณผ ํจ๊ป ๊ณต๊ฐํ๋ ์๋ก์ด ์์ฝ ๋ฐ์ดํฐ์ ์ธ OrangeSum์์ BARThez๋ฅผ ํ๊ฐํ์ต๋๋ค. ๋ํ ์ด๋ฏธ ์ฌ์ ํ๋ จ๋ ๋ค๊ตญ์ด BART์ ์ฌ์ ํ๋ จ์ BARThez์ ๋ง๋ญ์น๋ก ๊ณ์ ์งํํ์์ผ๋ฉฐ, ๊ฒฐ๊ณผ์ ์ผ๋ก ์ป์ด์ง ๋ชจ๋ธ์ธ mBARTHez๊ฐ ๊ธฐ๋ณธ BARThez๋ณด๋ค ์ ์๋ฏธํ ์ฑ๋ฅ ํฅ์์ ๋ณด์๊ณ , CamemBERT ๋ฐ FlauBERT์ ๋๋ฑํ๊ฑฐ๋ ์ด๋ฅผ ๋ฅ๊ฐํจ์ ๋ณด์์ต๋๋ค.
์ด ๋ชจ๋ธ์ moussakam์ด ๊ธฐ์ฌํ์ต๋๋ค. ์ ์์ ์ฝ๋๋ ์ฌ๊ธฐ์์ ์ฐพ์ ์ ์์ต๋๋ค.
BARThez ๊ตฌํ์ ๐ค BART์ ๋์ผํ๋, ํ ํฐํ์์ ์ฐจ์ด๊ฐ ์์ต๋๋ค. ๊ตฌ์ฑ ํด๋์ค์ ๊ทธ ๋งค๊ฐ๋ณ์์ ๋ํ ์ ๋ณด๋ BART ๋ฌธ์๋ฅผ ์ฐธ์กฐํ์ญ์์ค. BARThez ์ ์ฉ ํ ํฌ๋์ด์ ๋ ์๋์ ๋ฌธ์ํ๋์ด ์์ต๋๋ค.
๋ฆฌ์์ค [[resources]]
- BARThez๋ ๐ค BART์ ์ ์ฌํ ๋ฐฉ์์ผ๋ก ์ํ์ค-ํฌ-์ํ์ค ์์ ์ ๋ง์ถฐ ๋ฏธ์ธ ์กฐ์ ๋ ์ ์์ต๋๋ค. ๋ค์์ ํ์ธํ์ธ์: examples/pytorch/summarization/.
BarthezTokenizer [[bartheztokenizer]]
[[autodoc]] BarthezTokenizer
BarthezTokenizerFast [[bartheztokenizerfast]]
[[autodoc]] BarthezTokenizerFast