15 bool has_past_keys_values;
18 std::vector<Matrix3D<float16_t>> past_keys, past_values;
20 std::vector<Matrix3D<float>> past_keys, past_values;
25 has_past_keys_values =
false;
35 : input_ids(input_ids_), past_keys(past_keys_), past_values(past_values_) {
36 has_past_keys_values =
true;
40 : input_ids(input_ids_), image_embed(image_embed_), second_input_ids(second_input_ids_) {
41 has_past_keys_values =
false;
45 : input_ids(input_ids_), image_embed(image_embed_) {
46 has_past_keys_values =
false;