Según el siguiente texto, qué capas contiene el codificador y descodificador?…
- User
Según el siguiente texto, qué capas contiene el codificador y descodificador? Text:"Encoder: The encoder is composed of a stack of N = 6 identical layers. Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple, positionwise fully connected feed-forward network. We employ a residual connection [11] around each of the two sub-layers, followed by layer normalization [1]. That is, the output of each sub-layer is LayerNorm(x + Sublayer(x)), where Sublayer(x) is the function implemented by the sub-layer itself. To facilitate these residual connections, all sub-layers in the model, as well as the embedding layers, produce outputs of dimension dmodel = 512. Decoder: The decoder is also composed of a stack of N = 6 identical layers. In addition to the two sub-layers in each encoder layer, the decoder inserts a third sub-layer, which performs multi-head attention over the output of the encoder stack. Similar to the encoder, we employ residual connections around each of the sub-layers, followed by layer normalization. We also modify the self-attention sub-layer in the decoder stack to prevent positions from attending to subsequent positions. This masking, combined with fact that the output embeddings are offset by one position, ensures that the predictions for position i can depend only on the known outputs at positions less than i."
- Assistant
Según el texto proporcionado, el codificador (encoder) y el descodificador (decoder) contienen las siguientes capas:
Codificador:
- El codificador está compuesto por una pila de N = 6 capas idénticas.
- Cada capa del codificador tiene dos subcapas:
- Un mecanismo de atención auto-dirigida con múltiples cabezas (multi-head self-attention mechanism).
- Una red completamente conectada simple de manera posicional (positionwise fully connected feed-forward network).
Además de las subcapas, el codificador emplea conexiones residuales y normalización de capas (layer normalization) alrededor de cada subcapa.
Descodificador:
- El descodificador también está compuesto por una pila de N = 6 capas idénticas.
- User
Resume y explica de forma sencilla el siguiente texto: Text:"Similarly to other sequence transduction models, we use learned embeddings to convert the input tokens and output tokens to vectors of dimension dmodel. We also use the usual learned linear transformation and softmax function to convert the decoder output to predicted next-token probabilities. In our model, we share the same weight matrix between the two embedding layers and the pre-softmax linear transformation, similar to [30]. In the embedding layers, we multiply those weights by √ dmodel."
- Assistant
De manera simplificada, el texto describe cómo se procesan las secuencias de entrada (como palabras en una oración) y se generan secuencias de salida (por ejemplo, una traducción de la oración original) en un modelo de transformación de secuencias, como lo podría ser un modelo de traducción automática.
- User
- Assistant