Skip to content

Conversation

@marcelkant
Copy link

This commit introduces adjustments to enable the padding and masking functionality. I verified this version using an automated test script, which evaluated the design with 250 random test vectors.

Xeratec and others added 30 commits November 4, 2024 16:59
Important Changes:
- Change scaling of Softmax from 2**7-1 to 2**8-1

Current Limitations:
- Only works without biases
- Only works with ReLU activation
- FeedForward and MatMul do only work with one Tile
@Xeratec Xeratec requested review from Xeratec and gamzeisl January 24, 2025 18:54
@Xeratec Xeratec added the enhancement New feature or request label Jan 24, 2025
Copy link
Collaborator

@gamzeisl gamzeisl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve only left a few minor comments for now, as it would be better to review the full code after it’s rebased onto the current main.

Comment on lines +29 to +39
- python testGenerator.py -H 1 -S 64 -E 64 -P 64 -F 64 --activation gelu --skip-vector-validation
- python testGenerator.py -H 1 -S 128 -E 192 -P 256 -F 256 --activation gelu --skip-vector-validation
- python testGenerator.py -H 1 -S 192 -E 256 -P 128 -F 128 --activation relu --skip-vector-validation
- python testGenerator.py -H 1 -S 1 -E 2 -P 3 -F 3 --activation gelu --skip-vector-validation
- python testGenerator.py -H 1 -S 1 -E 2 -P 3 -F 3 --activation relu --skip-vector-validation
- python testGenerator.py -H 1 -S 63 -E 62 -P 61 -F 61 --activation relu --skip-vector-validation
- python testGenerator.py -H 1 -S 65 -E 130 -P 195 -F 195 --activation relu --skip-vector-validation
- python testGenerator.py -H 1 -S 127 -E 190 -P 253 -F 253 --activation relu --skip-vector-validation
- python testGenerator.py -H 1 -S 511 -E 511 -P 127 -F 63 --activation relu --skip-vector-validation
- python testGenerator.py -H 1 -S 63 -E 63 -P 50 -F 129 --activation gelu --skip-vector-validation
- python testGenerator.py -H 1 -S 255 -E 63 -P 511 -F 511 --activation identity --skip-vector-validation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is --skip-vector-validation required for all?

"-S${input:seq_len}",
"-E${input:emb_len}",
"-P${input:prj_len}",
"--no-bias"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change shouldn't be required

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed? By mistake?

Comment on lines +55 to +63
# output_files = ["Qp_0", "Kp_0", "Vp_0", "A_0", "Out_soft_0", "FFp_0", "FF2p_0"]
# if name in output_files:
# import matplotlib.pyplot as plt
# heatmap = np.squeeze(matrix)
# plt.imshow(heatmap, cmap='viridis')
# plt.colorbar()
# plt.title(f"{name}")
# plt.show()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants