Class TransformerBlock
java.lang.Object
smile.llm.llama.TransformerBlock
A block in Transformer model. It consists of an attention mechanism
followed by a feedforward neural network. This module can be stacked
multiple times to create a complete Transformer model.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TransformerBlock
Constructor.- Parameters:
layerId
- the identifier of the block.args
- the model configuration parameters.
-
-
Method Details
-
forward
-