Closed rkdgmlqja closed 1 month ago
@zkkli , @rkdgmlqja
I have a same issue.
if embed_dim
is higher then 128(int8 range), ValueError occurs. But in buid_model.py
file, every embed_dim
is higher then 128. So it occurs error inevitably.
How to solve this problem?
The Error was caused by quantized layer norm from layers.py
def quantized_layernorm(data,
bias_int):
data = relay.cast(data, 'int32')
mean = relay.mean(data, axis=2, keepdims=True)
data = data - mean
data_sq = data * data
This should fix it
Hi I’m currently working on compiling I-ViT using TVM. On this project, The error appears.
by changing value 192 lower than 128 on build_model.py seems to sove the issue. ` if name == 'deit_tiny_patch16_224':
embed_dim = 192
` But, strictly speaking, 'But this method' involves arbitrarily modifying the model's structure, so it is not an appropriate solution. should changing TVM's version solve this issue?
Thanks always.