You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[12/11/2024-23:39:05] [TRT] [I] Compiler backend is used during engine build.
[12/11/2024-23:39:10] [TRT] [E] Error Code: 9: Skipping tactic 0x0000000000000000 due to exception Assertion t.region->getDataType() == DataType::kINT32 failed.
[12/11/2024-23:39:10] [TRT] [E] IBuilder::buildSerializedNetwork: Error Code 10: Internal Error (Could not find any implementation for node {ForeignNode[BertModel/layers/11/post_layernorm/value_L145/get_tensor_L136/get_constant_tensor_L127/_create_constant_tensor_L111/constant_L1150/CONSTANT_0 + BertModel/layers/11/post_layernorm/layer_norm_L5214/broadcast_helper_L2800/expand_dims_like_L1905/expand_dims_L1737/view_L1645/SHUFFLE_0...BertModel/norm_L625/__truediv___L357/elementwise_binary_L2855/ELEMENTWISE_DIV_0]}.)
also tested things like
# offsets = cumsum(input_lengths, 0)
# mean_v = concat(
# [
# mean(slice(hidden_states, starts=[slice(offsets, [i], sizes=[0])], sizes=(input_lengths[i],)), dim=0)
# for i in arange(0, shape(input_lengths, 0), "int32")
# ]
# )
# return mean_v
The text was updated successfully, but these errors were encountered:
michaelfeil
changed the title
Mean-Pooling Layer for Bert for varlen/nested/remove_input_padding tensor
Mean-Pooling Layer for Bert for packed/nested/remove_input_padding tensor
Dec 10, 2024
michaelfeil
changed the title
Mean-Pooling Layer for Bert for packed/nested/remove_input_padding tensor
Mean-Pooling Layer for Bert for packed/nested/remove_input_padding tensor t.region->getDataType() == DataType::kINT32 failed.
Dec 11, 2024
I am trying to implement a Bert-Style pooling using the Python functional.py layer.
Relevant code:
TensorRT-LLM/tensorrt_llm/models/bert/model.py
Line 311 in 340a1b6
Relevant PyTorch code would be e.g.
With nested:
How would I implement this layer using tensorrt_llm abstractions?
Easier reproducer:
The text was updated successfully, but these errors were encountered: