You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You write custom {language_display} to replace the pytorch operators in the given architecture to get speedups.
10
+
You write custom {language_display} to replace the PyTorch operators in the given architecture to get speedups.
11
11
12
12
You have complete freedom to choose the set of operators you want to replace. You may make the decision to replace some operators with custom {language_display} and leave others unchanged. You may replace multiple operators with custom implementations, consider operator fusion opportunities (combining multiple operators into a single kernel, for example, combining matmul+relu), or algorithmic changes (such as online softmax). You are only limited by your imagination.
13
13
"""
14
14
15
+
# on {hardware}, with {precision} as inputs and weigths
15
16
instruction = """
16
-
Optimize the architecture named Model with custom {language_display}! Name your optimized output architecture ModelNew. Output the new code in codeblocks. Please generate real code, NOT pseudocode, make sure the code compiles and is fully functional. Just output the new model code, no other text, and NO testing code!
17
+
Optimize the architecture named Model with custom {language_display},! Name your optimized output architecture ModelNew. Output the new code in codeblocks. Please generate real code, NOT pseudocode, make sure the code compiles and is fully functional. Just output the new model code, no other text, and NO testing code!
17
18
"""
18
19
19
-
# Shared example architecture (same for all languages)
0 commit comments