program(1.0) [buildInfo = dict, tensor>({{"coremlc-component-MIL", "3510.2.1"}, {"coremlc-version", "3500.32.1"}, {"coremltools-component-torch", "2.5.0"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "8.3.0"}})] { func main(tensor input_ids) { tensor var_3 = const()[name = tensor("op_3"), val = tensor(0)]; tensor var_4 = not_equal(x = input_ids, y = var_3)[name = tensor("op_4")]; tensor cast_0_dtype_0 = const()[name = tensor("cast_0_dtype_0"), val = tensor("int32")]; tensor var_16 = const()[name = tensor("op_16"), val = tensor(-1)]; tensor var_41_axes_0 = const()[name = tensor("op_41_axes_0"), val = tensor([1])]; tensor cast_0 = cast(dtype = cast_0_dtype_0, x = var_4)[name = tensor("cast_37")]; tensor var_41 = expand_dims(axes = var_41_axes_0, x = cast_0)[name = tensor("op_41")]; tensor var_42_axes_0 = const()[name = tensor("op_42_axes_0"), val = tensor([2])]; tensor var_42 = expand_dims(axes = var_42_axes_0, x = var_41)[name = tensor("op_42")]; tensor var_21_to_fp16 = const()[name = tensor("op_21_to_fp16"), val = tensor(0x1p+0)]; tensor cast_1_to_fp16_dtype_0 = const()[name = tensor("cast_1_to_fp16_dtype_0"), val = tensor("fp16")]; tensor var_42_to_fp16 = cast(dtype = cast_1_to_fp16_dtype_0, x = var_42)[name = tensor("cast_36")]; tensor var_45_cast_fp16 = sub(x = var_21_to_fp16, y = var_42_to_fp16)[name = tensor("op_45_cast_fp16")]; tensor var_46_to_fp16 = const()[name = tensor("op_46_to_fp16"), val = tensor(-0x1.d4cp+14)]; tensor attention_mask_cast_fp16 = mul(x = var_45_cast_fp16, y = var_46_to_fp16)[name = tensor("attention_mask_cast_fp16")]; tensor inputs_embeds_axis_0 = const()[name = tensor("inputs_embeds_axis_0"), val = tensor(0)]; tensor inputs_embeds_batch_dims_0 = const()[name = tensor("inputs_embeds_batch_dims_0"), val = tensor(0)]; tensor inputs_embeds_validate_indices_0 = const()[name = tensor("inputs_embeds_validate_indices_0"), val = tensor(false)]; tensor m_embeddings_word_embeddings_weight_to_fp16 = const()[name = tensor("m_embeddings_word_embeddings_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(64)))]; tensor input_ids_to_int16_dtype_0 = const()[name = tensor("input_ids_to_int16_dtype_0"), val = tensor("int16")]; tensor input_ids_to_int16 = cast(dtype = input_ids_to_int16_dtype_0, x = input_ids)[name = tensor("cast_35")]; tensor inputs_embeds_cast_fp16_cast_uint16 = gather(axis = inputs_embeds_axis_0, batch_dims = inputs_embeds_batch_dims_0, indices = input_ids_to_int16, validate_indices = inputs_embeds_validate_indices_0, x = m_embeddings_word_embeddings_weight_to_fp16)[name = tensor("inputs_embeds_cast_fp16_cast_uint16")]; tensor token_type_embeddings_1_to_fp16 = const()[name = tensor("token_type_embeddings_1_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(31260800)))]; tensor input_3_cast_fp16 = add(x = inputs_embeds_cast_fp16_cast_uint16, y = token_type_embeddings_1_to_fp16)[name = tensor("input_3_cast_fp16")]; tensor input_5_axes_0 = const()[name = tensor("input_5_axes_0"), val = tensor([-1])]; tensor m_embeddings_LayerNorm_weight_to_fp16 = const()[name = tensor("m_embeddings_LayerNorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(31785152)))]; tensor m_embeddings_LayerNorm_bias_to_fp16 = const()[name = tensor("m_embeddings_LayerNorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(31786240)))]; tensor var_18_to_fp16 = const()[name = tensor("op_18_to_fp16"), val = tensor(0x1p-24)]; tensor input_5_cast_fp16 = layer_norm(axes = input_5_axes_0, beta = m_embeddings_LayerNorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_embeddings_LayerNorm_weight_to_fp16, x = input_3_cast_fp16)[name = tensor("input_5_cast_fp16")]; tensor m_encoder_layer_0_attention_self_query_weight_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_self_query_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(31787328)))]; tensor m_encoder_layer_0_attention_self_query_bias_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_self_query_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(32311680)))]; tensor linear_0_cast_fp16 = linear(bias = m_encoder_layer_0_attention_self_query_bias_to_fp16, weight = m_encoder_layer_0_attention_self_query_weight_to_fp16, x = input_5_cast_fp16)[name = tensor("linear_0_cast_fp16")]; tensor m_encoder_layer_0_attention_self_key_weight_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_self_key_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(32312768)))]; tensor m_encoder_layer_0_attention_self_key_bias_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_self_key_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(32837120)))]; tensor linear_1_cast_fp16 = linear(bias = m_encoder_layer_0_attention_self_key_bias_to_fp16, weight = m_encoder_layer_0_attention_self_key_weight_to_fp16, x = input_5_cast_fp16)[name = tensor("linear_1_cast_fp16")]; tensor var_90 = const()[name = tensor("op_90"), val = tensor([1, 512, 8, 64])]; tensor x_3_cast_fp16 = reshape(shape = var_90, x = linear_1_cast_fp16)[name = tensor("x_3_cast_fp16")]; tensor m_encoder_layer_0_attention_self_value_weight_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_self_value_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(32838208)))]; tensor m_encoder_layer_0_attention_self_value_bias_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_self_value_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(33362560)))]; tensor linear_2_cast_fp16 = linear(bias = m_encoder_layer_0_attention_self_value_bias_to_fp16, weight = m_encoder_layer_0_attention_self_value_weight_to_fp16, x = input_5_cast_fp16)[name = tensor("linear_2_cast_fp16")]; tensor var_99 = const()[name = tensor("op_99"), val = tensor([1, 512, 8, 64])]; tensor x_7_cast_fp16 = reshape(shape = var_99, x = linear_2_cast_fp16)[name = tensor("x_7_cast_fp16")]; tensor var_101 = const()[name = tensor("op_101"), val = tensor([0, 2, 1, 3])]; tensor var_105 = const()[name = tensor("op_105"), val = tensor([1, 512, 8, 64])]; tensor x_11_cast_fp16 = reshape(shape = var_105, x = linear_0_cast_fp16)[name = tensor("x_11_cast_fp16")]; tensor attention_scores_1_transpose_x_0 = const()[name = tensor("attention_scores_1_transpose_x_0"), val = tensor(false)]; tensor attention_scores_1_transpose_y_0 = const()[name = tensor("attention_scores_1_transpose_y_0"), val = tensor(false)]; tensor transpose_12_perm_0 = const()[name = tensor("transpose_12_perm_0"), val = tensor([0, 2, -3, -1])]; tensor transpose_13_perm_0 = const()[name = tensor("transpose_13_perm_0"), val = tensor([0, 2, -1, -3])]; tensor transpose_13 = transpose(perm = transpose_13_perm_0, x = x_3_cast_fp16)[name = tensor("transpose_33")]; tensor transpose_12 = transpose(perm = transpose_12_perm_0, x = x_11_cast_fp16)[name = tensor("transpose_34")]; tensor attention_scores_1_cast_fp16 = matmul(transpose_x = attention_scores_1_transpose_x_0, transpose_y = attention_scores_1_transpose_y_0, x = transpose_12, y = transpose_13)[name = tensor("attention_scores_1_cast_fp16")]; tensor _inversed_attention_scores_3_y_0_to_fp16 = const()[name = tensor("_inversed_attention_scores_3_y_0_to_fp16"), val = tensor(0x1p-3)]; tensor _inversed_attention_scores_3_cast_fp16 = mul(x = attention_scores_1_cast_fp16, y = _inversed_attention_scores_3_y_0_to_fp16)[name = tensor("_inversed_attention_scores_3_cast_fp16")]; tensor attention_scores_5_cast_fp16 = add(x = _inversed_attention_scores_3_cast_fp16, y = attention_mask_cast_fp16)[name = tensor("attention_scores_5_cast_fp16")]; tensor bias_3_to_fp16 = const()[name = tensor("bias_3_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(33363648)))]; tensor input_7_cast_fp16 = add(x = attention_scores_5_cast_fp16, y = bias_3_to_fp16)[name = tensor("input_7_cast_fp16")]; tensor input_9_cast_fp16 = softmax(axis = var_16, x = input_7_cast_fp16)[name = tensor("input_9_cast_fp16")]; tensor context_layer_1_transpose_x_0 = const()[name = tensor("context_layer_1_transpose_x_0"), val = tensor(false)]; tensor context_layer_1_transpose_y_0 = const()[name = tensor("context_layer_1_transpose_y_0"), val = tensor(false)]; tensor value_layer_1_cast_fp16 = transpose(perm = var_101, x = x_7_cast_fp16)[name = tensor("transpose_35")]; tensor context_layer_1_cast_fp16 = matmul(transpose_x = context_layer_1_transpose_x_0, transpose_y = context_layer_1_transpose_y_0, x = input_9_cast_fp16, y = value_layer_1_cast_fp16)[name = tensor("context_layer_1_cast_fp16")]; tensor var_118 = const()[name = tensor("op_118"), val = tensor([0, 2, 1, 3])]; tensor var_123 = const()[name = tensor("op_123"), val = tensor([1, 512, 512])]; tensor var_119_cast_fp16 = transpose(perm = var_118, x = context_layer_1_cast_fp16)[name = tensor("transpose_32")]; tensor input_11_cast_fp16 = reshape(shape = var_123, x = var_119_cast_fp16)[name = tensor("input_11_cast_fp16")]; tensor m_encoder_layer_0_attention_output_dense_weight_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_output_dense_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(37558016)))]; tensor m_encoder_layer_0_attention_output_dense_bias_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_output_dense_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(38082368)))]; tensor linear_3_cast_fp16 = linear(bias = m_encoder_layer_0_attention_output_dense_bias_to_fp16, weight = m_encoder_layer_0_attention_output_dense_weight_to_fp16, x = input_11_cast_fp16)[name = tensor("linear_3_cast_fp16")]; tensor input_15_cast_fp16 = add(x = linear_3_cast_fp16, y = input_5_cast_fp16)[name = tensor("input_15_cast_fp16")]; tensor input_17_axes_0 = const()[name = tensor("input_17_axes_0"), val = tensor([-1])]; tensor m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(38083456)))]; tensor m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor("m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(38084544)))]; tensor input_17_cast_fp16 = layer_norm(axes = input_17_axes_0, beta = m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16, x = input_15_cast_fp16)[name = tensor("input_17_cast_fp16")]; tensor m_encoder_layer_0_mlp_gated_layers_weight_to_fp16 = const()[name = tensor("m_encoder_layer_0_mlp_gated_layers_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(38085632)))]; tensor linear_4_bias_0_to_fp16 = const()[name = tensor("linear_4_bias_0_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(42280000)))]; tensor linear_4_cast_fp16 = linear(bias = linear_4_bias_0_to_fp16, weight = m_encoder_layer_0_mlp_gated_layers_weight_to_fp16, x = input_17_cast_fp16)[name = tensor("linear_4_cast_fp16")]; tensor input_19_begin_0 = const()[name = tensor("input_19_begin_0"), val = tensor([0, 0, 0])]; tensor input_19_end_0 = const()[name = tensor("input_19_end_0"), val = tensor([1, 512, 2048])]; tensor input_19_end_mask_0 = const()[name = tensor("input_19_end_mask_0"), val = tensor([true, true, false])]; tensor input_19_cast_fp16 = slice_by_index(begin = input_19_begin_0, end = input_19_end_0, end_mask = input_19_end_mask_0, x = linear_4_cast_fp16)[name = tensor("input_19_cast_fp16")]; tensor non_gated_1_begin_0 = const()[name = tensor("non_gated_1_begin_0"), val = tensor([0, 0, 2048])]; tensor non_gated_1_end_0 = const()[name = tensor("non_gated_1_end_0"), val = tensor([1, 512, 4096])]; tensor non_gated_1_end_mask_0 = const()[name = tensor("non_gated_1_end_mask_0"), val = tensor([true, true, true])]; tensor non_gated_1_cast_fp16 = slice_by_index(begin = non_gated_1_begin_0, end = non_gated_1_end_0, end_mask = non_gated_1_end_mask_0, x = linear_4_cast_fp16)[name = tensor("non_gated_1_cast_fp16")]; tensor var_147_mode_0 = const()[name = tensor("op_147_mode_0"), val = tensor("EXACT")]; tensor var_147_cast_fp16 = gelu(mode = var_147_mode_0, x = input_19_cast_fp16)[name = tensor("op_147_cast_fp16")]; tensor input_21_cast_fp16 = mul(x = var_147_cast_fp16, y = non_gated_1_cast_fp16)[name = tensor("input_21_cast_fp16")]; tensor m_encoder_layer_0_mlp_wo_weight_to_fp16 = const()[name = tensor("m_encoder_layer_0_mlp_wo_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(42288256)))]; tensor m_encoder_layer_0_mlp_wo_bias_to_fp16 = const()[name = tensor("m_encoder_layer_0_mlp_wo_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(44385472)))]; tensor linear_5_cast_fp16 = linear(bias = m_encoder_layer_0_mlp_wo_bias_to_fp16, weight = m_encoder_layer_0_mlp_wo_weight_to_fp16, x = input_21_cast_fp16)[name = tensor("linear_5_cast_fp16")]; tensor input_25_cast_fp16 = add(x = linear_5_cast_fp16, y = input_17_cast_fp16)[name = tensor("input_25_cast_fp16")]; tensor input_27_axes_0 = const()[name = tensor("input_27_axes_0"), val = tensor([-1])]; tensor m_encoder_layer_0_mlp_layernorm_weight_to_fp16 = const()[name = tensor("m_encoder_layer_0_mlp_layernorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(44386560)))]; tensor m_encoder_layer_0_mlp_layernorm_bias_to_fp16 = const()[name = tensor("m_encoder_layer_0_mlp_layernorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(44387648)))]; tensor input_27_cast_fp16 = layer_norm(axes = input_27_axes_0, beta = m_encoder_layer_0_mlp_layernorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_encoder_layer_0_mlp_layernorm_weight_to_fp16, x = input_25_cast_fp16)[name = tensor("input_27_cast_fp16")]; tensor m_encoder_layer_1_attention_self_query_weight_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_self_query_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(44388736)))]; tensor m_encoder_layer_1_attention_self_query_bias_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_self_query_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(44913088)))]; tensor linear_6_cast_fp16 = linear(bias = m_encoder_layer_1_attention_self_query_bias_to_fp16, weight = m_encoder_layer_1_attention_self_query_weight_to_fp16, x = input_27_cast_fp16)[name = tensor("linear_6_cast_fp16")]; tensor m_encoder_layer_1_attention_self_key_weight_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_self_key_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(44914176)))]; tensor m_encoder_layer_1_attention_self_key_bias_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_self_key_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(45438528)))]; tensor linear_7_cast_fp16 = linear(bias = m_encoder_layer_1_attention_self_key_bias_to_fp16, weight = m_encoder_layer_1_attention_self_key_weight_to_fp16, x = input_27_cast_fp16)[name = tensor("linear_7_cast_fp16")]; tensor var_173 = const()[name = tensor("op_173"), val = tensor([1, 512, 8, 64])]; tensor x_15_cast_fp16 = reshape(shape = var_173, x = linear_7_cast_fp16)[name = tensor("x_15_cast_fp16")]; tensor m_encoder_layer_1_attention_self_value_weight_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_self_value_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(45439616)))]; tensor m_encoder_layer_1_attention_self_value_bias_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_self_value_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(45963968)))]; tensor linear_8_cast_fp16 = linear(bias = m_encoder_layer_1_attention_self_value_bias_to_fp16, weight = m_encoder_layer_1_attention_self_value_weight_to_fp16, x = input_27_cast_fp16)[name = tensor("linear_8_cast_fp16")]; tensor var_182 = const()[name = tensor("op_182"), val = tensor([1, 512, 8, 64])]; tensor x_19_cast_fp16 = reshape(shape = var_182, x = linear_8_cast_fp16)[name = tensor("x_19_cast_fp16")]; tensor var_184 = const()[name = tensor("op_184"), val = tensor([0, 2, 1, 3])]; tensor var_188 = const()[name = tensor("op_188"), val = tensor([1, 512, 8, 64])]; tensor x_23_cast_fp16 = reshape(shape = var_188, x = linear_6_cast_fp16)[name = tensor("x_23_cast_fp16")]; tensor attention_scores_7_transpose_x_0 = const()[name = tensor("attention_scores_7_transpose_x_0"), val = tensor(false)]; tensor attention_scores_7_transpose_y_0 = const()[name = tensor("attention_scores_7_transpose_y_0"), val = tensor(false)]; tensor transpose_14_perm_0 = const()[name = tensor("transpose_14_perm_0"), val = tensor([0, 2, -3, -1])]; tensor transpose_15_perm_0 = const()[name = tensor("transpose_15_perm_0"), val = tensor([0, 2, -1, -3])]; tensor transpose_15 = transpose(perm = transpose_15_perm_0, x = x_15_cast_fp16)[name = tensor("transpose_29")]; tensor transpose_14 = transpose(perm = transpose_14_perm_0, x = x_23_cast_fp16)[name = tensor("transpose_30")]; tensor attention_scores_7_cast_fp16 = matmul(transpose_x = attention_scores_7_transpose_x_0, transpose_y = attention_scores_7_transpose_y_0, x = transpose_14, y = transpose_15)[name = tensor("attention_scores_7_cast_fp16")]; tensor _inversed_attention_scores_9_y_0_to_fp16 = const()[name = tensor("_inversed_attention_scores_9_y_0_to_fp16"), val = tensor(0x1p-3)]; tensor _inversed_attention_scores_9_cast_fp16 = mul(x = attention_scores_7_cast_fp16, y = _inversed_attention_scores_9_y_0_to_fp16)[name = tensor("_inversed_attention_scores_9_cast_fp16")]; tensor attention_scores_11_cast_fp16 = add(x = _inversed_attention_scores_9_cast_fp16, y = attention_mask_cast_fp16)[name = tensor("attention_scores_11_cast_fp16")]; tensor input_29_cast_fp16 = add(x = attention_scores_11_cast_fp16, y = bias_3_to_fp16)[name = tensor("input_29_cast_fp16")]; tensor input_31_cast_fp16 = softmax(axis = var_16, x = input_29_cast_fp16)[name = tensor("input_31_cast_fp16")]; tensor context_layer_5_transpose_x_0 = const()[name = tensor("context_layer_5_transpose_x_0"), val = tensor(false)]; tensor context_layer_5_transpose_y_0 = const()[name = tensor("context_layer_5_transpose_y_0"), val = tensor(false)]; tensor value_layer_3_cast_fp16 = transpose(perm = var_184, x = x_19_cast_fp16)[name = tensor("transpose_31")]; tensor context_layer_5_cast_fp16 = matmul(transpose_x = context_layer_5_transpose_x_0, transpose_y = context_layer_5_transpose_y_0, x = input_31_cast_fp16, y = value_layer_3_cast_fp16)[name = tensor("context_layer_5_cast_fp16")]; tensor var_201 = const()[name = tensor("op_201"), val = tensor([0, 2, 1, 3])]; tensor var_206 = const()[name = tensor("op_206"), val = tensor([1, 512, 512])]; tensor var_202_cast_fp16 = transpose(perm = var_201, x = context_layer_5_cast_fp16)[name = tensor("transpose_28")]; tensor input_33_cast_fp16 = reshape(shape = var_206, x = var_202_cast_fp16)[name = tensor("input_33_cast_fp16")]; tensor m_encoder_layer_1_attention_output_dense_weight_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_output_dense_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(45965056)))]; tensor m_encoder_layer_1_attention_output_dense_bias_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_output_dense_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(46489408)))]; tensor linear_9_cast_fp16 = linear(bias = m_encoder_layer_1_attention_output_dense_bias_to_fp16, weight = m_encoder_layer_1_attention_output_dense_weight_to_fp16, x = input_33_cast_fp16)[name = tensor("linear_9_cast_fp16")]; tensor input_37_cast_fp16 = add(x = linear_9_cast_fp16, y = input_27_cast_fp16)[name = tensor("input_37_cast_fp16")]; tensor input_39_axes_0 = const()[name = tensor("input_39_axes_0"), val = tensor([-1])]; tensor m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(46490496)))]; tensor m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor("m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(46491584)))]; tensor input_39_cast_fp16 = layer_norm(axes = input_39_axes_0, beta = m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16, x = input_37_cast_fp16)[name = tensor("input_39_cast_fp16")]; tensor m_encoder_layer_1_mlp_gated_layers_weight_to_fp16 = const()[name = tensor("m_encoder_layer_1_mlp_gated_layers_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(46492672)))]; tensor linear_10_cast_fp16 = linear(bias = linear_4_bias_0_to_fp16, weight = m_encoder_layer_1_mlp_gated_layers_weight_to_fp16, x = input_39_cast_fp16)[name = tensor("linear_10_cast_fp16")]; tensor input_41_begin_0 = const()[name = tensor("input_41_begin_0"), val = tensor([0, 0, 0])]; tensor input_41_end_0 = const()[name = tensor("input_41_end_0"), val = tensor([1, 512, 2048])]; tensor input_41_end_mask_0 = const()[name = tensor("input_41_end_mask_0"), val = tensor([true, true, false])]; tensor input_41_cast_fp16 = slice_by_index(begin = input_41_begin_0, end = input_41_end_0, end_mask = input_41_end_mask_0, x = linear_10_cast_fp16)[name = tensor("input_41_cast_fp16")]; tensor non_gated_3_begin_0 = const()[name = tensor("non_gated_3_begin_0"), val = tensor([0, 0, 2048])]; tensor non_gated_3_end_0 = const()[name = tensor("non_gated_3_end_0"), val = tensor([1, 512, 4096])]; tensor non_gated_3_end_mask_0 = const()[name = tensor("non_gated_3_end_mask_0"), val = tensor([true, true, true])]; tensor non_gated_3_cast_fp16 = slice_by_index(begin = non_gated_3_begin_0, end = non_gated_3_end_0, end_mask = non_gated_3_end_mask_0, x = linear_10_cast_fp16)[name = tensor("non_gated_3_cast_fp16")]; tensor var_230_mode_0 = const()[name = tensor("op_230_mode_0"), val = tensor("EXACT")]; tensor var_230_cast_fp16 = gelu(mode = var_230_mode_0, x = input_41_cast_fp16)[name = tensor("op_230_cast_fp16")]; tensor input_43_cast_fp16 = mul(x = var_230_cast_fp16, y = non_gated_3_cast_fp16)[name = tensor("input_43_cast_fp16")]; tensor m_encoder_layer_1_mlp_wo_weight_to_fp16 = const()[name = tensor("m_encoder_layer_1_mlp_wo_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(50687040)))]; tensor m_encoder_layer_1_mlp_wo_bias_to_fp16 = const()[name = tensor("m_encoder_layer_1_mlp_wo_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(52784256)))]; tensor linear_11_cast_fp16 = linear(bias = m_encoder_layer_1_mlp_wo_bias_to_fp16, weight = m_encoder_layer_1_mlp_wo_weight_to_fp16, x = input_43_cast_fp16)[name = tensor("linear_11_cast_fp16")]; tensor input_47_cast_fp16 = add(x = linear_11_cast_fp16, y = input_39_cast_fp16)[name = tensor("input_47_cast_fp16")]; tensor input_49_axes_0 = const()[name = tensor("input_49_axes_0"), val = tensor([-1])]; tensor m_encoder_layer_1_mlp_layernorm_weight_to_fp16 = const()[name = tensor("m_encoder_layer_1_mlp_layernorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(52785344)))]; tensor m_encoder_layer_1_mlp_layernorm_bias_to_fp16 = const()[name = tensor("m_encoder_layer_1_mlp_layernorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(52786432)))]; tensor input_49_cast_fp16 = layer_norm(axes = input_49_axes_0, beta = m_encoder_layer_1_mlp_layernorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_encoder_layer_1_mlp_layernorm_weight_to_fp16, x = input_47_cast_fp16)[name = tensor("input_49_cast_fp16")]; tensor m_encoder_layer_2_attention_self_query_weight_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_self_query_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(52787520)))]; tensor m_encoder_layer_2_attention_self_query_bias_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_self_query_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(53311872)))]; tensor linear_12_cast_fp16 = linear(bias = m_encoder_layer_2_attention_self_query_bias_to_fp16, weight = m_encoder_layer_2_attention_self_query_weight_to_fp16, x = input_49_cast_fp16)[name = tensor("linear_12_cast_fp16")]; tensor m_encoder_layer_2_attention_self_key_weight_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_self_key_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(53312960)))]; tensor m_encoder_layer_2_attention_self_key_bias_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_self_key_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(53837312)))]; tensor linear_13_cast_fp16 = linear(bias = m_encoder_layer_2_attention_self_key_bias_to_fp16, weight = m_encoder_layer_2_attention_self_key_weight_to_fp16, x = input_49_cast_fp16)[name = tensor("linear_13_cast_fp16")]; tensor var_256 = const()[name = tensor("op_256"), val = tensor([1, 512, 8, 64])]; tensor x_27_cast_fp16 = reshape(shape = var_256, x = linear_13_cast_fp16)[name = tensor("x_27_cast_fp16")]; tensor m_encoder_layer_2_attention_self_value_weight_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_self_value_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(53838400)))]; tensor m_encoder_layer_2_attention_self_value_bias_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_self_value_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(54362752)))]; tensor linear_14_cast_fp16 = linear(bias = m_encoder_layer_2_attention_self_value_bias_to_fp16, weight = m_encoder_layer_2_attention_self_value_weight_to_fp16, x = input_49_cast_fp16)[name = tensor("linear_14_cast_fp16")]; tensor var_265 = const()[name = tensor("op_265"), val = tensor([1, 512, 8, 64])]; tensor x_31_cast_fp16 = reshape(shape = var_265, x = linear_14_cast_fp16)[name = tensor("x_31_cast_fp16")]; tensor var_267 = const()[name = tensor("op_267"), val = tensor([0, 2, 1, 3])]; tensor var_271 = const()[name = tensor("op_271"), val = tensor([1, 512, 8, 64])]; tensor x_35_cast_fp16 = reshape(shape = var_271, x = linear_12_cast_fp16)[name = tensor("x_35_cast_fp16")]; tensor attention_scores_13_transpose_x_0 = const()[name = tensor("attention_scores_13_transpose_x_0"), val = tensor(false)]; tensor attention_scores_13_transpose_y_0 = const()[name = tensor("attention_scores_13_transpose_y_0"), val = tensor(false)]; tensor transpose_16_perm_0 = const()[name = tensor("transpose_16_perm_0"), val = tensor([0, 2, -3, -1])]; tensor transpose_17_perm_0 = const()[name = tensor("transpose_17_perm_0"), val = tensor([0, 2, -1, -3])]; tensor transpose_17 = transpose(perm = transpose_17_perm_0, x = x_27_cast_fp16)[name = tensor("transpose_25")]; tensor transpose_16 = transpose(perm = transpose_16_perm_0, x = x_35_cast_fp16)[name = tensor("transpose_26")]; tensor attention_scores_13_cast_fp16 = matmul(transpose_x = attention_scores_13_transpose_x_0, transpose_y = attention_scores_13_transpose_y_0, x = transpose_16, y = transpose_17)[name = tensor("attention_scores_13_cast_fp16")]; tensor _inversed_attention_scores_15_y_0_to_fp16 = const()[name = tensor("_inversed_attention_scores_15_y_0_to_fp16"), val = tensor(0x1p-3)]; tensor _inversed_attention_scores_15_cast_fp16 = mul(x = attention_scores_13_cast_fp16, y = _inversed_attention_scores_15_y_0_to_fp16)[name = tensor("_inversed_attention_scores_15_cast_fp16")]; tensor attention_scores_17_cast_fp16 = add(x = _inversed_attention_scores_15_cast_fp16, y = attention_mask_cast_fp16)[name = tensor("attention_scores_17_cast_fp16")]; tensor input_51_cast_fp16 = add(x = attention_scores_17_cast_fp16, y = bias_3_to_fp16)[name = tensor("input_51_cast_fp16")]; tensor input_53_cast_fp16 = softmax(axis = var_16, x = input_51_cast_fp16)[name = tensor("input_53_cast_fp16")]; tensor context_layer_9_transpose_x_0 = const()[name = tensor("context_layer_9_transpose_x_0"), val = tensor(false)]; tensor context_layer_9_transpose_y_0 = const()[name = tensor("context_layer_9_transpose_y_0"), val = tensor(false)]; tensor value_layer_5_cast_fp16 = transpose(perm = var_267, x = x_31_cast_fp16)[name = tensor("transpose_27")]; tensor context_layer_9_cast_fp16 = matmul(transpose_x = context_layer_9_transpose_x_0, transpose_y = context_layer_9_transpose_y_0, x = input_53_cast_fp16, y = value_layer_5_cast_fp16)[name = tensor("context_layer_9_cast_fp16")]; tensor var_284 = const()[name = tensor("op_284"), val = tensor([0, 2, 1, 3])]; tensor var_289 = const()[name = tensor("op_289"), val = tensor([1, 512, 512])]; tensor var_285_cast_fp16 = transpose(perm = var_284, x = context_layer_9_cast_fp16)[name = tensor("transpose_24")]; tensor input_55_cast_fp16 = reshape(shape = var_289, x = var_285_cast_fp16)[name = tensor("input_55_cast_fp16")]; tensor m_encoder_layer_2_attention_output_dense_weight_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_output_dense_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(54363840)))]; tensor m_encoder_layer_2_attention_output_dense_bias_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_output_dense_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(54888192)))]; tensor linear_15_cast_fp16 = linear(bias = m_encoder_layer_2_attention_output_dense_bias_to_fp16, weight = m_encoder_layer_2_attention_output_dense_weight_to_fp16, x = input_55_cast_fp16)[name = tensor("linear_15_cast_fp16")]; tensor input_59_cast_fp16 = add(x = linear_15_cast_fp16, y = input_49_cast_fp16)[name = tensor("input_59_cast_fp16")]; tensor input_61_axes_0 = const()[name = tensor("input_61_axes_0"), val = tensor([-1])]; tensor m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(54889280)))]; tensor m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor("m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(54890368)))]; tensor input_61_cast_fp16 = layer_norm(axes = input_61_axes_0, beta = m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16, x = input_59_cast_fp16)[name = tensor("input_61_cast_fp16")]; tensor m_encoder_layer_2_mlp_gated_layers_weight_to_fp16 = const()[name = tensor("m_encoder_layer_2_mlp_gated_layers_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(54891456)))]; tensor linear_16_cast_fp16 = linear(bias = linear_4_bias_0_to_fp16, weight = m_encoder_layer_2_mlp_gated_layers_weight_to_fp16, x = input_61_cast_fp16)[name = tensor("linear_16_cast_fp16")]; tensor input_63_begin_0 = const()[name = tensor("input_63_begin_0"), val = tensor([0, 0, 0])]; tensor input_63_end_0 = const()[name = tensor("input_63_end_0"), val = tensor([1, 512, 2048])]; tensor input_63_end_mask_0 = const()[name = tensor("input_63_end_mask_0"), val = tensor([true, true, false])]; tensor input_63_cast_fp16 = slice_by_index(begin = input_63_begin_0, end = input_63_end_0, end_mask = input_63_end_mask_0, x = linear_16_cast_fp16)[name = tensor("input_63_cast_fp16")]; tensor non_gated_5_begin_0 = const()[name = tensor("non_gated_5_begin_0"), val = tensor([0, 0, 2048])]; tensor non_gated_5_end_0 = const()[name = tensor("non_gated_5_end_0"), val = tensor([1, 512, 4096])]; tensor non_gated_5_end_mask_0 = const()[name = tensor("non_gated_5_end_mask_0"), val = tensor([true, true, true])]; tensor non_gated_5_cast_fp16 = slice_by_index(begin = non_gated_5_begin_0, end = non_gated_5_end_0, end_mask = non_gated_5_end_mask_0, x = linear_16_cast_fp16)[name = tensor("non_gated_5_cast_fp16")]; tensor var_313_mode_0 = const()[name = tensor("op_313_mode_0"), val = tensor("EXACT")]; tensor var_313_cast_fp16 = gelu(mode = var_313_mode_0, x = input_63_cast_fp16)[name = tensor("op_313_cast_fp16")]; tensor input_65_cast_fp16 = mul(x = var_313_cast_fp16, y = non_gated_5_cast_fp16)[name = tensor("input_65_cast_fp16")]; tensor m_encoder_layer_2_mlp_wo_weight_to_fp16 = const()[name = tensor("m_encoder_layer_2_mlp_wo_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(59085824)))]; tensor m_encoder_layer_2_mlp_wo_bias_to_fp16 = const()[name = tensor("m_encoder_layer_2_mlp_wo_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(61183040)))]; tensor linear_17_cast_fp16 = linear(bias = m_encoder_layer_2_mlp_wo_bias_to_fp16, weight = m_encoder_layer_2_mlp_wo_weight_to_fp16, x = input_65_cast_fp16)[name = tensor("linear_17_cast_fp16")]; tensor input_69_cast_fp16 = add(x = linear_17_cast_fp16, y = input_61_cast_fp16)[name = tensor("input_69_cast_fp16")]; tensor input_71_axes_0 = const()[name = tensor("input_71_axes_0"), val = tensor([-1])]; tensor m_encoder_layer_2_mlp_layernorm_weight_to_fp16 = const()[name = tensor("m_encoder_layer_2_mlp_layernorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(61184128)))]; tensor m_encoder_layer_2_mlp_layernorm_bias_to_fp16 = const()[name = tensor("m_encoder_layer_2_mlp_layernorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(61185216)))]; tensor input_71_cast_fp16 = layer_norm(axes = input_71_axes_0, beta = m_encoder_layer_2_mlp_layernorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_encoder_layer_2_mlp_layernorm_weight_to_fp16, x = input_69_cast_fp16)[name = tensor("input_71_cast_fp16")]; tensor m_encoder_layer_3_attention_self_query_weight_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_self_query_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(61186304)))]; tensor m_encoder_layer_3_attention_self_query_bias_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_self_query_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(61710656)))]; tensor linear_18_cast_fp16 = linear(bias = m_encoder_layer_3_attention_self_query_bias_to_fp16, weight = m_encoder_layer_3_attention_self_query_weight_to_fp16, x = input_71_cast_fp16)[name = tensor("linear_18_cast_fp16")]; tensor m_encoder_layer_3_attention_self_key_weight_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_self_key_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(61711744)))]; tensor m_encoder_layer_3_attention_self_key_bias_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_self_key_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(62236096)))]; tensor linear_19_cast_fp16 = linear(bias = m_encoder_layer_3_attention_self_key_bias_to_fp16, weight = m_encoder_layer_3_attention_self_key_weight_to_fp16, x = input_71_cast_fp16)[name = tensor("linear_19_cast_fp16")]; tensor var_339 = const()[name = tensor("op_339"), val = tensor([1, 512, 8, 64])]; tensor x_39_cast_fp16 = reshape(shape = var_339, x = linear_19_cast_fp16)[name = tensor("x_39_cast_fp16")]; tensor m_encoder_layer_3_attention_self_value_weight_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_self_value_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(62237184)))]; tensor m_encoder_layer_3_attention_self_value_bias_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_self_value_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(62761536)))]; tensor linear_20_cast_fp16 = linear(bias = m_encoder_layer_3_attention_self_value_bias_to_fp16, weight = m_encoder_layer_3_attention_self_value_weight_to_fp16, x = input_71_cast_fp16)[name = tensor("linear_20_cast_fp16")]; tensor var_348 = const()[name = tensor("op_348"), val = tensor([1, 512, 8, 64])]; tensor x_43_cast_fp16 = reshape(shape = var_348, x = linear_20_cast_fp16)[name = tensor("x_43_cast_fp16")]; tensor var_350 = const()[name = tensor("op_350"), val = tensor([0, 2, 1, 3])]; tensor var_354 = const()[name = tensor("op_354"), val = tensor([1, 512, 8, 64])]; tensor x_cast_fp16 = reshape(shape = var_354, x = linear_18_cast_fp16)[name = tensor("x_cast_fp16")]; tensor attention_scores_19_transpose_x_0 = const()[name = tensor("attention_scores_19_transpose_x_0"), val = tensor(false)]; tensor attention_scores_19_transpose_y_0 = const()[name = tensor("attention_scores_19_transpose_y_0"), val = tensor(false)]; tensor transpose_18_perm_0 = const()[name = tensor("transpose_18_perm_0"), val = tensor([0, 2, -3, -1])]; tensor transpose_19_perm_0 = const()[name = tensor("transpose_19_perm_0"), val = tensor([0, 2, -1, -3])]; tensor transpose_19 = transpose(perm = transpose_19_perm_0, x = x_39_cast_fp16)[name = tensor("transpose_21")]; tensor transpose_18 = transpose(perm = transpose_18_perm_0, x = x_cast_fp16)[name = tensor("transpose_22")]; tensor attention_scores_19_cast_fp16 = matmul(transpose_x = attention_scores_19_transpose_x_0, transpose_y = attention_scores_19_transpose_y_0, x = transpose_18, y = transpose_19)[name = tensor("attention_scores_19_cast_fp16")]; tensor _inversed_attention_scores_21_y_0_to_fp16 = const()[name = tensor("_inversed_attention_scores_21_y_0_to_fp16"), val = tensor(0x1p-3)]; tensor _inversed_attention_scores_21_cast_fp16 = mul(x = attention_scores_19_cast_fp16, y = _inversed_attention_scores_21_y_0_to_fp16)[name = tensor("_inversed_attention_scores_21_cast_fp16")]; tensor attention_scores_cast_fp16 = add(x = _inversed_attention_scores_21_cast_fp16, y = attention_mask_cast_fp16)[name = tensor("attention_scores_cast_fp16")]; tensor input_73_cast_fp16 = add(x = attention_scores_cast_fp16, y = bias_3_to_fp16)[name = tensor("input_73_cast_fp16")]; tensor input_75_cast_fp16 = softmax(axis = var_16, x = input_73_cast_fp16)[name = tensor("input_75_cast_fp16")]; tensor context_layer_13_transpose_x_0 = const()[name = tensor("context_layer_13_transpose_x_0"), val = tensor(false)]; tensor context_layer_13_transpose_y_0 = const()[name = tensor("context_layer_13_transpose_y_0"), val = tensor(false)]; tensor value_layer_cast_fp16 = transpose(perm = var_350, x = x_43_cast_fp16)[name = tensor("transpose_23")]; tensor context_layer_13_cast_fp16 = matmul(transpose_x = context_layer_13_transpose_x_0, transpose_y = context_layer_13_transpose_y_0, x = input_75_cast_fp16, y = value_layer_cast_fp16)[name = tensor("context_layer_13_cast_fp16")]; tensor var_367 = const()[name = tensor("op_367"), val = tensor([0, 2, 1, 3])]; tensor var_372 = const()[name = tensor("op_372"), val = tensor([1, 512, 512])]; tensor var_368_cast_fp16 = transpose(perm = var_367, x = context_layer_13_cast_fp16)[name = tensor("transpose_20")]; tensor input_77_cast_fp16 = reshape(shape = var_372, x = var_368_cast_fp16)[name = tensor("input_77_cast_fp16")]; tensor m_encoder_layer_3_attention_output_dense_weight_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_output_dense_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(62762624)))]; tensor m_encoder_layer_3_attention_output_dense_bias_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_output_dense_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(63286976)))]; tensor linear_21_cast_fp16 = linear(bias = m_encoder_layer_3_attention_output_dense_bias_to_fp16, weight = m_encoder_layer_3_attention_output_dense_weight_to_fp16, x = input_77_cast_fp16)[name = tensor("linear_21_cast_fp16")]; tensor input_81_cast_fp16 = add(x = linear_21_cast_fp16, y = input_71_cast_fp16)[name = tensor("input_81_cast_fp16")]; tensor input_83_axes_0 = const()[name = tensor("input_83_axes_0"), val = tensor([-1])]; tensor m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(63288064)))]; tensor m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor("m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(63289152)))]; tensor input_83_cast_fp16 = layer_norm(axes = input_83_axes_0, beta = m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16, x = input_81_cast_fp16)[name = tensor("input_83_cast_fp16")]; tensor m_encoder_layer_3_mlp_gated_layers_weight_to_fp16 = const()[name = tensor("m_encoder_layer_3_mlp_gated_layers_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(63290240)))]; tensor linear_22_cast_fp16 = linear(bias = linear_4_bias_0_to_fp16, weight = m_encoder_layer_3_mlp_gated_layers_weight_to_fp16, x = input_83_cast_fp16)[name = tensor("linear_22_cast_fp16")]; tensor input_85_begin_0 = const()[name = tensor("input_85_begin_0"), val = tensor([0, 0, 0])]; tensor input_85_end_0 = const()[name = tensor("input_85_end_0"), val = tensor([1, 512, 2048])]; tensor input_85_end_mask_0 = const()[name = tensor("input_85_end_mask_0"), val = tensor([true, true, false])]; tensor input_85_cast_fp16 = slice_by_index(begin = input_85_begin_0, end = input_85_end_0, end_mask = input_85_end_mask_0, x = linear_22_cast_fp16)[name = tensor("input_85_cast_fp16")]; tensor non_gated_begin_0 = const()[name = tensor("non_gated_begin_0"), val = tensor([0, 0, 2048])]; tensor non_gated_end_0 = const()[name = tensor("non_gated_end_0"), val = tensor([1, 512, 4096])]; tensor non_gated_end_mask_0 = const()[name = tensor("non_gated_end_mask_0"), val = tensor([true, true, true])]; tensor non_gated_cast_fp16 = slice_by_index(begin = non_gated_begin_0, end = non_gated_end_0, end_mask = non_gated_end_mask_0, x = linear_22_cast_fp16)[name = tensor("non_gated_cast_fp16")]; tensor var_396_mode_0 = const()[name = tensor("op_396_mode_0"), val = tensor("EXACT")]; tensor var_396_cast_fp16 = gelu(mode = var_396_mode_0, x = input_85_cast_fp16)[name = tensor("op_396_cast_fp16")]; tensor input_87_cast_fp16 = mul(x = var_396_cast_fp16, y = non_gated_cast_fp16)[name = tensor("input_87_cast_fp16")]; tensor m_encoder_layer_3_mlp_wo_weight_to_fp16 = const()[name = tensor("m_encoder_layer_3_mlp_wo_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(67484608)))]; tensor m_encoder_layer_3_mlp_wo_bias_to_fp16 = const()[name = tensor("m_encoder_layer_3_mlp_wo_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(69581824)))]; tensor linear_23_cast_fp16 = linear(bias = m_encoder_layer_3_mlp_wo_bias_to_fp16, weight = m_encoder_layer_3_mlp_wo_weight_to_fp16, x = input_87_cast_fp16)[name = tensor("linear_23_cast_fp16")]; tensor input_91_cast_fp16 = add(x = linear_23_cast_fp16, y = input_83_cast_fp16)[name = tensor("input_91_cast_fp16")]; tensor hidden_states_axes_0 = const()[name = tensor("hidden_states_axes_0"), val = tensor([-1])]; tensor m_encoder_layer_3_mlp_layernorm_weight_to_fp16 = const()[name = tensor("m_encoder_layer_3_mlp_layernorm_weight_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(69582912)))]; tensor m_encoder_layer_3_mlp_layernorm_bias_to_fp16 = const()[name = tensor("m_encoder_layer_3_mlp_layernorm_bias_to_fp16"), val = tensor(BLOBFILE(path = tensor("@model_path/weights/weight.bin"), offset = tensor(69584000)))]; tensor hidden_states_cast_fp16 = layer_norm(axes = hidden_states_axes_0, beta = m_encoder_layer_3_mlp_layernorm_bias_to_fp16, epsilon = var_18_to_fp16, gamma = m_encoder_layer_3_mlp_layernorm_weight_to_fp16, x = input_91_cast_fp16)[name = tensor("hidden_states_cast_fp16")]; tensor var_408_axes_0 = const()[name = tensor("op_408_axes_0"), val = tensor([-1])]; tensor var_408 = expand_dims(axes = var_408_axes_0, x = cast_0)[name = tensor("op_408")]; tensor cast_28_to_fp16_dtype_0 = const()[name = tensor("cast_28_to_fp16_dtype_0"), val = tensor("fp16")]; tensor var_408_to_fp16 = cast(dtype = cast_28_to_fp16_dtype_0, x = var_408)[name = tensor("cast_34")]; tensor var_414_cast_fp16 = mul(x = hidden_states_cast_fp16, y = var_408_to_fp16)[name = tensor("op_414_cast_fp16")]; tensor var_419_axes_0 = const()[name = tensor("op_419_axes_0"), val = tensor([1])]; tensor var_419_keep_dims_0 = const()[name = tensor("op_419_keep_dims_0"), val = tensor(false)]; tensor var_419_cast_fp16 = reduce_sum(axes = var_419_axes_0, keep_dims = var_419_keep_dims_0, x = var_414_cast_fp16)[name = tensor("op_419_cast_fp16")]; tensor var_424_axes_0 = const()[name = tensor("op_424_axes_0"), val = tensor([1])]; tensor var_424_keep_dims_0 = const()[name = tensor("op_424_keep_dims_0"), val = tensor(false)]; tensor var_424_cast_fp16 = reduce_sum(axes = var_424_axes_0, keep_dims = var_424_keep_dims_0, x = var_408_to_fp16)[name = tensor("op_424_cast_fp16")]; tensor var_425_to_fp16 = const()[name = tensor("op_425_to_fp16"), val = tensor(0x1p-24)]; tensor const_35_to_fp16 = const()[name = tensor("const_35_to_fp16"), val = tensor(inf)]; tensor clip_0_cast_fp16 = clip(alpha = var_425_to_fp16, beta = const_35_to_fp16, x = var_424_cast_fp16)[name = tensor("clip_0_cast_fp16")]; tensor input_cast_fp16 = real_div(x = var_419_cast_fp16, y = clip_0_cast_fp16)[name = tensor("input_cast_fp16")]; tensor var_431 = const()[name = tensor("op_431"), val = tensor([-1])]; tensor var_432 = const()[name = tensor("op_432"), val = tensor(true)]; tensor var_434_cast_fp16 = reduce_l2_norm(axes = var_431, keep_dims = var_432, x = input_cast_fp16)[name = tensor("op_434_cast_fp16")]; tensor var_435_to_fp16 = const()[name = tensor("op_435_to_fp16"), val = tensor(0x1p-24)]; tensor var_436_cast_fp16 = maximum(x = var_434_cast_fp16, y = var_435_to_fp16)[name = tensor("op_436_cast_fp16")]; tensor denom_reps_0 = const()[name = tensor("denom_reps_0"), val = tensor([1, 512])]; tensor denom_cast_fp16 = tile(reps = denom_reps_0, x = var_436_cast_fp16)[name = tensor("denom_cast_fp16")]; tensor embedding = real_div(x = input_cast_fp16, y = denom_cast_fp16)[name = tensor("op_438_cast_fp16")]; } -> (embedding); }