-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Enable vortex style fp8 as an option in evo2 #12464
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: John St John <[email protected]>
Signed-off-by: John St John <[email protected]>
2da79b9
to
5afbbad
Compare
class _te: | ||
"""If this dummy module is accessed, a not imported error will be raised.""" | ||
|
||
def __getattribute__(self, name: str) -> None: |
Check notice
Code scanning / CodeQL
Non-standard exception raised in special method Note
builtin-class ImportError
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 8 hours ago
To fix the problem, we need to modify the __getattribute__
method to raise an AttributeError
instead of an ImportError
. This change will ensure that the method conforms to the standard protocol for attribute access in Python. The rest of the functionality should remain the same, and the warning message about the missing transformer_engine
module will still be logged.
-
Copy modified line R63
@@ -62,3 +62,3 @@ | ||
"""Not imported: te. An error will be raised if this is called like a module.""" | ||
raise ImportError("transformer_engine not installed. Using default recipe.") | ||
raise AttributeError(f"'_te' object has no attribute '{name}'") | ||
|
This particular form of FP8 is needed to replicate a number of results in the Evo2 paper.
PR Type:
Without it we get random AUCs, with it we can recover the results reported in the arc notebooks.