Commit 0a6c11c
authored
Unify Operators using Python Interface, Remove CMake (#37)
* separate runtime and artifact setup
* start on refactoring operators from CMake to Python
* operators up to GEMM migrated (dequant missing); fixed timing issue in Python (missing warmup iterations); merge Curt's GEMM fixes
* more fixes; remove old moved operators
* [wip] tests with default parameters are working
* undo change to aie base operator:
* format
* port last two remaining operators (mostly Claude)
* remove CMake and other unused code after refactor
* format
* remove refactored files, restore torch_dtype_map
* fix tests
* update action to use Python-based tests
* format
* fix swiglu
* update application tests
* update README, remove references to CMake
* remove CMake from requirements
* format
* cleanup utils/torch_to_numpy, make example applications test discovery use absolute path
* format
* more fixes
* more fixes1 parent 3a053d3 commit 0a6c11c
File tree
195 files changed
+5388
-10725
lines changed- .github
- actions
- build
- test
- workflows
- aie_kernels
- aie1
- aie2p
- aie2
- generic
- applications
- llama_3.2_1b
- src
- block
- ci/scripts
- cmake
- Modules
- example
- axpy
- common
- dequant
- elementwise_add
- elementwise_mul
- gelu
- gemm
- layer_norm
- leaky_relu
- matrix_vector_mul
- mem_copy
- mha
- relu
- rms_norm
- rope
- sigmoid
- silu
- softmax
- swiglu
- tanh
- transpose
- host_lib/include
- operators
- axpy
- common
- dequant
- elementwise_add
- elementwise_mul
- gelu
- gemm
- gemv
- layer_norm
- leaky_relu
- mem_copy
- mha
- relu
- rms_norm
- rope
- sigmoid
- silu
- softmax
- swiglu_decode
- swiglu_prefill
- tanh
- transpose
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
195 files changed
+5388
-10725
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
| 122 | + | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
128 | | - | |
| 127 | + | |
129 | 128 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
140 | 133 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
145 | 137 | | |
146 | | - | |
| 138 | + | |
147 | 139 | | |
148 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
149 | 143 | | |
150 | | - | |
151 | 144 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 145 | + | |
172 | 146 | | |
173 | 147 | | |
174 | 148 | | |
| |||
This file was deleted.
0 commit comments