Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added temporary fix for breaking / new attributes in parser #1780

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vprajapati-tt
Copy link
Contributor

@vprajapati-tt vprajapati-tt linked an issue Jan 16, 2025 that may be closed by this pull request
@tapspatel
Copy link
Contributor

btw, I can confirm, with the fix proposed, I don't get the same error anymore. I can view parts of the model in explorer now.

@@ -324,6 +324,9 @@ def parse_force(attr):
@AttrHandler.register_handler("dtype")
def parse_dtype(attr):
dtype = tt.ir.DataTypeAttr.maybe_downcast(attr)
if dtype is None:
# Potential for dtype to be StringAttr instead of tt.DataTypeAttr
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we explicitly try to cast to StringAttr instead of checking for None?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Checking for None is done to see if the above downcast failed, I changed it to explicitly cast to string.

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.

Enable viewing of llama prefill in tt-explorer
3 participants