Buckets:

HuggingFaceDocBuilder's picture
|
download
raw
1.59 kB
# Sequence-to-sequence モデル
<CourseFloatingBanner
chapter={1}
classNames="absolute z-10 right-0 top-0"
/>
Encoder-decoderモデル(*sequence-to-sequence models*とも呼ばれる)はTransformerアーキテクチャのエンコーダーとデコーダーの両方を使用します。
それぞれのステージにおいて、エンコーダーのアテンション層は入力文のすべての単語にアクセスできるのに対して、デコーダーのアテンション層は入力中のある単語の前に位置する単語にのみアクセスできます。
これらのモデルの事前学習は、エンコーダー、またはデコーダーの学習と同じように行われますが、通常はより複雑な方法を含みます。
例えば、[T5](https://huggingface.co/t5-base) は、特殊な単語で文中のスパン(複数の単語を含むことができる)をランダムにマスクしたときに、そのマスクされた文を予測する事を目的として事前学習されています。
Sequence-to-sequenceモデルは、要約、翻訳、質問応答生成などのように、与えられた入力文に対して新しい文を生成するタスクにとても適しています。
これらの系統のモデルの代表は次のとおりです:
- [BART](https://huggingface.co/transformers/model_doc/bart.html)
- [mBART](https://huggingface.co/transformers/model_doc/mbart.html)
- [Marian](https://huggingface.co/transformers/model_doc/marian.html)
- [T5](https://huggingface.co/transformers/model_doc/t5.html)

Xet Storage Details

Size:
1.59 kB
·
Xet hash:
ed91c46ae4294687de5dcd759ae1c6a7a9d78a98ca7db12ff490bfb9a3b67d73

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.