Question: Consider a Multi - head Transformer Algorithm as shown in the figure below. The algorithm consists of one encoder and one decoder ( similar to
Consider a Multihead Transformer Algorithm as shown in the figure below. The algorithm consists of one encoder and one decoder similar to the one discussed in the class Assume attention heads, embedding size of Assume bit floating point numbers for inputs, outputs and all intermediate operations. Also notice that some of the blocks have been skipped.
a Implement the transformer algorithm.
b Comment on the total number of bits to be communicated between two consecutive computing blocks with increasing embedding size. Provide proper explanations and visuals.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
