Skip to content

Conversation

@vbrkicTT
Copy link
Contributor

@vbrkicTT vbrkicTT commented Sep 18, 2024

Ticket

Resolves tenstorrent/tt-forge-sweeps#7

Problem description

Enable RGG random graph generator testing

What's changed

RGG implementation
RGG documentation
Reformat RGG code

Removed global compiler config
DepricatedVerifyConfig
Use common forge verification
Move random seed logic to test_graphs
Rename PyBuda to Forge
Single RGG pytest
test_commands for rgg
No reducing microbatch size for forge and torch constants
Store test code in pytest report
Operator repo update
Operator support for RGG classified

Checklist

  • New/Existing tests provide coverage for changes

@vbrkicTT vbrkicTT added this to the [FFE - 0] Op testing - E2E milestone Sep 18, 2024
@vbrkicTT vbrkicTT self-assigned this Sep 18, 2024
@vbrkicTT vbrkicTT marked this pull request as draft September 18, 2024 14:25
@vbrkicTT vbrkicTT force-pushed the vbrkic/rgg branch 3 times, most recently from ab700ac to b9f4e63 Compare September 19, 2024 21:02
@vbrkicTT vbrkicTT force-pushed the vbrkic/rgg branch 3 times, most recently from c9aac18 to eb85703 Compare November 28, 2024 18:06
@vbrkicTT vbrkicTT marked this pull request as ready for review November 29, 2024 10:42
@vbrkicTT vbrkicTT requested a review from pilkicTT as a code owner November 29, 2024 10:42
@vbrkicTT vbrkicTT force-pushed the vbrkic/rgg branch 6 times, most recently from ef00379 to 2389ee3 Compare December 4, 2024 14:40
@vbrkicTT vbrkicTT force-pushed the vbrkic/rgg branch 7 times, most recently from 329081f to e798af9 Compare December 12, 2024 14:34
@nvukobratTT
Copy link
Collaborator

Should this one be converted to draft if it's still WIP?

@dgolubovicTT
Copy link
Contributor

It waits for my review. We had some iterations with @vbrkicTT but we need to review it once more...

@vbrkicTT
Copy link
Contributor Author

The implementation is currently in a stable state. The PR is basically a migration from Buda codebase with many minor and non functional improvements. Further improvements and features we should plan and implement in followup PRs as regular development.

class Algorithm:

name: str
GraphBuilderType: Type["GraphBuilder"]

Check warning

Code scanning / flake8

undefined name 'GraphBuilder' Warning test

undefined name 'GraphBuilder'
def test_graphs(
test_index: int,
random_seed: int,
test_device: "TestDevice",

Check warning

Code scanning / flake8

undefined name 'TestDevice' Warning test

undefined name 'TestDevice'
@vbrkicTT vbrkicTT force-pushed the vbrkic/rgg branch 3 times, most recently from abf1893 to 3c8b7eb Compare July 10, 2025 20:12
@vbrkicTT vbrkicTT force-pushed the vbrkic/rgg branch 3 times, most recently from ab58c2e to 169a301 Compare July 29, 2025 16:25

from typing import List

from forge import ForgeModule

Check warning

Code scanning / flake8

'forge.ForgeModule' imported but unused Warning test

'forge.ForgeModule' imported but unused

from typing import List

from forge import ForgeModule

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'ForgeModule' is not used.

Copilot Autofix

AI 4 months ago

To fix the issue, the unused import statement from forge import ForgeModule on line 9 should be deleted. This will remove the unnecessary dependency and make the code cleaner. No other changes are required, as the removal of this import does not affect the functionality of the code.


Suggested changeset 1
forge/test/random/rgg/verify.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/forge/test/random/rgg/verify.py b/forge/test/random/rgg/verify.py
--- a/forge/test/random/rgg/verify.py
+++ b/forge/test/random/rgg/verify.py
@@ -8,3 +8,2 @@
 
-from forge import ForgeModule
 from forge import Module
EOF
@@ -8,3 +8,2 @@

from forge import ForgeModule
from forge import Module
Copilot is powered by AI and may make mistakes. Always verify output.
@vbrkicTT vbrkicTT force-pushed the vbrkic/rgg branch 3 times, most recently from 6d9972c to f9929cc Compare August 4, 2025 14:46
@vbrkicTT vbrkicTT force-pushed the vbrkic/rgg branch 2 times, most recently from ea1b1c2 to adec939 Compare August 22, 2025 15:53
RGG implementation
RGG documentation
Reformat RGG code

Removed global compiler config
DepricatedVerifyConfig
Use common forge verification
Move random seed logic to test_graphs
Rename PyBuda to Forge
Single RGG pytest
test_commands for rgg
No reducing microbatch size for forge and torch constants
Store test code in pytest report
Operator repo update
Operator support for RGG classified
Unsupported list of operators
Multiple values for skip_forge_verification in RGG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants