sunnypilot v2026.002.000
version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
This commit is contained in:
commit
de77c89cf6
3995 files changed
+1260688
No files matched your search
@@ -0,0 +1,17 @@
|
||||
from tinygrad import Tensor, dtypes, GlobalCounters
|
||||
dtypes.default_float = dtypes.float16
|
||||
from tinygrad.dtype import to_dtype
|
||||
from tinygrad.helpers import getenv
|
||||
from test.backend.test_softmax_fusion import single_kernel_softmax
|
||||
|
||||
if __name__ == "__main__":
|
||||
# softmax in bert layers
|
||||
BS = getenv("BS", 96//6)
|
||||
acc_dtype = to_dtype(getenv("ACC_DTYPE", "half"))
|
||||
t = Tensor.empty(BS, 16, 512, 512)
|
||||
t.softmax(-1, dtype="half").realize()
|
||||
|
||||
# test single kernel softmax
|
||||
GlobalCounters.reset()
|
||||
single_kernel_softmax(t, -1, acc_dtype).realize()
|
||||
|
||||
Reference in new issue
Block a user