Commit 533eee5
authored
forward and tokenize chooser use the same shape (#3196)
* forward and tokenize chooser use the same shape
concate or filter happened to cpu tensor to avoid dynamic shape in hpu
Signed-off-by: Wang, Yi A <[email protected]>
* use hpu set seed
Signed-off-by: Wang, Yi A <[email protected]>
---------
Signed-off-by: Wang, Yi A <[email protected]>1 parent 51a0b9d commit 533eee5
File tree
6 files changed
+376
-481
lines changed- backends/gaudi/server/text_generation_server
- layers/attention
- models
- utils
6 files changed
+376
-481
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
Lines changed: 9 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
85 | | - | |
86 | | - | |
87 | 82 | | |
88 | 83 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 84 | | |
109 | 85 | | |
110 | 86 | | |
111 | 87 | | |
112 | 88 | | |
113 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
114 | 99 | | |
115 | 100 | | |
116 | 101 | | |
| |||
137 | 122 | | |
138 | 123 | | |
139 | 124 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 125 | | |
144 | 126 | | |
145 | 127 | | |
0 commit comments