Closed thiagopromano closed 6 months ago
The model outputs several tensors, and by default the serving pick :pooled_state
, which is already pooled (in a different way). I improved the error in 96935d8e88fbaed82370bfd684c348e29831ccd2.
So in this case what you want is output_attribute: :hidden_state
and output_pool: :mean_pooling
:)
Nice, thank you!
If the output pool is set to
:mean_pooling
andbatch_size/sequence_length
are specified, the dimensions for the mean pooling don't match, as can be seen from the example below. I've tested on the HEAD of the main branch today and it still crashes.Result: