Add softmax selection to two of the testing scripts

This commit is contained in:
Qianfeng Zhang
2026-02-05 14:56:31 +00:00
parent 0a8c5f523a
commit 8af5e26717
2 changed files with 22 additions and 10 deletions

View File

@@ -1,14 +1,20 @@
#!/bin/bash
ndist=0
set +x
ndist=0
BUILD=build
USE_SOFTMAX=0
if [ $# -ge 1 ]; then
ndist=$1
USE_SOFTMAX=$1
fi
set +x
BUILD=build
EXE=$BUILD/bin/tile_example_hstu_attention
if [ $USE_SOFTMAX -eq 1 ]; then
EXE="$BUILD/bin/tile_example_hstu_attention -softmax=1"
else
EXE="$BUILD/bin/tile_example_hstu_attention"
fi
dtype="bf16"

View File

@@ -1,14 +1,20 @@
#!/bin/bash
ndist=0
set +x
ndist=0
BUILD=build
USE_SOFTMAX=0
if [ $# -ge 1 ]; then
ndist=$1
USE_SOFTMAX=$1
fi
set +x
BUILD=build
EXE=$BUILD/bin/tile_example_hstu_attention
if [ $USE_SOFTMAX -eq 1 ]; then
EXE="$BUILD/bin/tile_example_hstu_attention -softmax=1"
else
EXE="$BUILD/bin/tile_example_hstu_attention"
fi
dtype="bf16"