Skip to content

Commit

Permalink
Update 2.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
artyomboyko authored Feb 13, 2024
1 parent 2a19ee2 commit 8c6a58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/ru/chapter2/2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ print(outputs.last_hidden_state.shape)
Головы модели принимают на вход многомерный вектор скрытых состояний и проецируют его на другое измерение. Обычно они состоят из одного или нескольких линейных слоев:

<div class="flex justify-center">
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter2/transformer_and_head.svg" alt="A Transformer network alongside its head."/>
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter2/transformer_and_head-dark.svg" alt="A Transformer network alongside its head."/>
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter2/transformer_and_head.svg" alt="Сеть-трансформер с головой."/>
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter2/transformer_and_head-dark.svg" alt="Сеть-трансформер с головой."/>
</div>

Выход модели Transformer передается непосредственно в головку модели для обработки.
Expand Down

0 comments on commit 8c6a58c

Please sign in to comment.