DoppelApp commited on
Commit
5dd41aa
·
verified ·
1 Parent(s): b833622

Upload folder using huggingface_hub

Browse files
jina_coreml_manifest.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": 1,
3
+ "source_model": "jinaai/jina-embeddings-v2-small-en",
4
+ "conversion": "Core ML MLProgram FP16 static-shape sequence buckets",
5
+ "minimum_macos": "14.0",
6
+ "preferred_compute_units": "cpuAndNeuralEngine",
7
+ "input": "input_ids",
8
+ "input_dtype": "int32",
9
+ "output": "embedding",
10
+ "output_dimensions": 512,
11
+ "artifacts": [
12
+ {
13
+ "sequence_length": 128,
14
+ "artifact": "jina_embedding_128.mlmodelc",
15
+ "sha256_tree": "5e8fd8d4edd9d2fdb832d0688b59afc15a47c592bc2b3050298437a88dc72721"
16
+ },
17
+ {
18
+ "sequence_length": 256,
19
+ "artifact": "jina_embedding_256.mlmodelc",
20
+ "sha256_tree": "dd003d5c6ac01f7ae06e7c46293820cac449609f997caeacf5206052d3ef8072"
21
+ },
22
+ {
23
+ "sequence_length": 512,
24
+ "artifact": "jina_embedding.mlmodelc",
25
+ "sha256_tree": "c4b2f915eb53dc2c596603ec02f71275e31ad507208082acb52431fd3127937f"
26
+ }
27
+ ]
28
+ }
jina_embedding.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23f21dc172e5c0428832d71f335976ab260c5a2d9e3fb28cf61959ace7786004
3
+ size 243
jina_embedding.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a379f66d023f68191f3beafde7450fd1ef6f84bdc76af3a663c22663aedb581
3
+ size 318
jina_embedding.mlmodelc/metadata.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Float16",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 512)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 512]",
13
+ "name" : "embedding",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 8,
21
+ "mlProgramOperationTypeHistogram" : {
22
+ "Ios17.mul" : 10,
23
+ "Ios17.notEqual" : 1,
24
+ "Ios17.reshape" : 16,
25
+ "Ios16.softmax" : 4,
26
+ "Ios17.matmul" : 8,
27
+ "Ios17.maximum" : 1,
28
+ "Ios17.transpose" : 16,
29
+ "Ios17.expandDims" : 3,
30
+ "Ios17.add" : 17,
31
+ "Tile" : 1,
32
+ "Ios17.sliceByIndex" : 8,
33
+ "Ios16.reduceSum" : 2,
34
+ "Ios17.gather" : 1,
35
+ "Ios17.layerNorm" : 9,
36
+ "Ios17.clip" : 1,
37
+ "Ios17.sub" : 1,
38
+ "Ios16.gelu" : 4,
39
+ "Ios17.cast" : 4,
40
+ "Ios17.realDiv" : 2,
41
+ "Ios17.linear" : 24,
42
+ "Ios16.reduceL2Norm" : 1
43
+ },
44
+ "computePrecision" : "Mixed (Float16, Int16, Int32)",
45
+ "isUpdatable" : "0",
46
+ "stateSchema" : [
47
+
48
+ ],
49
+ "availability" : {
50
+ "macOS" : "14.0",
51
+ "tvOS" : "17.0",
52
+ "visionOS" : "1.0",
53
+ "watchOS" : "10.0",
54
+ "iOS" : "17.0",
55
+ "macCatalyst" : "17.0"
56
+ },
57
+ "modelType" : {
58
+ "name" : "MLModelType_mlProgram"
59
+ },
60
+ "userDefinedMetadata" : {
61
+ "com.github.apple.coremltools.source_dialect" : "TorchScript",
62
+ "com.github.apple.coremltools.version" : "8.3.0",
63
+ "com.github.apple.coremltools.source" : "torch==2.5.0"
64
+ },
65
+ "inputSchema" : [
66
+ {
67
+ "hasShapeFlexibility" : "0",
68
+ "isOptional" : "0",
69
+ "dataType" : "Int32",
70
+ "formattedType" : "MultiArray (Int32 1 × 512)",
71
+ "shortDescription" : "",
72
+ "shape" : "[1, 512]",
73
+ "name" : "input_ids",
74
+ "type" : "MultiArray"
75
+ }
76
+ ],
77
+ "generatedClassName" : "jina_embedding_ane",
78
+ "method" : "predict"
79
+ }
80
+ ]
jina_embedding.mlmodelc/model.mil ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ program(1.0)
2
+ [buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"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"}})]
3
+ {
4
+ func main<ios17>(tensor<int32, [1, 512]> input_ids) {
5
+ tensor<int32, []> var_3 = const()[name = tensor<string, []>("op_3"), val = tensor<int32, []>(0)];
6
+ tensor<bool, [1, 512]> var_4 = not_equal(x = input_ids, y = var_3)[name = tensor<string, []>("op_4")];
7
+ tensor<string, []> cast_0_dtype_0 = const()[name = tensor<string, []>("cast_0_dtype_0"), val = tensor<string, []>("int32")];
8
+ tensor<int32, []> var_16 = const()[name = tensor<string, []>("op_16"), val = tensor<int32, []>(-1)];
9
+ tensor<int32, [1]> var_41_axes_0 = const()[name = tensor<string, []>("op_41_axes_0"), val = tensor<int32, [1]>([1])];
10
+ tensor<int32, [1, 512]> cast_0 = cast(dtype = cast_0_dtype_0, x = var_4)[name = tensor<string, []>("cast_37")];
11
+ tensor<int32, [1, 1, 512]> var_41 = expand_dims(axes = var_41_axes_0, x = cast_0)[name = tensor<string, []>("op_41")];
12
+ tensor<int32, [1]> var_42_axes_0 = const()[name = tensor<string, []>("op_42_axes_0"), val = tensor<int32, [1]>([2])];
13
+ tensor<int32, [1, 1, 1, 512]> var_42 = expand_dims(axes = var_42_axes_0, x = var_41)[name = tensor<string, []>("op_42")];
14
+ tensor<fp16, []> var_21_to_fp16 = const()[name = tensor<string, []>("op_21_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
15
+ tensor<string, []> cast_1_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_1_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
16
+ tensor<fp16, [1, 1, 1, 512]> var_42_to_fp16 = cast(dtype = cast_1_to_fp16_dtype_0, x = var_42)[name = tensor<string, []>("cast_36")];
17
+ tensor<fp16, [1, 1, 1, 512]> var_45_cast_fp16 = sub(x = var_21_to_fp16, y = var_42_to_fp16)[name = tensor<string, []>("op_45_cast_fp16")];
18
+ tensor<fp16, []> var_46_to_fp16 = const()[name = tensor<string, []>("op_46_to_fp16"), val = tensor<fp16, []>(-0x1.d4cp+14)];
19
+ tensor<fp16, [1, 1, 1, 512]> attention_mask_cast_fp16 = mul(x = var_45_cast_fp16, y = var_46_to_fp16)[name = tensor<string, []>("attention_mask_cast_fp16")];
20
+ tensor<int32, []> inputs_embeds_axis_0 = const()[name = tensor<string, []>("inputs_embeds_axis_0"), val = tensor<int32, []>(0)];
21
+ tensor<int32, []> inputs_embeds_batch_dims_0 = const()[name = tensor<string, []>("inputs_embeds_batch_dims_0"), val = tensor<int32, []>(0)];
22
+ tensor<bool, []> inputs_embeds_validate_indices_0 = const()[name = tensor<string, []>("inputs_embeds_validate_indices_0"), val = tensor<bool, []>(false)];
23
+ tensor<fp16, [30528, 512]> m_embeddings_word_embeddings_weight_to_fp16 = const()[name = tensor<string, []>("m_embeddings_word_embeddings_weight_to_fp16"), val = tensor<fp16, [30528, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(64)))];
24
+ tensor<string, []> input_ids_to_int16_dtype_0 = const()[name = tensor<string, []>("input_ids_to_int16_dtype_0"), val = tensor<string, []>("int16")];
25
+ tensor<int16, [1, 512]> input_ids_to_int16 = cast(dtype = input_ids_to_int16_dtype_0, x = input_ids)[name = tensor<string, []>("cast_35")];
26
+ tensor<fp16, [1, 512, 512]> 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<string, []>("inputs_embeds_cast_fp16_cast_uint16")];
27
+ tensor<fp16, [1, 512, 512]> token_type_embeddings_1_to_fp16 = const()[name = tensor<string, []>("token_type_embeddings_1_to_fp16"), val = tensor<fp16, [1, 512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31260800)))];
28
+ tensor<fp16, [1, 512, 512]> input_3_cast_fp16 = add(x = inputs_embeds_cast_fp16_cast_uint16, y = token_type_embeddings_1_to_fp16)[name = tensor<string, []>("input_3_cast_fp16")];
29
+ tensor<int32, [1]> input_5_axes_0 = const()[name = tensor<string, []>("input_5_axes_0"), val = tensor<int32, [1]>([-1])];
30
+ tensor<fp16, [512]> m_embeddings_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_embeddings_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31785152)))];
31
+ tensor<fp16, [512]> m_embeddings_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_embeddings_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31786240)))];
32
+ tensor<fp16, []> var_18_to_fp16 = const()[name = tensor<string, []>("op_18_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
33
+ tensor<fp16, [1, 512, 512]> 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<string, []>("input_5_cast_fp16")];
34
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31787328)))];
35
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32311680)))];
36
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_0_cast_fp16")];
37
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32312768)))];
38
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32837120)))];
39
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_1_cast_fp16")];
40
+ tensor<int32, [4]> var_90 = const()[name = tensor<string, []>("op_90"), val = tensor<int32, [4]>([1, 512, 8, 64])];
41
+ tensor<fp16, [1, 512, 8, 64]> x_3_cast_fp16 = reshape(shape = var_90, x = linear_1_cast_fp16)[name = tensor<string, []>("x_3_cast_fp16")];
42
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32838208)))];
43
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33362560)))];
44
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_2_cast_fp16")];
45
+ tensor<int32, [4]> var_99 = const()[name = tensor<string, []>("op_99"), val = tensor<int32, [4]>([1, 512, 8, 64])];
46
+ tensor<fp16, [1, 512, 8, 64]> x_7_cast_fp16 = reshape(shape = var_99, x = linear_2_cast_fp16)[name = tensor<string, []>("x_7_cast_fp16")];
47
+ tensor<int32, [4]> var_101 = const()[name = tensor<string, []>("op_101"), val = tensor<int32, [4]>([0, 2, 1, 3])];
48
+ tensor<int32, [4]> var_105 = const()[name = tensor<string, []>("op_105"), val = tensor<int32, [4]>([1, 512, 8, 64])];
49
+ tensor<fp16, [1, 512, 8, 64]> x_11_cast_fp16 = reshape(shape = var_105, x = linear_0_cast_fp16)[name = tensor<string, []>("x_11_cast_fp16")];
50
+ tensor<bool, []> attention_scores_1_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_1_transpose_x_0"), val = tensor<bool, []>(false)];
51
+ tensor<bool, []> attention_scores_1_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_1_transpose_y_0"), val = tensor<bool, []>(false)];
52
+ tensor<int32, [4]> transpose_12_perm_0 = const()[name = tensor<string, []>("transpose_12_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
53
+ tensor<int32, [4]> transpose_13_perm_0 = const()[name = tensor<string, []>("transpose_13_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
54
+ tensor<fp16, [1, 8, 64, 512]> transpose_13 = transpose(perm = transpose_13_perm_0, x = x_3_cast_fp16)[name = tensor<string, []>("transpose_33")];
55
+ tensor<fp16, [1, 8, 512, 64]> transpose_12 = transpose(perm = transpose_12_perm_0, x = x_11_cast_fp16)[name = tensor<string, []>("transpose_34")];
56
+ tensor<fp16, [1, 8, 512, 512]> 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<string, []>("attention_scores_1_cast_fp16")];
57
+ tensor<fp16, []> _inversed_attention_scores_3_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_3_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
58
+ tensor<fp16, [1, 8, 512, 512]> _inversed_attention_scores_3_cast_fp16 = mul(x = attention_scores_1_cast_fp16, y = _inversed_attention_scores_3_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_3_cast_fp16")];
59
+ tensor<fp16, [1, 8, 512, 512]> attention_scores_5_cast_fp16 = add(x = _inversed_attention_scores_3_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_5_cast_fp16")];
60
+ tensor<fp16, [1, 8, 512, 512]> bias_3_to_fp16 = const()[name = tensor<string, []>("bias_3_to_fp16"), val = tensor<fp16, [1, 8, 512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33363648)))];
61
+ tensor<fp16, [1, 8, 512, 512]> input_7_cast_fp16 = add(x = attention_scores_5_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_7_cast_fp16")];
62
+ tensor<fp16, [1, 8, 512, 512]> input_9_cast_fp16 = softmax(axis = var_16, x = input_7_cast_fp16)[name = tensor<string, []>("input_9_cast_fp16")];
63
+ tensor<bool, []> context_layer_1_transpose_x_0 = const()[name = tensor<string, []>("context_layer_1_transpose_x_0"), val = tensor<bool, []>(false)];
64
+ tensor<bool, []> context_layer_1_transpose_y_0 = const()[name = tensor<string, []>("context_layer_1_transpose_y_0"), val = tensor<bool, []>(false)];
65
+ tensor<fp16, [1, 8, 512, 64]> value_layer_1_cast_fp16 = transpose(perm = var_101, x = x_7_cast_fp16)[name = tensor<string, []>("transpose_35")];
66
+ tensor<fp16, [1, 8, 512, 64]> 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<string, []>("context_layer_1_cast_fp16")];
67
+ tensor<int32, [4]> var_118 = const()[name = tensor<string, []>("op_118"), val = tensor<int32, [4]>([0, 2, 1, 3])];
68
+ tensor<int32, [3]> var_123 = const()[name = tensor<string, []>("op_123"), val = tensor<int32, [3]>([1, 512, 512])];
69
+ tensor<fp16, [1, 512, 8, 64]> var_119_cast_fp16 = transpose(perm = var_118, x = context_layer_1_cast_fp16)[name = tensor<string, []>("transpose_32")];
70
+ tensor<fp16, [1, 512, 512]> input_11_cast_fp16 = reshape(shape = var_123, x = var_119_cast_fp16)[name = tensor<string, []>("input_11_cast_fp16")];
71
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(37558016)))];
72
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(38082368)))];
73
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_3_cast_fp16")];
74
+ tensor<fp16, [1, 512, 512]> input_15_cast_fp16 = add(x = linear_3_cast_fp16, y = input_5_cast_fp16)[name = tensor<string, []>("input_15_cast_fp16")];
75
+ tensor<int32, [1]> input_17_axes_0 = const()[name = tensor<string, []>("input_17_axes_0"), val = tensor<int32, [1]>([-1])];
76
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(38083456)))];
77
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(38084544)))];
78
+ tensor<fp16, [1, 512, 512]> 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<string, []>("input_17_cast_fp16")];
79
+ tensor<fp16, [4096, 512]> m_encoder_layer_0_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(38085632)))];
80
+ tensor<fp16, [4096]> linear_4_bias_0_to_fp16 = const()[name = tensor<string, []>("linear_4_bias_0_to_fp16"), val = tensor<fp16, [4096]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42280000)))];
81
+ tensor<fp16, [1, 512, 4096]> 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<string, []>("linear_4_cast_fp16")];
82
+ tensor<int32, [3]> input_19_begin_0 = const()[name = tensor<string, []>("input_19_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
83
+ tensor<int32, [3]> input_19_end_0 = const()[name = tensor<string, []>("input_19_end_0"), val = tensor<int32, [3]>([1, 512, 2048])];
84
+ tensor<bool, [3]> input_19_end_mask_0 = const()[name = tensor<string, []>("input_19_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
85
+ tensor<fp16, [1, 512, 2048]> 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<string, []>("input_19_cast_fp16")];
86
+ tensor<int32, [3]> non_gated_1_begin_0 = const()[name = tensor<string, []>("non_gated_1_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
87
+ tensor<int32, [3]> non_gated_1_end_0 = const()[name = tensor<string, []>("non_gated_1_end_0"), val = tensor<int32, [3]>([1, 512, 4096])];
88
+ tensor<bool, [3]> non_gated_1_end_mask_0 = const()[name = tensor<string, []>("non_gated_1_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
89
+ tensor<fp16, [1, 512, 2048]> 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<string, []>("non_gated_1_cast_fp16")];
90
+ tensor<string, []> var_147_mode_0 = const()[name = tensor<string, []>("op_147_mode_0"), val = tensor<string, []>("EXACT")];
91
+ tensor<fp16, [1, 512, 2048]> var_147_cast_fp16 = gelu(mode = var_147_mode_0, x = input_19_cast_fp16)[name = tensor<string, []>("op_147_cast_fp16")];
92
+ tensor<fp16, [1, 512, 2048]> input_21_cast_fp16 = mul(x = var_147_cast_fp16, y = non_gated_1_cast_fp16)[name = tensor<string, []>("input_21_cast_fp16")];
93
+ tensor<fp16, [512, 2048]> m_encoder_layer_0_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42288256)))];
94
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(44385472)))];
95
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_5_cast_fp16")];
96
+ tensor<fp16, [1, 512, 512]> input_25_cast_fp16 = add(x = linear_5_cast_fp16, y = input_17_cast_fp16)[name = tensor<string, []>("input_25_cast_fp16")];
97
+ tensor<int32, [1]> input_27_axes_0 = const()[name = tensor<string, []>("input_27_axes_0"), val = tensor<int32, [1]>([-1])];
98
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(44386560)))];
99
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(44387648)))];
100
+ tensor<fp16, [1, 512, 512]> 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<string, []>("input_27_cast_fp16")];
101
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(44388736)))];
102
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(44913088)))];
103
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_6_cast_fp16")];
104
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(44914176)))];
105
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(45438528)))];
106
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_7_cast_fp16")];
107
+ tensor<int32, [4]> var_173 = const()[name = tensor<string, []>("op_173"), val = tensor<int32, [4]>([1, 512, 8, 64])];
108
+ tensor<fp16, [1, 512, 8, 64]> x_15_cast_fp16 = reshape(shape = var_173, x = linear_7_cast_fp16)[name = tensor<string, []>("x_15_cast_fp16")];
109
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(45439616)))];
110
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(45963968)))];
111
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_8_cast_fp16")];
112
+ tensor<int32, [4]> var_182 = const()[name = tensor<string, []>("op_182"), val = tensor<int32, [4]>([1, 512, 8, 64])];
113
+ tensor<fp16, [1, 512, 8, 64]> x_19_cast_fp16 = reshape(shape = var_182, x = linear_8_cast_fp16)[name = tensor<string, []>("x_19_cast_fp16")];
114
+ tensor<int32, [4]> var_184 = const()[name = tensor<string, []>("op_184"), val = tensor<int32, [4]>([0, 2, 1, 3])];
115
+ tensor<int32, [4]> var_188 = const()[name = tensor<string, []>("op_188"), val = tensor<int32, [4]>([1, 512, 8, 64])];
116
+ tensor<fp16, [1, 512, 8, 64]> x_23_cast_fp16 = reshape(shape = var_188, x = linear_6_cast_fp16)[name = tensor<string, []>("x_23_cast_fp16")];
117
+ tensor<bool, []> attention_scores_7_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_7_transpose_x_0"), val = tensor<bool, []>(false)];
118
+ tensor<bool, []> attention_scores_7_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_7_transpose_y_0"), val = tensor<bool, []>(false)];
119
+ tensor<int32, [4]> transpose_14_perm_0 = const()[name = tensor<string, []>("transpose_14_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
120
+ tensor<int32, [4]> transpose_15_perm_0 = const()[name = tensor<string, []>("transpose_15_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
121
+ tensor<fp16, [1, 8, 64, 512]> transpose_15 = transpose(perm = transpose_15_perm_0, x = x_15_cast_fp16)[name = tensor<string, []>("transpose_29")];
122
+ tensor<fp16, [1, 8, 512, 64]> transpose_14 = transpose(perm = transpose_14_perm_0, x = x_23_cast_fp16)[name = tensor<string, []>("transpose_30")];
123
+ tensor<fp16, [1, 8, 512, 512]> 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<string, []>("attention_scores_7_cast_fp16")];
124
+ tensor<fp16, []> _inversed_attention_scores_9_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_9_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
125
+ tensor<fp16, [1, 8, 512, 512]> _inversed_attention_scores_9_cast_fp16 = mul(x = attention_scores_7_cast_fp16, y = _inversed_attention_scores_9_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_9_cast_fp16")];
126
+ tensor<fp16, [1, 8, 512, 512]> attention_scores_11_cast_fp16 = add(x = _inversed_attention_scores_9_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_11_cast_fp16")];
127
+ tensor<fp16, [1, 8, 512, 512]> input_29_cast_fp16 = add(x = attention_scores_11_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_29_cast_fp16")];
128
+ tensor<fp16, [1, 8, 512, 512]> input_31_cast_fp16 = softmax(axis = var_16, x = input_29_cast_fp16)[name = tensor<string, []>("input_31_cast_fp16")];
129
+ tensor<bool, []> context_layer_5_transpose_x_0 = const()[name = tensor<string, []>("context_layer_5_transpose_x_0"), val = tensor<bool, []>(false)];
130
+ tensor<bool, []> context_layer_5_transpose_y_0 = const()[name = tensor<string, []>("context_layer_5_transpose_y_0"), val = tensor<bool, []>(false)];
131
+ tensor<fp16, [1, 8, 512, 64]> value_layer_3_cast_fp16 = transpose(perm = var_184, x = x_19_cast_fp16)[name = tensor<string, []>("transpose_31")];
132
+ tensor<fp16, [1, 8, 512, 64]> 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<string, []>("context_layer_5_cast_fp16")];
133
+ tensor<int32, [4]> var_201 = const()[name = tensor<string, []>("op_201"), val = tensor<int32, [4]>([0, 2, 1, 3])];
134
+ tensor<int32, [3]> var_206 = const()[name = tensor<string, []>("op_206"), val = tensor<int32, [3]>([1, 512, 512])];
135
+ tensor<fp16, [1, 512, 8, 64]> var_202_cast_fp16 = transpose(perm = var_201, x = context_layer_5_cast_fp16)[name = tensor<string, []>("transpose_28")];
136
+ tensor<fp16, [1, 512, 512]> input_33_cast_fp16 = reshape(shape = var_206, x = var_202_cast_fp16)[name = tensor<string, []>("input_33_cast_fp16")];
137
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(45965056)))];
138
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(46489408)))];
139
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_9_cast_fp16")];
140
+ tensor<fp16, [1, 512, 512]> input_37_cast_fp16 = add(x = linear_9_cast_fp16, y = input_27_cast_fp16)[name = tensor<string, []>("input_37_cast_fp16")];
141
+ tensor<int32, [1]> input_39_axes_0 = const()[name = tensor<string, []>("input_39_axes_0"), val = tensor<int32, [1]>([-1])];
142
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(46490496)))];
143
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(46491584)))];
144
+ tensor<fp16, [1, 512, 512]> 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<string, []>("input_39_cast_fp16")];
145
+ tensor<fp16, [4096, 512]> m_encoder_layer_1_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(46492672)))];
146
+ tensor<fp16, [1, 512, 4096]> 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<string, []>("linear_10_cast_fp16")];
147
+ tensor<int32, [3]> input_41_begin_0 = const()[name = tensor<string, []>("input_41_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
148
+ tensor<int32, [3]> input_41_end_0 = const()[name = tensor<string, []>("input_41_end_0"), val = tensor<int32, [3]>([1, 512, 2048])];
149
+ tensor<bool, [3]> input_41_end_mask_0 = const()[name = tensor<string, []>("input_41_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
150
+ tensor<fp16, [1, 512, 2048]> 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<string, []>("input_41_cast_fp16")];
151
+ tensor<int32, [3]> non_gated_3_begin_0 = const()[name = tensor<string, []>("non_gated_3_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
152
+ tensor<int32, [3]> non_gated_3_end_0 = const()[name = tensor<string, []>("non_gated_3_end_0"), val = tensor<int32, [3]>([1, 512, 4096])];
153
+ tensor<bool, [3]> non_gated_3_end_mask_0 = const()[name = tensor<string, []>("non_gated_3_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
154
+ tensor<fp16, [1, 512, 2048]> 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<string, []>("non_gated_3_cast_fp16")];
155
+ tensor<string, []> var_230_mode_0 = const()[name = tensor<string, []>("op_230_mode_0"), val = tensor<string, []>("EXACT")];
156
+ tensor<fp16, [1, 512, 2048]> var_230_cast_fp16 = gelu(mode = var_230_mode_0, x = input_41_cast_fp16)[name = tensor<string, []>("op_230_cast_fp16")];
157
+ tensor<fp16, [1, 512, 2048]> input_43_cast_fp16 = mul(x = var_230_cast_fp16, y = non_gated_3_cast_fp16)[name = tensor<string, []>("input_43_cast_fp16")];
158
+ tensor<fp16, [512, 2048]> m_encoder_layer_1_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50687040)))];
159
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(52784256)))];
160
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_11_cast_fp16")];
161
+ tensor<fp16, [1, 512, 512]> input_47_cast_fp16 = add(x = linear_11_cast_fp16, y = input_39_cast_fp16)[name = tensor<string, []>("input_47_cast_fp16")];
162
+ tensor<int32, [1]> input_49_axes_0 = const()[name = tensor<string, []>("input_49_axes_0"), val = tensor<int32, [1]>([-1])];
163
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(52785344)))];
164
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(52786432)))];
165
+ tensor<fp16, [1, 512, 512]> 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<string, []>("input_49_cast_fp16")];
166
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(52787520)))];
167
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(53311872)))];
168
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_12_cast_fp16")];
169
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(53312960)))];
170
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(53837312)))];
171
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_13_cast_fp16")];
172
+ tensor<int32, [4]> var_256 = const()[name = tensor<string, []>("op_256"), val = tensor<int32, [4]>([1, 512, 8, 64])];
173
+ tensor<fp16, [1, 512, 8, 64]> x_27_cast_fp16 = reshape(shape = var_256, x = linear_13_cast_fp16)[name = tensor<string, []>("x_27_cast_fp16")];
174
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(53838400)))];
175
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(54362752)))];
176
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_14_cast_fp16")];
177
+ tensor<int32, [4]> var_265 = const()[name = tensor<string, []>("op_265"), val = tensor<int32, [4]>([1, 512, 8, 64])];
178
+ tensor<fp16, [1, 512, 8, 64]> x_31_cast_fp16 = reshape(shape = var_265, x = linear_14_cast_fp16)[name = tensor<string, []>("x_31_cast_fp16")];
179
+ tensor<int32, [4]> var_267 = const()[name = tensor<string, []>("op_267"), val = tensor<int32, [4]>([0, 2, 1, 3])];
180
+ tensor<int32, [4]> var_271 = const()[name = tensor<string, []>("op_271"), val = tensor<int32, [4]>([1, 512, 8, 64])];
181
+ tensor<fp16, [1, 512, 8, 64]> x_35_cast_fp16 = reshape(shape = var_271, x = linear_12_cast_fp16)[name = tensor<string, []>("x_35_cast_fp16")];
182
+ tensor<bool, []> attention_scores_13_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_13_transpose_x_0"), val = tensor<bool, []>(false)];
183
+ tensor<bool, []> attention_scores_13_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_13_transpose_y_0"), val = tensor<bool, []>(false)];
184
+ tensor<int32, [4]> transpose_16_perm_0 = const()[name = tensor<string, []>("transpose_16_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
185
+ tensor<int32, [4]> transpose_17_perm_0 = const()[name = tensor<string, []>("transpose_17_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
186
+ tensor<fp16, [1, 8, 64, 512]> transpose_17 = transpose(perm = transpose_17_perm_0, x = x_27_cast_fp16)[name = tensor<string, []>("transpose_25")];
187
+ tensor<fp16, [1, 8, 512, 64]> transpose_16 = transpose(perm = transpose_16_perm_0, x = x_35_cast_fp16)[name = tensor<string, []>("transpose_26")];
188
+ tensor<fp16, [1, 8, 512, 512]> 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<string, []>("attention_scores_13_cast_fp16")];
189
+ tensor<fp16, []> _inversed_attention_scores_15_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_15_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
190
+ tensor<fp16, [1, 8, 512, 512]> _inversed_attention_scores_15_cast_fp16 = mul(x = attention_scores_13_cast_fp16, y = _inversed_attention_scores_15_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_15_cast_fp16")];
191
+ tensor<fp16, [1, 8, 512, 512]> attention_scores_17_cast_fp16 = add(x = _inversed_attention_scores_15_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_17_cast_fp16")];
192
+ tensor<fp16, [1, 8, 512, 512]> input_51_cast_fp16 = add(x = attention_scores_17_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_51_cast_fp16")];
193
+ tensor<fp16, [1, 8, 512, 512]> input_53_cast_fp16 = softmax(axis = var_16, x = input_51_cast_fp16)[name = tensor<string, []>("input_53_cast_fp16")];
194
+ tensor<bool, []> context_layer_9_transpose_x_0 = const()[name = tensor<string, []>("context_layer_9_transpose_x_0"), val = tensor<bool, []>(false)];
195
+ tensor<bool, []> context_layer_9_transpose_y_0 = const()[name = tensor<string, []>("context_layer_9_transpose_y_0"), val = tensor<bool, []>(false)];
196
+ tensor<fp16, [1, 8, 512, 64]> value_layer_5_cast_fp16 = transpose(perm = var_267, x = x_31_cast_fp16)[name = tensor<string, []>("transpose_27")];
197
+ tensor<fp16, [1, 8, 512, 64]> 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<string, []>("context_layer_9_cast_fp16")];
198
+ tensor<int32, [4]> var_284 = const()[name = tensor<string, []>("op_284"), val = tensor<int32, [4]>([0, 2, 1, 3])];
199
+ tensor<int32, [3]> var_289 = const()[name = tensor<string, []>("op_289"), val = tensor<int32, [3]>([1, 512, 512])];
200
+ tensor<fp16, [1, 512, 8, 64]> var_285_cast_fp16 = transpose(perm = var_284, x = context_layer_9_cast_fp16)[name = tensor<string, []>("transpose_24")];
201
+ tensor<fp16, [1, 512, 512]> input_55_cast_fp16 = reshape(shape = var_289, x = var_285_cast_fp16)[name = tensor<string, []>("input_55_cast_fp16")];
202
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(54363840)))];
203
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(54888192)))];
204
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_15_cast_fp16")];
205
+ tensor<fp16, [1, 512, 512]> input_59_cast_fp16 = add(x = linear_15_cast_fp16, y = input_49_cast_fp16)[name = tensor<string, []>("input_59_cast_fp16")];
206
+ tensor<int32, [1]> input_61_axes_0 = const()[name = tensor<string, []>("input_61_axes_0"), val = tensor<int32, [1]>([-1])];
207
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(54889280)))];
208
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(54890368)))];
209
+ tensor<fp16, [1, 512, 512]> 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<string, []>("input_61_cast_fp16")];
210
+ tensor<fp16, [4096, 512]> m_encoder_layer_2_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(54891456)))];
211
+ tensor<fp16, [1, 512, 4096]> 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<string, []>("linear_16_cast_fp16")];
212
+ tensor<int32, [3]> input_63_begin_0 = const()[name = tensor<string, []>("input_63_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
213
+ tensor<int32, [3]> input_63_end_0 = const()[name = tensor<string, []>("input_63_end_0"), val = tensor<int32, [3]>([1, 512, 2048])];
214
+ tensor<bool, [3]> input_63_end_mask_0 = const()[name = tensor<string, []>("input_63_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
215
+ tensor<fp16, [1, 512, 2048]> 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<string, []>("input_63_cast_fp16")];
216
+ tensor<int32, [3]> non_gated_5_begin_0 = const()[name = tensor<string, []>("non_gated_5_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
217
+ tensor<int32, [3]> non_gated_5_end_0 = const()[name = tensor<string, []>("non_gated_5_end_0"), val = tensor<int32, [3]>([1, 512, 4096])];
218
+ tensor<bool, [3]> non_gated_5_end_mask_0 = const()[name = tensor<string, []>("non_gated_5_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
219
+ tensor<fp16, [1, 512, 2048]> 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<string, []>("non_gated_5_cast_fp16")];
220
+ tensor<string, []> var_313_mode_0 = const()[name = tensor<string, []>("op_313_mode_0"), val = tensor<string, []>("EXACT")];
221
+ tensor<fp16, [1, 512, 2048]> var_313_cast_fp16 = gelu(mode = var_313_mode_0, x = input_63_cast_fp16)[name = tensor<string, []>("op_313_cast_fp16")];
222
+ tensor<fp16, [1, 512, 2048]> input_65_cast_fp16 = mul(x = var_313_cast_fp16, y = non_gated_5_cast_fp16)[name = tensor<string, []>("input_65_cast_fp16")];
223
+ tensor<fp16, [512, 2048]> m_encoder_layer_2_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(59085824)))];
224
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(61183040)))];
225
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_17_cast_fp16")];
226
+ tensor<fp16, [1, 512, 512]> input_69_cast_fp16 = add(x = linear_17_cast_fp16, y = input_61_cast_fp16)[name = tensor<string, []>("input_69_cast_fp16")];
227
+ tensor<int32, [1]> input_71_axes_0 = const()[name = tensor<string, []>("input_71_axes_0"), val = tensor<int32, [1]>([-1])];
228
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(61184128)))];
229
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(61185216)))];
230
+ tensor<fp16, [1, 512, 512]> 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<string, []>("input_71_cast_fp16")];
231
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(61186304)))];
232
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(61710656)))];
233
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_18_cast_fp16")];
234
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(61711744)))];
235
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(62236096)))];
236
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_19_cast_fp16")];
237
+ tensor<int32, [4]> var_339 = const()[name = tensor<string, []>("op_339"), val = tensor<int32, [4]>([1, 512, 8, 64])];
238
+ tensor<fp16, [1, 512, 8, 64]> x_39_cast_fp16 = reshape(shape = var_339, x = linear_19_cast_fp16)[name = tensor<string, []>("x_39_cast_fp16")];
239
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(62237184)))];
240
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(62761536)))];
241
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_20_cast_fp16")];
242
+ tensor<int32, [4]> var_348 = const()[name = tensor<string, []>("op_348"), val = tensor<int32, [4]>([1, 512, 8, 64])];
243
+ tensor<fp16, [1, 512, 8, 64]> x_43_cast_fp16 = reshape(shape = var_348, x = linear_20_cast_fp16)[name = tensor<string, []>("x_43_cast_fp16")];
244
+ tensor<int32, [4]> var_350 = const()[name = tensor<string, []>("op_350"), val = tensor<int32, [4]>([0, 2, 1, 3])];
245
+ tensor<int32, [4]> var_354 = const()[name = tensor<string, []>("op_354"), val = tensor<int32, [4]>([1, 512, 8, 64])];
246
+ tensor<fp16, [1, 512, 8, 64]> x_cast_fp16 = reshape(shape = var_354, x = linear_18_cast_fp16)[name = tensor<string, []>("x_cast_fp16")];
247
+ tensor<bool, []> attention_scores_19_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_19_transpose_x_0"), val = tensor<bool, []>(false)];
248
+ tensor<bool, []> attention_scores_19_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_19_transpose_y_0"), val = tensor<bool, []>(false)];
249
+ tensor<int32, [4]> transpose_18_perm_0 = const()[name = tensor<string, []>("transpose_18_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
250
+ tensor<int32, [4]> transpose_19_perm_0 = const()[name = tensor<string, []>("transpose_19_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
251
+ tensor<fp16, [1, 8, 64, 512]> transpose_19 = transpose(perm = transpose_19_perm_0, x = x_39_cast_fp16)[name = tensor<string, []>("transpose_21")];
252
+ tensor<fp16, [1, 8, 512, 64]> transpose_18 = transpose(perm = transpose_18_perm_0, x = x_cast_fp16)[name = tensor<string, []>("transpose_22")];
253
+ tensor<fp16, [1, 8, 512, 512]> 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<string, []>("attention_scores_19_cast_fp16")];
254
+ tensor<fp16, []> _inversed_attention_scores_21_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_21_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
255
+ tensor<fp16, [1, 8, 512, 512]> _inversed_attention_scores_21_cast_fp16 = mul(x = attention_scores_19_cast_fp16, y = _inversed_attention_scores_21_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_21_cast_fp16")];
256
+ tensor<fp16, [1, 8, 512, 512]> attention_scores_cast_fp16 = add(x = _inversed_attention_scores_21_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_cast_fp16")];
257
+ tensor<fp16, [1, 8, 512, 512]> input_73_cast_fp16 = add(x = attention_scores_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_73_cast_fp16")];
258
+ tensor<fp16, [1, 8, 512, 512]> input_75_cast_fp16 = softmax(axis = var_16, x = input_73_cast_fp16)[name = tensor<string, []>("input_75_cast_fp16")];
259
+ tensor<bool, []> context_layer_13_transpose_x_0 = const()[name = tensor<string, []>("context_layer_13_transpose_x_0"), val = tensor<bool, []>(false)];
260
+ tensor<bool, []> context_layer_13_transpose_y_0 = const()[name = tensor<string, []>("context_layer_13_transpose_y_0"), val = tensor<bool, []>(false)];
261
+ tensor<fp16, [1, 8, 512, 64]> value_layer_cast_fp16 = transpose(perm = var_350, x = x_43_cast_fp16)[name = tensor<string, []>("transpose_23")];
262
+ tensor<fp16, [1, 8, 512, 64]> 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<string, []>("context_layer_13_cast_fp16")];
263
+ tensor<int32, [4]> var_367 = const()[name = tensor<string, []>("op_367"), val = tensor<int32, [4]>([0, 2, 1, 3])];
264
+ tensor<int32, [3]> var_372 = const()[name = tensor<string, []>("op_372"), val = tensor<int32, [3]>([1, 512, 512])];
265
+ tensor<fp16, [1, 512, 8, 64]> var_368_cast_fp16 = transpose(perm = var_367, x = context_layer_13_cast_fp16)[name = tensor<string, []>("transpose_20")];
266
+ tensor<fp16, [1, 512, 512]> input_77_cast_fp16 = reshape(shape = var_372, x = var_368_cast_fp16)[name = tensor<string, []>("input_77_cast_fp16")];
267
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(62762624)))];
268
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(63286976)))];
269
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_21_cast_fp16")];
270
+ tensor<fp16, [1, 512, 512]> input_81_cast_fp16 = add(x = linear_21_cast_fp16, y = input_71_cast_fp16)[name = tensor<string, []>("input_81_cast_fp16")];
271
+ tensor<int32, [1]> input_83_axes_0 = const()[name = tensor<string, []>("input_83_axes_0"), val = tensor<int32, [1]>([-1])];
272
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(63288064)))];
273
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(63289152)))];
274
+ tensor<fp16, [1, 512, 512]> 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<string, []>("input_83_cast_fp16")];
275
+ tensor<fp16, [4096, 512]> m_encoder_layer_3_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(63290240)))];
276
+ tensor<fp16, [1, 512, 4096]> 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<string, []>("linear_22_cast_fp16")];
277
+ tensor<int32, [3]> input_85_begin_0 = const()[name = tensor<string, []>("input_85_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
278
+ tensor<int32, [3]> input_85_end_0 = const()[name = tensor<string, []>("input_85_end_0"), val = tensor<int32, [3]>([1, 512, 2048])];
279
+ tensor<bool, [3]> input_85_end_mask_0 = const()[name = tensor<string, []>("input_85_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
280
+ tensor<fp16, [1, 512, 2048]> 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<string, []>("input_85_cast_fp16")];
281
+ tensor<int32, [3]> non_gated_begin_0 = const()[name = tensor<string, []>("non_gated_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
282
+ tensor<int32, [3]> non_gated_end_0 = const()[name = tensor<string, []>("non_gated_end_0"), val = tensor<int32, [3]>([1, 512, 4096])];
283
+ tensor<bool, [3]> non_gated_end_mask_0 = const()[name = tensor<string, []>("non_gated_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
284
+ tensor<fp16, [1, 512, 2048]> 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<string, []>("non_gated_cast_fp16")];
285
+ tensor<string, []> var_396_mode_0 = const()[name = tensor<string, []>("op_396_mode_0"), val = tensor<string, []>("EXACT")];
286
+ tensor<fp16, [1, 512, 2048]> var_396_cast_fp16 = gelu(mode = var_396_mode_0, x = input_85_cast_fp16)[name = tensor<string, []>("op_396_cast_fp16")];
287
+ tensor<fp16, [1, 512, 2048]> input_87_cast_fp16 = mul(x = var_396_cast_fp16, y = non_gated_cast_fp16)[name = tensor<string, []>("input_87_cast_fp16")];
288
+ tensor<fp16, [512, 2048]> m_encoder_layer_3_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(67484608)))];
289
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(69581824)))];
290
+ tensor<fp16, [1, 512, 512]> 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<string, []>("linear_23_cast_fp16")];
291
+ tensor<fp16, [1, 512, 512]> input_91_cast_fp16 = add(x = linear_23_cast_fp16, y = input_83_cast_fp16)[name = tensor<string, []>("input_91_cast_fp16")];
292
+ tensor<int32, [1]> hidden_states_axes_0 = const()[name = tensor<string, []>("hidden_states_axes_0"), val = tensor<int32, [1]>([-1])];
293
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(69582912)))];
294
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(69584000)))];
295
+ tensor<fp16, [1, 512, 512]> 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<string, []>("hidden_states_cast_fp16")];
296
+ tensor<int32, [1]> var_408_axes_0 = const()[name = tensor<string, []>("op_408_axes_0"), val = tensor<int32, [1]>([-1])];
297
+ tensor<int32, [1, 512, 1]> var_408 = expand_dims(axes = var_408_axes_0, x = cast_0)[name = tensor<string, []>("op_408")];
298
+ tensor<string, []> cast_28_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_28_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
299
+ tensor<fp16, [1, 512, 1]> var_408_to_fp16 = cast(dtype = cast_28_to_fp16_dtype_0, x = var_408)[name = tensor<string, []>("cast_34")];
300
+ tensor<fp16, [1, 512, 512]> var_414_cast_fp16 = mul(x = hidden_states_cast_fp16, y = var_408_to_fp16)[name = tensor<string, []>("op_414_cast_fp16")];
301
+ tensor<int32, [1]> var_419_axes_0 = const()[name = tensor<string, []>("op_419_axes_0"), val = tensor<int32, [1]>([1])];
302
+ tensor<bool, []> var_419_keep_dims_0 = const()[name = tensor<string, []>("op_419_keep_dims_0"), val = tensor<bool, []>(false)];
303
+ tensor<fp16, [1, 512]> 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<string, []>("op_419_cast_fp16")];
304
+ tensor<int32, [1]> var_424_axes_0 = const()[name = tensor<string, []>("op_424_axes_0"), val = tensor<int32, [1]>([1])];
305
+ tensor<bool, []> var_424_keep_dims_0 = const()[name = tensor<string, []>("op_424_keep_dims_0"), val = tensor<bool, []>(false)];
306
+ tensor<fp16, [1, 1]> 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<string, []>("op_424_cast_fp16")];
307
+ tensor<fp16, []> var_425_to_fp16 = const()[name = tensor<string, []>("op_425_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
308
+ tensor<fp16, []> const_35_to_fp16 = const()[name = tensor<string, []>("const_35_to_fp16"), val = tensor<fp16, []>(inf)];
309
+ tensor<fp16, [1, 1]> clip_0_cast_fp16 = clip(alpha = var_425_to_fp16, beta = const_35_to_fp16, x = var_424_cast_fp16)[name = tensor<string, []>("clip_0_cast_fp16")];
310
+ tensor<fp16, [1, 512]> input_cast_fp16 = real_div(x = var_419_cast_fp16, y = clip_0_cast_fp16)[name = tensor<string, []>("input_cast_fp16")];
311
+ tensor<int32, [1]> var_431 = const()[name = tensor<string, []>("op_431"), val = tensor<int32, [1]>([-1])];
312
+ tensor<bool, []> var_432 = const()[name = tensor<string, []>("op_432"), val = tensor<bool, []>(true)];
313
+ tensor<fp16, [1, 1]> var_434_cast_fp16 = reduce_l2_norm(axes = var_431, keep_dims = var_432, x = input_cast_fp16)[name = tensor<string, []>("op_434_cast_fp16")];
314
+ tensor<fp16, []> var_435_to_fp16 = const()[name = tensor<string, []>("op_435_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
315
+ tensor<fp16, [1, 1]> var_436_cast_fp16 = maximum(x = var_434_cast_fp16, y = var_435_to_fp16)[name = tensor<string, []>("op_436_cast_fp16")];
316
+ tensor<int32, [2]> denom_reps_0 = const()[name = tensor<string, []>("denom_reps_0"), val = tensor<int32, [2]>([1, 512])];
317
+ tensor<fp16, [1, 512]> denom_cast_fp16 = tile(reps = denom_reps_0, x = var_436_cast_fp16)[name = tensor<string, []>("denom_cast_fp16")];
318
+ tensor<fp16, [1, 512]> embedding = real_div(x = input_cast_fp16, y = denom_cast_fp16)[name = tensor<string, []>("op_438_cast_fp16")];
319
+ } -> (embedding);
320
+ }
jina_embedding.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40bc6b82fb23ad0c7651c0129ebb53309cf7f8e85d14e81752d517572790945b
3
+ size 69585088
jina_embedding_128.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0161a3aacffe1a62c443927a83a1f337f1b9f75aed0f71ef561bfcfc1abc03fc
3
+ size 243
jina_embedding_128.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aea8d0e1ba9eeab169a290e965c9c19ba9ae6b4da42153f5becd7edc3cc2799
3
+ size 318
jina_embedding_128.mlmodelc/metadata.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Float16",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 512)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 512]",
13
+ "name" : "embedding",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 8,
21
+ "mlProgramOperationTypeHistogram" : {
22
+ "Ios17.mul" : 10,
23
+ "Ios17.notEqual" : 1,
24
+ "Ios17.reshape" : 16,
25
+ "Ios16.softmax" : 4,
26
+ "Ios17.matmul" : 8,
27
+ "Ios17.maximum" : 1,
28
+ "Ios17.transpose" : 16,
29
+ "Ios17.expandDims" : 3,
30
+ "Ios17.add" : 17,
31
+ "Tile" : 1,
32
+ "Ios17.sliceByIndex" : 8,
33
+ "Ios16.reduceSum" : 2,
34
+ "Ios17.gather" : 1,
35
+ "Ios17.layerNorm" : 9,
36
+ "Ios17.clip" : 1,
37
+ "Ios17.sub" : 1,
38
+ "Ios16.gelu" : 4,
39
+ "Ios17.cast" : 4,
40
+ "Ios17.realDiv" : 2,
41
+ "Ios17.linear" : 24,
42
+ "Ios16.reduceL2Norm" : 1
43
+ },
44
+ "computePrecision" : "Mixed (Float16, Int16, Int32)",
45
+ "isUpdatable" : "0",
46
+ "stateSchema" : [
47
+
48
+ ],
49
+ "availability" : {
50
+ "macOS" : "14.0",
51
+ "tvOS" : "17.0",
52
+ "visionOS" : "1.0",
53
+ "watchOS" : "10.0",
54
+ "iOS" : "17.0",
55
+ "macCatalyst" : "17.0"
56
+ },
57
+ "modelType" : {
58
+ "name" : "MLModelType_mlProgram"
59
+ },
60
+ "userDefinedMetadata" : {
61
+ "com.github.apple.coremltools.version" : "8.3.0",
62
+ "com.github.apple.coremltools.source" : "torch==2.5.1",
63
+ "com.github.apple.coremltools.source_dialect" : "TorchScript"
64
+ },
65
+ "inputSchema" : [
66
+ {
67
+ "hasShapeFlexibility" : "0",
68
+ "isOptional" : "0",
69
+ "dataType" : "Int32",
70
+ "formattedType" : "MultiArray (Int32 1 × 128)",
71
+ "shortDescription" : "",
72
+ "shape" : "[1, 128]",
73
+ "name" : "input_ids",
74
+ "type" : "MultiArray"
75
+ }
76
+ ],
77
+ "generatedClassName" : "jina_embedding_ane_128",
78
+ "method" : "predict"
79
+ }
80
+ ]
jina_embedding_128.mlmodelc/model.mil ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ program(1.0)
2
+ [buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3510.2.1"}, {"coremlc-version", "3500.32.1"}, {"coremltools-component-torch", "2.5.1"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "8.3.0"}})]
3
+ {
4
+ func main<ios17>(tensor<int32, [1, 128]> input_ids) {
5
+ tensor<int32, []> var_3 = const()[name = tensor<string, []>("op_3"), val = tensor<int32, []>(0)];
6
+ tensor<bool, [1, 128]> var_4 = not_equal(x = input_ids, y = var_3)[name = tensor<string, []>("op_4")];
7
+ tensor<string, []> cast_0_dtype_0 = const()[name = tensor<string, []>("cast_0_dtype_0"), val = tensor<string, []>("int32")];
8
+ tensor<int32, []> var_16 = const()[name = tensor<string, []>("op_16"), val = tensor<int32, []>(-1)];
9
+ tensor<int32, [1]> var_41_axes_0 = const()[name = tensor<string, []>("op_41_axes_0"), val = tensor<int32, [1]>([1])];
10
+ tensor<int32, [1, 128]> cast_0 = cast(dtype = cast_0_dtype_0, x = var_4)[name = tensor<string, []>("cast_37")];
11
+ tensor<int32, [1, 1, 128]> var_41 = expand_dims(axes = var_41_axes_0, x = cast_0)[name = tensor<string, []>("op_41")];
12
+ tensor<int32, [1]> var_42_axes_0 = const()[name = tensor<string, []>("op_42_axes_0"), val = tensor<int32, [1]>([2])];
13
+ tensor<int32, [1, 1, 1, 128]> var_42 = expand_dims(axes = var_42_axes_0, x = var_41)[name = tensor<string, []>("op_42")];
14
+ tensor<fp16, []> var_21_to_fp16 = const()[name = tensor<string, []>("op_21_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
15
+ tensor<string, []> cast_1_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_1_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
16
+ tensor<fp16, [1, 1, 1, 128]> var_42_to_fp16 = cast(dtype = cast_1_to_fp16_dtype_0, x = var_42)[name = tensor<string, []>("cast_36")];
17
+ tensor<fp16, [1, 1, 1, 128]> var_45_cast_fp16 = sub(x = var_21_to_fp16, y = var_42_to_fp16)[name = tensor<string, []>("op_45_cast_fp16")];
18
+ tensor<fp16, []> var_46_to_fp16 = const()[name = tensor<string, []>("op_46_to_fp16"), val = tensor<fp16, []>(-0x1.d4cp+14)];
19
+ tensor<fp16, [1, 1, 1, 128]> attention_mask_cast_fp16 = mul(x = var_45_cast_fp16, y = var_46_to_fp16)[name = tensor<string, []>("attention_mask_cast_fp16")];
20
+ tensor<int32, []> inputs_embeds_axis_0 = const()[name = tensor<string, []>("inputs_embeds_axis_0"), val = tensor<int32, []>(0)];
21
+ tensor<int32, []> inputs_embeds_batch_dims_0 = const()[name = tensor<string, []>("inputs_embeds_batch_dims_0"), val = tensor<int32, []>(0)];
22
+ tensor<bool, []> inputs_embeds_validate_indices_0 = const()[name = tensor<string, []>("inputs_embeds_validate_indices_0"), val = tensor<bool, []>(false)];
23
+ tensor<fp16, [30528, 512]> m_embeddings_word_embeddings_weight_to_fp16 = const()[name = tensor<string, []>("m_embeddings_word_embeddings_weight_to_fp16"), val = tensor<fp16, [30528, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(64)))];
24
+ tensor<string, []> input_ids_to_int16_dtype_0 = const()[name = tensor<string, []>("input_ids_to_int16_dtype_0"), val = tensor<string, []>("int16")];
25
+ tensor<int16, [1, 128]> input_ids_to_int16 = cast(dtype = input_ids_to_int16_dtype_0, x = input_ids)[name = tensor<string, []>("cast_35")];
26
+ tensor<fp16, [1, 128, 512]> 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<string, []>("inputs_embeds_cast_fp16_cast_uint16")];
27
+ tensor<fp16, [1, 128, 512]> token_type_embeddings_1_to_fp16 = const()[name = tensor<string, []>("token_type_embeddings_1_to_fp16"), val = tensor<fp16, [1, 128, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31260800)))];
28
+ tensor<fp16, [1, 128, 512]> input_3_cast_fp16 = add(x = inputs_embeds_cast_fp16_cast_uint16, y = token_type_embeddings_1_to_fp16)[name = tensor<string, []>("input_3_cast_fp16")];
29
+ tensor<int32, [1]> input_5_axes_0 = const()[name = tensor<string, []>("input_5_axes_0"), val = tensor<int32, [1]>([-1])];
30
+ tensor<fp16, [512]> m_embeddings_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_embeddings_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31391936)))];
31
+ tensor<fp16, [512]> m_embeddings_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_embeddings_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31393024)))];
32
+ tensor<fp16, []> var_18_to_fp16 = const()[name = tensor<string, []>("op_18_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
33
+ tensor<fp16, [1, 128, 512]> 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<string, []>("input_5_cast_fp16")];
34
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31394112)))];
35
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31918464)))];
36
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_0_cast_fp16")];
37
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31919552)))];
38
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32443904)))];
39
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_1_cast_fp16")];
40
+ tensor<int32, [4]> var_90 = const()[name = tensor<string, []>("op_90"), val = tensor<int32, [4]>([1, 128, 8, 64])];
41
+ tensor<fp16, [1, 128, 8, 64]> x_3_cast_fp16 = reshape(shape = var_90, x = linear_1_cast_fp16)[name = tensor<string, []>("x_3_cast_fp16")];
42
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32444992)))];
43
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32969344)))];
44
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_2_cast_fp16")];
45
+ tensor<int32, [4]> var_99 = const()[name = tensor<string, []>("op_99"), val = tensor<int32, [4]>([1, 128, 8, 64])];
46
+ tensor<fp16, [1, 128, 8, 64]> x_7_cast_fp16 = reshape(shape = var_99, x = linear_2_cast_fp16)[name = tensor<string, []>("x_7_cast_fp16")];
47
+ tensor<int32, [4]> var_101 = const()[name = tensor<string, []>("op_101"), val = tensor<int32, [4]>([0, 2, 1, 3])];
48
+ tensor<int32, [4]> var_105 = const()[name = tensor<string, []>("op_105"), val = tensor<int32, [4]>([1, 128, 8, 64])];
49
+ tensor<fp16, [1, 128, 8, 64]> x_11_cast_fp16 = reshape(shape = var_105, x = linear_0_cast_fp16)[name = tensor<string, []>("x_11_cast_fp16")];
50
+ tensor<bool, []> attention_scores_1_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_1_transpose_x_0"), val = tensor<bool, []>(false)];
51
+ tensor<bool, []> attention_scores_1_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_1_transpose_y_0"), val = tensor<bool, []>(false)];
52
+ tensor<int32, [4]> transpose_12_perm_0 = const()[name = tensor<string, []>("transpose_12_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
53
+ tensor<int32, [4]> transpose_13_perm_0 = const()[name = tensor<string, []>("transpose_13_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
54
+ tensor<fp16, [1, 8, 64, 128]> transpose_13 = transpose(perm = transpose_13_perm_0, x = x_3_cast_fp16)[name = tensor<string, []>("transpose_33")];
55
+ tensor<fp16, [1, 8, 128, 64]> transpose_12 = transpose(perm = transpose_12_perm_0, x = x_11_cast_fp16)[name = tensor<string, []>("transpose_34")];
56
+ tensor<fp16, [1, 8, 128, 128]> 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<string, []>("attention_scores_1_cast_fp16")];
57
+ tensor<fp16, []> _inversed_attention_scores_3_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_3_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
58
+ tensor<fp16, [1, 8, 128, 128]> _inversed_attention_scores_3_cast_fp16 = mul(x = attention_scores_1_cast_fp16, y = _inversed_attention_scores_3_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_3_cast_fp16")];
59
+ tensor<fp16, [1, 8, 128, 128]> attention_scores_5_cast_fp16 = add(x = _inversed_attention_scores_3_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_5_cast_fp16")];
60
+ tensor<fp16, [1, 8, 128, 128]> bias_3_to_fp16 = const()[name = tensor<string, []>("bias_3_to_fp16"), val = tensor<fp16, [1, 8, 128, 128]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32970432)))];
61
+ tensor<fp16, [1, 8, 128, 128]> input_7_cast_fp16 = add(x = attention_scores_5_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_7_cast_fp16")];
62
+ tensor<fp16, [1, 8, 128, 128]> input_9_cast_fp16 = softmax(axis = var_16, x = input_7_cast_fp16)[name = tensor<string, []>("input_9_cast_fp16")];
63
+ tensor<bool, []> context_layer_1_transpose_x_0 = const()[name = tensor<string, []>("context_layer_1_transpose_x_0"), val = tensor<bool, []>(false)];
64
+ tensor<bool, []> context_layer_1_transpose_y_0 = const()[name = tensor<string, []>("context_layer_1_transpose_y_0"), val = tensor<bool, []>(false)];
65
+ tensor<fp16, [1, 8, 128, 64]> value_layer_1_cast_fp16 = transpose(perm = var_101, x = x_7_cast_fp16)[name = tensor<string, []>("transpose_35")];
66
+ tensor<fp16, [1, 8, 128, 64]> 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<string, []>("context_layer_1_cast_fp16")];
67
+ tensor<int32, [4]> var_118 = const()[name = tensor<string, []>("op_118"), val = tensor<int32, [4]>([0, 2, 1, 3])];
68
+ tensor<int32, [3]> var_123 = const()[name = tensor<string, []>("op_123"), val = tensor<int32, [3]>([1, 128, 512])];
69
+ tensor<fp16, [1, 128, 8, 64]> var_119_cast_fp16 = transpose(perm = var_118, x = context_layer_1_cast_fp16)[name = tensor<string, []>("transpose_32")];
70
+ tensor<fp16, [1, 128, 512]> input_11_cast_fp16 = reshape(shape = var_123, x = var_119_cast_fp16)[name = tensor<string, []>("input_11_cast_fp16")];
71
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33232640)))];
72
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33756992)))];
73
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_3_cast_fp16")];
74
+ tensor<fp16, [1, 128, 512]> input_15_cast_fp16 = add(x = linear_3_cast_fp16, y = input_5_cast_fp16)[name = tensor<string, []>("input_15_cast_fp16")];
75
+ tensor<int32, [1]> input_17_axes_0 = const()[name = tensor<string, []>("input_17_axes_0"), val = tensor<int32, [1]>([-1])];
76
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33758080)))];
77
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33759168)))];
78
+ tensor<fp16, [1, 128, 512]> 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<string, []>("input_17_cast_fp16")];
79
+ tensor<fp16, [4096, 512]> m_encoder_layer_0_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33760256)))];
80
+ tensor<fp16, [4096]> linear_4_bias_0_to_fp16 = const()[name = tensor<string, []>("linear_4_bias_0_to_fp16"), val = tensor<fp16, [4096]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(37954624)))];
81
+ tensor<fp16, [1, 128, 4096]> 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<string, []>("linear_4_cast_fp16")];
82
+ tensor<int32, [3]> input_19_begin_0 = const()[name = tensor<string, []>("input_19_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
83
+ tensor<int32, [3]> input_19_end_0 = const()[name = tensor<string, []>("input_19_end_0"), val = tensor<int32, [3]>([1, 128, 2048])];
84
+ tensor<bool, [3]> input_19_end_mask_0 = const()[name = tensor<string, []>("input_19_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
85
+ tensor<fp16, [1, 128, 2048]> 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<string, []>("input_19_cast_fp16")];
86
+ tensor<int32, [3]> non_gated_1_begin_0 = const()[name = tensor<string, []>("non_gated_1_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
87
+ tensor<int32, [3]> non_gated_1_end_0 = const()[name = tensor<string, []>("non_gated_1_end_0"), val = tensor<int32, [3]>([1, 128, 4096])];
88
+ tensor<bool, [3]> non_gated_1_end_mask_0 = const()[name = tensor<string, []>("non_gated_1_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
89
+ tensor<fp16, [1, 128, 2048]> 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<string, []>("non_gated_1_cast_fp16")];
90
+ tensor<string, []> var_147_mode_0 = const()[name = tensor<string, []>("op_147_mode_0"), val = tensor<string, []>("EXACT")];
91
+ tensor<fp16, [1, 128, 2048]> var_147_cast_fp16 = gelu(mode = var_147_mode_0, x = input_19_cast_fp16)[name = tensor<string, []>("op_147_cast_fp16")];
92
+ tensor<fp16, [1, 128, 2048]> input_21_cast_fp16 = mul(x = var_147_cast_fp16, y = non_gated_1_cast_fp16)[name = tensor<string, []>("input_21_cast_fp16")];
93
+ tensor<fp16, [512, 2048]> m_encoder_layer_0_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(37962880)))];
94
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40060096)))];
95
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_5_cast_fp16")];
96
+ tensor<fp16, [1, 128, 512]> input_25_cast_fp16 = add(x = linear_5_cast_fp16, y = input_17_cast_fp16)[name = tensor<string, []>("input_25_cast_fp16")];
97
+ tensor<int32, [1]> input_27_axes_0 = const()[name = tensor<string, []>("input_27_axes_0"), val = tensor<int32, [1]>([-1])];
98
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40061184)))];
99
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40062272)))];
100
+ tensor<fp16, [1, 128, 512]> 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<string, []>("input_27_cast_fp16")];
101
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40063360)))];
102
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40587712)))];
103
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_6_cast_fp16")];
104
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40588800)))];
105
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(41113152)))];
106
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_7_cast_fp16")];
107
+ tensor<int32, [4]> var_173 = const()[name = tensor<string, []>("op_173"), val = tensor<int32, [4]>([1, 128, 8, 64])];
108
+ tensor<fp16, [1, 128, 8, 64]> x_15_cast_fp16 = reshape(shape = var_173, x = linear_7_cast_fp16)[name = tensor<string, []>("x_15_cast_fp16")];
109
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(41114240)))];
110
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(41638592)))];
111
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_8_cast_fp16")];
112
+ tensor<int32, [4]> var_182 = const()[name = tensor<string, []>("op_182"), val = tensor<int32, [4]>([1, 128, 8, 64])];
113
+ tensor<fp16, [1, 128, 8, 64]> x_19_cast_fp16 = reshape(shape = var_182, x = linear_8_cast_fp16)[name = tensor<string, []>("x_19_cast_fp16")];
114
+ tensor<int32, [4]> var_184 = const()[name = tensor<string, []>("op_184"), val = tensor<int32, [4]>([0, 2, 1, 3])];
115
+ tensor<int32, [4]> var_188 = const()[name = tensor<string, []>("op_188"), val = tensor<int32, [4]>([1, 128, 8, 64])];
116
+ tensor<fp16, [1, 128, 8, 64]> x_23_cast_fp16 = reshape(shape = var_188, x = linear_6_cast_fp16)[name = tensor<string, []>("x_23_cast_fp16")];
117
+ tensor<bool, []> attention_scores_7_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_7_transpose_x_0"), val = tensor<bool, []>(false)];
118
+ tensor<bool, []> attention_scores_7_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_7_transpose_y_0"), val = tensor<bool, []>(false)];
119
+ tensor<int32, [4]> transpose_14_perm_0 = const()[name = tensor<string, []>("transpose_14_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
120
+ tensor<int32, [4]> transpose_15_perm_0 = const()[name = tensor<string, []>("transpose_15_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
121
+ tensor<fp16, [1, 8, 64, 128]> transpose_15 = transpose(perm = transpose_15_perm_0, x = x_15_cast_fp16)[name = tensor<string, []>("transpose_29")];
122
+ tensor<fp16, [1, 8, 128, 64]> transpose_14 = transpose(perm = transpose_14_perm_0, x = x_23_cast_fp16)[name = tensor<string, []>("transpose_30")];
123
+ tensor<fp16, [1, 8, 128, 128]> 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<string, []>("attention_scores_7_cast_fp16")];
124
+ tensor<fp16, []> _inversed_attention_scores_9_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_9_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
125
+ tensor<fp16, [1, 8, 128, 128]> _inversed_attention_scores_9_cast_fp16 = mul(x = attention_scores_7_cast_fp16, y = _inversed_attention_scores_9_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_9_cast_fp16")];
126
+ tensor<fp16, [1, 8, 128, 128]> attention_scores_11_cast_fp16 = add(x = _inversed_attention_scores_9_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_11_cast_fp16")];
127
+ tensor<fp16, [1, 8, 128, 128]> input_29_cast_fp16 = add(x = attention_scores_11_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_29_cast_fp16")];
128
+ tensor<fp16, [1, 8, 128, 128]> input_31_cast_fp16 = softmax(axis = var_16, x = input_29_cast_fp16)[name = tensor<string, []>("input_31_cast_fp16")];
129
+ tensor<bool, []> context_layer_5_transpose_x_0 = const()[name = tensor<string, []>("context_layer_5_transpose_x_0"), val = tensor<bool, []>(false)];
130
+ tensor<bool, []> context_layer_5_transpose_y_0 = const()[name = tensor<string, []>("context_layer_5_transpose_y_0"), val = tensor<bool, []>(false)];
131
+ tensor<fp16, [1, 8, 128, 64]> value_layer_3_cast_fp16 = transpose(perm = var_184, x = x_19_cast_fp16)[name = tensor<string, []>("transpose_31")];
132
+ tensor<fp16, [1, 8, 128, 64]> 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<string, []>("context_layer_5_cast_fp16")];
133
+ tensor<int32, [4]> var_201 = const()[name = tensor<string, []>("op_201"), val = tensor<int32, [4]>([0, 2, 1, 3])];
134
+ tensor<int32, [3]> var_206 = const()[name = tensor<string, []>("op_206"), val = tensor<int32, [3]>([1, 128, 512])];
135
+ tensor<fp16, [1, 128, 8, 64]> var_202_cast_fp16 = transpose(perm = var_201, x = context_layer_5_cast_fp16)[name = tensor<string, []>("transpose_28")];
136
+ tensor<fp16, [1, 128, 512]> input_33_cast_fp16 = reshape(shape = var_206, x = var_202_cast_fp16)[name = tensor<string, []>("input_33_cast_fp16")];
137
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(41639680)))];
138
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42164032)))];
139
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_9_cast_fp16")];
140
+ tensor<fp16, [1, 128, 512]> input_37_cast_fp16 = add(x = linear_9_cast_fp16, y = input_27_cast_fp16)[name = tensor<string, []>("input_37_cast_fp16")];
141
+ tensor<int32, [1]> input_39_axes_0 = const()[name = tensor<string, []>("input_39_axes_0"), val = tensor<int32, [1]>([-1])];
142
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42165120)))];
143
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42166208)))];
144
+ tensor<fp16, [1, 128, 512]> 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<string, []>("input_39_cast_fp16")];
145
+ tensor<fp16, [4096, 512]> m_encoder_layer_1_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42167296)))];
146
+ tensor<fp16, [1, 128, 4096]> 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<string, []>("linear_10_cast_fp16")];
147
+ tensor<int32, [3]> input_41_begin_0 = const()[name = tensor<string, []>("input_41_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
148
+ tensor<int32, [3]> input_41_end_0 = const()[name = tensor<string, []>("input_41_end_0"), val = tensor<int32, [3]>([1, 128, 2048])];
149
+ tensor<bool, [3]> input_41_end_mask_0 = const()[name = tensor<string, []>("input_41_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
150
+ tensor<fp16, [1, 128, 2048]> 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<string, []>("input_41_cast_fp16")];
151
+ tensor<int32, [3]> non_gated_3_begin_0 = const()[name = tensor<string, []>("non_gated_3_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
152
+ tensor<int32, [3]> non_gated_3_end_0 = const()[name = tensor<string, []>("non_gated_3_end_0"), val = tensor<int32, [3]>([1, 128, 4096])];
153
+ tensor<bool, [3]> non_gated_3_end_mask_0 = const()[name = tensor<string, []>("non_gated_3_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
154
+ tensor<fp16, [1, 128, 2048]> 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<string, []>("non_gated_3_cast_fp16")];
155
+ tensor<string, []> var_230_mode_0 = const()[name = tensor<string, []>("op_230_mode_0"), val = tensor<string, []>("EXACT")];
156
+ tensor<fp16, [1, 128, 2048]> var_230_cast_fp16 = gelu(mode = var_230_mode_0, x = input_41_cast_fp16)[name = tensor<string, []>("op_230_cast_fp16")];
157
+ tensor<fp16, [1, 128, 2048]> input_43_cast_fp16 = mul(x = var_230_cast_fp16, y = non_gated_3_cast_fp16)[name = tensor<string, []>("input_43_cast_fp16")];
158
+ tensor<fp16, [512, 2048]> m_encoder_layer_1_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(46361664)))];
159
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(48458880)))];
160
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_11_cast_fp16")];
161
+ tensor<fp16, [1, 128, 512]> input_47_cast_fp16 = add(x = linear_11_cast_fp16, y = input_39_cast_fp16)[name = tensor<string, []>("input_47_cast_fp16")];
162
+ tensor<int32, [1]> input_49_axes_0 = const()[name = tensor<string, []>("input_49_axes_0"), val = tensor<int32, [1]>([-1])];
163
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(48459968)))];
164
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(48461056)))];
165
+ tensor<fp16, [1, 128, 512]> 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<string, []>("input_49_cast_fp16")];
166
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(48462144)))];
167
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(48986496)))];
168
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_12_cast_fp16")];
169
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(48987584)))];
170
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(49511936)))];
171
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_13_cast_fp16")];
172
+ tensor<int32, [4]> var_256 = const()[name = tensor<string, []>("op_256"), val = tensor<int32, [4]>([1, 128, 8, 64])];
173
+ tensor<fp16, [1, 128, 8, 64]> x_27_cast_fp16 = reshape(shape = var_256, x = linear_13_cast_fp16)[name = tensor<string, []>("x_27_cast_fp16")];
174
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(49513024)))];
175
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50037376)))];
176
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_14_cast_fp16")];
177
+ tensor<int32, [4]> var_265 = const()[name = tensor<string, []>("op_265"), val = tensor<int32, [4]>([1, 128, 8, 64])];
178
+ tensor<fp16, [1, 128, 8, 64]> x_31_cast_fp16 = reshape(shape = var_265, x = linear_14_cast_fp16)[name = tensor<string, []>("x_31_cast_fp16")];
179
+ tensor<int32, [4]> var_267 = const()[name = tensor<string, []>("op_267"), val = tensor<int32, [4]>([0, 2, 1, 3])];
180
+ tensor<int32, [4]> var_271 = const()[name = tensor<string, []>("op_271"), val = tensor<int32, [4]>([1, 128, 8, 64])];
181
+ tensor<fp16, [1, 128, 8, 64]> x_35_cast_fp16 = reshape(shape = var_271, x = linear_12_cast_fp16)[name = tensor<string, []>("x_35_cast_fp16")];
182
+ tensor<bool, []> attention_scores_13_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_13_transpose_x_0"), val = tensor<bool, []>(false)];
183
+ tensor<bool, []> attention_scores_13_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_13_transpose_y_0"), val = tensor<bool, []>(false)];
184
+ tensor<int32, [4]> transpose_16_perm_0 = const()[name = tensor<string, []>("transpose_16_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
185
+ tensor<int32, [4]> transpose_17_perm_0 = const()[name = tensor<string, []>("transpose_17_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
186
+ tensor<fp16, [1, 8, 64, 128]> transpose_17 = transpose(perm = transpose_17_perm_0, x = x_27_cast_fp16)[name = tensor<string, []>("transpose_25")];
187
+ tensor<fp16, [1, 8, 128, 64]> transpose_16 = transpose(perm = transpose_16_perm_0, x = x_35_cast_fp16)[name = tensor<string, []>("transpose_26")];
188
+ tensor<fp16, [1, 8, 128, 128]> 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<string, []>("attention_scores_13_cast_fp16")];
189
+ tensor<fp16, []> _inversed_attention_scores_15_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_15_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
190
+ tensor<fp16, [1, 8, 128, 128]> _inversed_attention_scores_15_cast_fp16 = mul(x = attention_scores_13_cast_fp16, y = _inversed_attention_scores_15_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_15_cast_fp16")];
191
+ tensor<fp16, [1, 8, 128, 128]> attention_scores_17_cast_fp16 = add(x = _inversed_attention_scores_15_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_17_cast_fp16")];
192
+ tensor<fp16, [1, 8, 128, 128]> input_51_cast_fp16 = add(x = attention_scores_17_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_51_cast_fp16")];
193
+ tensor<fp16, [1, 8, 128, 128]> input_53_cast_fp16 = softmax(axis = var_16, x = input_51_cast_fp16)[name = tensor<string, []>("input_53_cast_fp16")];
194
+ tensor<bool, []> context_layer_9_transpose_x_0 = const()[name = tensor<string, []>("context_layer_9_transpose_x_0"), val = tensor<bool, []>(false)];
195
+ tensor<bool, []> context_layer_9_transpose_y_0 = const()[name = tensor<string, []>("context_layer_9_transpose_y_0"), val = tensor<bool, []>(false)];
196
+ tensor<fp16, [1, 8, 128, 64]> value_layer_5_cast_fp16 = transpose(perm = var_267, x = x_31_cast_fp16)[name = tensor<string, []>("transpose_27")];
197
+ tensor<fp16, [1, 8, 128, 64]> 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<string, []>("context_layer_9_cast_fp16")];
198
+ tensor<int32, [4]> var_284 = const()[name = tensor<string, []>("op_284"), val = tensor<int32, [4]>([0, 2, 1, 3])];
199
+ tensor<int32, [3]> var_289 = const()[name = tensor<string, []>("op_289"), val = tensor<int32, [3]>([1, 128, 512])];
200
+ tensor<fp16, [1, 128, 8, 64]> var_285_cast_fp16 = transpose(perm = var_284, x = context_layer_9_cast_fp16)[name = tensor<string, []>("transpose_24")];
201
+ tensor<fp16, [1, 128, 512]> input_55_cast_fp16 = reshape(shape = var_289, x = var_285_cast_fp16)[name = tensor<string, []>("input_55_cast_fp16")];
202
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50038464)))];
203
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50562816)))];
204
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_15_cast_fp16")];
205
+ tensor<fp16, [1, 128, 512]> input_59_cast_fp16 = add(x = linear_15_cast_fp16, y = input_49_cast_fp16)[name = tensor<string, []>("input_59_cast_fp16")];
206
+ tensor<int32, [1]> input_61_axes_0 = const()[name = tensor<string, []>("input_61_axes_0"), val = tensor<int32, [1]>([-1])];
207
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50563904)))];
208
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50564992)))];
209
+ tensor<fp16, [1, 128, 512]> 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<string, []>("input_61_cast_fp16")];
210
+ tensor<fp16, [4096, 512]> m_encoder_layer_2_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50566080)))];
211
+ tensor<fp16, [1, 128, 4096]> 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<string, []>("linear_16_cast_fp16")];
212
+ tensor<int32, [3]> input_63_begin_0 = const()[name = tensor<string, []>("input_63_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
213
+ tensor<int32, [3]> input_63_end_0 = const()[name = tensor<string, []>("input_63_end_0"), val = tensor<int32, [3]>([1, 128, 2048])];
214
+ tensor<bool, [3]> input_63_end_mask_0 = const()[name = tensor<string, []>("input_63_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
215
+ tensor<fp16, [1, 128, 2048]> 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<string, []>("input_63_cast_fp16")];
216
+ tensor<int32, [3]> non_gated_5_begin_0 = const()[name = tensor<string, []>("non_gated_5_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
217
+ tensor<int32, [3]> non_gated_5_end_0 = const()[name = tensor<string, []>("non_gated_5_end_0"), val = tensor<int32, [3]>([1, 128, 4096])];
218
+ tensor<bool, [3]> non_gated_5_end_mask_0 = const()[name = tensor<string, []>("non_gated_5_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
219
+ tensor<fp16, [1, 128, 2048]> 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<string, []>("non_gated_5_cast_fp16")];
220
+ tensor<string, []> var_313_mode_0 = const()[name = tensor<string, []>("op_313_mode_0"), val = tensor<string, []>("EXACT")];
221
+ tensor<fp16, [1, 128, 2048]> var_313_cast_fp16 = gelu(mode = var_313_mode_0, x = input_63_cast_fp16)[name = tensor<string, []>("op_313_cast_fp16")];
222
+ tensor<fp16, [1, 128, 2048]> input_65_cast_fp16 = mul(x = var_313_cast_fp16, y = non_gated_5_cast_fp16)[name = tensor<string, []>("input_65_cast_fp16")];
223
+ tensor<fp16, [512, 2048]> m_encoder_layer_2_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(54760448)))];
224
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(56857664)))];
225
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_17_cast_fp16")];
226
+ tensor<fp16, [1, 128, 512]> input_69_cast_fp16 = add(x = linear_17_cast_fp16, y = input_61_cast_fp16)[name = tensor<string, []>("input_69_cast_fp16")];
227
+ tensor<int32, [1]> input_71_axes_0 = const()[name = tensor<string, []>("input_71_axes_0"), val = tensor<int32, [1]>([-1])];
228
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(56858752)))];
229
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(56859840)))];
230
+ tensor<fp16, [1, 128, 512]> 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<string, []>("input_71_cast_fp16")];
231
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(56860928)))];
232
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(57385280)))];
233
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_18_cast_fp16")];
234
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(57386368)))];
235
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(57910720)))];
236
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_19_cast_fp16")];
237
+ tensor<int32, [4]> var_339 = const()[name = tensor<string, []>("op_339"), val = tensor<int32, [4]>([1, 128, 8, 64])];
238
+ tensor<fp16, [1, 128, 8, 64]> x_39_cast_fp16 = reshape(shape = var_339, x = linear_19_cast_fp16)[name = tensor<string, []>("x_39_cast_fp16")];
239
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(57911808)))];
240
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58436160)))];
241
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_20_cast_fp16")];
242
+ tensor<int32, [4]> var_348 = const()[name = tensor<string, []>("op_348"), val = tensor<int32, [4]>([1, 128, 8, 64])];
243
+ tensor<fp16, [1, 128, 8, 64]> x_43_cast_fp16 = reshape(shape = var_348, x = linear_20_cast_fp16)[name = tensor<string, []>("x_43_cast_fp16")];
244
+ tensor<int32, [4]> var_350 = const()[name = tensor<string, []>("op_350"), val = tensor<int32, [4]>([0, 2, 1, 3])];
245
+ tensor<int32, [4]> var_354 = const()[name = tensor<string, []>("op_354"), val = tensor<int32, [4]>([1, 128, 8, 64])];
246
+ tensor<fp16, [1, 128, 8, 64]> x_cast_fp16 = reshape(shape = var_354, x = linear_18_cast_fp16)[name = tensor<string, []>("x_cast_fp16")];
247
+ tensor<bool, []> attention_scores_19_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_19_transpose_x_0"), val = tensor<bool, []>(false)];
248
+ tensor<bool, []> attention_scores_19_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_19_transpose_y_0"), val = tensor<bool, []>(false)];
249
+ tensor<int32, [4]> transpose_18_perm_0 = const()[name = tensor<string, []>("transpose_18_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
250
+ tensor<int32, [4]> transpose_19_perm_0 = const()[name = tensor<string, []>("transpose_19_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
251
+ tensor<fp16, [1, 8, 64, 128]> transpose_19 = transpose(perm = transpose_19_perm_0, x = x_39_cast_fp16)[name = tensor<string, []>("transpose_21")];
252
+ tensor<fp16, [1, 8, 128, 64]> transpose_18 = transpose(perm = transpose_18_perm_0, x = x_cast_fp16)[name = tensor<string, []>("transpose_22")];
253
+ tensor<fp16, [1, 8, 128, 128]> 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<string, []>("attention_scores_19_cast_fp16")];
254
+ tensor<fp16, []> _inversed_attention_scores_21_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_21_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
255
+ tensor<fp16, [1, 8, 128, 128]> _inversed_attention_scores_21_cast_fp16 = mul(x = attention_scores_19_cast_fp16, y = _inversed_attention_scores_21_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_21_cast_fp16")];
256
+ tensor<fp16, [1, 8, 128, 128]> attention_scores_cast_fp16 = add(x = _inversed_attention_scores_21_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_cast_fp16")];
257
+ tensor<fp16, [1, 8, 128, 128]> input_73_cast_fp16 = add(x = attention_scores_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_73_cast_fp16")];
258
+ tensor<fp16, [1, 8, 128, 128]> input_75_cast_fp16 = softmax(axis = var_16, x = input_73_cast_fp16)[name = tensor<string, []>("input_75_cast_fp16")];
259
+ tensor<bool, []> context_layer_13_transpose_x_0 = const()[name = tensor<string, []>("context_layer_13_transpose_x_0"), val = tensor<bool, []>(false)];
260
+ tensor<bool, []> context_layer_13_transpose_y_0 = const()[name = tensor<string, []>("context_layer_13_transpose_y_0"), val = tensor<bool, []>(false)];
261
+ tensor<fp16, [1, 8, 128, 64]> value_layer_cast_fp16 = transpose(perm = var_350, x = x_43_cast_fp16)[name = tensor<string, []>("transpose_23")];
262
+ tensor<fp16, [1, 8, 128, 64]> 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<string, []>("context_layer_13_cast_fp16")];
263
+ tensor<int32, [4]> var_367 = const()[name = tensor<string, []>("op_367"), val = tensor<int32, [4]>([0, 2, 1, 3])];
264
+ tensor<int32, [3]> var_372 = const()[name = tensor<string, []>("op_372"), val = tensor<int32, [3]>([1, 128, 512])];
265
+ tensor<fp16, [1, 128, 8, 64]> var_368_cast_fp16 = transpose(perm = var_367, x = context_layer_13_cast_fp16)[name = tensor<string, []>("transpose_20")];
266
+ tensor<fp16, [1, 128, 512]> input_77_cast_fp16 = reshape(shape = var_372, x = var_368_cast_fp16)[name = tensor<string, []>("input_77_cast_fp16")];
267
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58437248)))];
268
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58961600)))];
269
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_21_cast_fp16")];
270
+ tensor<fp16, [1, 128, 512]> input_81_cast_fp16 = add(x = linear_21_cast_fp16, y = input_71_cast_fp16)[name = tensor<string, []>("input_81_cast_fp16")];
271
+ tensor<int32, [1]> input_83_axes_0 = const()[name = tensor<string, []>("input_83_axes_0"), val = tensor<int32, [1]>([-1])];
272
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58962688)))];
273
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58963776)))];
274
+ tensor<fp16, [1, 128, 512]> 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<string, []>("input_83_cast_fp16")];
275
+ tensor<fp16, [4096, 512]> m_encoder_layer_3_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58964864)))];
276
+ tensor<fp16, [1, 128, 4096]> 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<string, []>("linear_22_cast_fp16")];
277
+ tensor<int32, [3]> input_85_begin_0 = const()[name = tensor<string, []>("input_85_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
278
+ tensor<int32, [3]> input_85_end_0 = const()[name = tensor<string, []>("input_85_end_0"), val = tensor<int32, [3]>([1, 128, 2048])];
279
+ tensor<bool, [3]> input_85_end_mask_0 = const()[name = tensor<string, []>("input_85_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
280
+ tensor<fp16, [1, 128, 2048]> 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<string, []>("input_85_cast_fp16")];
281
+ tensor<int32, [3]> non_gated_begin_0 = const()[name = tensor<string, []>("non_gated_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
282
+ tensor<int32, [3]> non_gated_end_0 = const()[name = tensor<string, []>("non_gated_end_0"), val = tensor<int32, [3]>([1, 128, 4096])];
283
+ tensor<bool, [3]> non_gated_end_mask_0 = const()[name = tensor<string, []>("non_gated_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
284
+ tensor<fp16, [1, 128, 2048]> 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<string, []>("non_gated_cast_fp16")];
285
+ tensor<string, []> var_396_mode_0 = const()[name = tensor<string, []>("op_396_mode_0"), val = tensor<string, []>("EXACT")];
286
+ tensor<fp16, [1, 128, 2048]> var_396_cast_fp16 = gelu(mode = var_396_mode_0, x = input_85_cast_fp16)[name = tensor<string, []>("op_396_cast_fp16")];
287
+ tensor<fp16, [1, 128, 2048]> input_87_cast_fp16 = mul(x = var_396_cast_fp16, y = non_gated_cast_fp16)[name = tensor<string, []>("input_87_cast_fp16")];
288
+ tensor<fp16, [512, 2048]> m_encoder_layer_3_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(63159232)))];
289
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(65256448)))];
290
+ tensor<fp16, [1, 128, 512]> 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<string, []>("linear_23_cast_fp16")];
291
+ tensor<fp16, [1, 128, 512]> input_91_cast_fp16 = add(x = linear_23_cast_fp16, y = input_83_cast_fp16)[name = tensor<string, []>("input_91_cast_fp16")];
292
+ tensor<int32, [1]> hidden_states_axes_0 = const()[name = tensor<string, []>("hidden_states_axes_0"), val = tensor<int32, [1]>([-1])];
293
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(65257536)))];
294
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(65258624)))];
295
+ tensor<fp16, [1, 128, 512]> 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<string, []>("hidden_states_cast_fp16")];
296
+ tensor<int32, [1]> var_408_axes_0 = const()[name = tensor<string, []>("op_408_axes_0"), val = tensor<int32, [1]>([-1])];
297
+ tensor<int32, [1, 128, 1]> var_408 = expand_dims(axes = var_408_axes_0, x = cast_0)[name = tensor<string, []>("op_408")];
298
+ tensor<string, []> cast_28_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_28_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
299
+ tensor<fp16, [1, 128, 1]> var_408_to_fp16 = cast(dtype = cast_28_to_fp16_dtype_0, x = var_408)[name = tensor<string, []>("cast_34")];
300
+ tensor<fp16, [1, 128, 512]> var_414_cast_fp16 = mul(x = hidden_states_cast_fp16, y = var_408_to_fp16)[name = tensor<string, []>("op_414_cast_fp16")];
301
+ tensor<int32, [1]> var_419_axes_0 = const()[name = tensor<string, []>("op_419_axes_0"), val = tensor<int32, [1]>([1])];
302
+ tensor<bool, []> var_419_keep_dims_0 = const()[name = tensor<string, []>("op_419_keep_dims_0"), val = tensor<bool, []>(false)];
303
+ tensor<fp16, [1, 512]> 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<string, []>("op_419_cast_fp16")];
304
+ tensor<int32, [1]> var_424_axes_0 = const()[name = tensor<string, []>("op_424_axes_0"), val = tensor<int32, [1]>([1])];
305
+ tensor<bool, []> var_424_keep_dims_0 = const()[name = tensor<string, []>("op_424_keep_dims_0"), val = tensor<bool, []>(false)];
306
+ tensor<fp16, [1, 1]> 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<string, []>("op_424_cast_fp16")];
307
+ tensor<fp16, []> var_425_to_fp16 = const()[name = tensor<string, []>("op_425_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
308
+ tensor<fp16, []> const_35_to_fp16 = const()[name = tensor<string, []>("const_35_to_fp16"), val = tensor<fp16, []>(inf)];
309
+ tensor<fp16, [1, 1]> clip_0_cast_fp16 = clip(alpha = var_425_to_fp16, beta = const_35_to_fp16, x = var_424_cast_fp16)[name = tensor<string, []>("clip_0_cast_fp16")];
310
+ tensor<fp16, [1, 512]> input_cast_fp16 = real_div(x = var_419_cast_fp16, y = clip_0_cast_fp16)[name = tensor<string, []>("input_cast_fp16")];
311
+ tensor<int32, [1]> var_431 = const()[name = tensor<string, []>("op_431"), val = tensor<int32, [1]>([-1])];
312
+ tensor<bool, []> var_432 = const()[name = tensor<string, []>("op_432"), val = tensor<bool, []>(true)];
313
+ tensor<fp16, [1, 1]> var_434_cast_fp16 = reduce_l2_norm(axes = var_431, keep_dims = var_432, x = input_cast_fp16)[name = tensor<string, []>("op_434_cast_fp16")];
314
+ tensor<fp16, []> var_435_to_fp16 = const()[name = tensor<string, []>("op_435_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
315
+ tensor<fp16, [1, 1]> var_436_cast_fp16 = maximum(x = var_434_cast_fp16, y = var_435_to_fp16)[name = tensor<string, []>("op_436_cast_fp16")];
316
+ tensor<int32, [2]> denom_reps_0 = const()[name = tensor<string, []>("denom_reps_0"), val = tensor<int32, [2]>([1, 512])];
317
+ tensor<fp16, [1, 512]> denom_cast_fp16 = tile(reps = denom_reps_0, x = var_436_cast_fp16)[name = tensor<string, []>("denom_cast_fp16")];
318
+ tensor<fp16, [1, 512]> embedding = real_div(x = input_cast_fp16, y = denom_cast_fp16)[name = tensor<string, []>("op_438_cast_fp16")];
319
+ } -> (embedding);
320
+ }
jina_embedding_128.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc40c4341c0c984531a2fa3dbedf9b0cd3f82d08425aa1fff22086af03d8672e
3
+ size 65259712
jina_embedding_256.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:657b80f3466d4569028ca537965c0d6df58ecae001dedd420ede7b0424ec2323
3
+ size 243
jina_embedding_256.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77a610ceded9a098314665b89b48380996aec55236a099f37bb239d02639c2f1
3
+ size 318
jina_embedding_256.mlmodelc/metadata.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Float16",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 512)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 512]",
13
+ "name" : "embedding",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 8,
21
+ "mlProgramOperationTypeHistogram" : {
22
+ "Ios17.mul" : 10,
23
+ "Ios17.notEqual" : 1,
24
+ "Ios17.reshape" : 16,
25
+ "Ios16.softmax" : 4,
26
+ "Ios17.matmul" : 8,
27
+ "Ios17.maximum" : 1,
28
+ "Ios17.transpose" : 16,
29
+ "Ios17.expandDims" : 3,
30
+ "Ios17.add" : 17,
31
+ "Tile" : 1,
32
+ "Ios17.sliceByIndex" : 8,
33
+ "Ios16.reduceSum" : 2,
34
+ "Ios17.gather" : 1,
35
+ "Ios17.layerNorm" : 9,
36
+ "Ios17.clip" : 1,
37
+ "Ios17.sub" : 1,
38
+ "Ios16.gelu" : 4,
39
+ "Ios17.cast" : 4,
40
+ "Ios17.realDiv" : 2,
41
+ "Ios17.linear" : 24,
42
+ "Ios16.reduceL2Norm" : 1
43
+ },
44
+ "computePrecision" : "Mixed (Float16, Int16, Int32)",
45
+ "isUpdatable" : "0",
46
+ "stateSchema" : [
47
+
48
+ ],
49
+ "availability" : {
50
+ "macOS" : "14.0",
51
+ "tvOS" : "17.0",
52
+ "visionOS" : "1.0",
53
+ "watchOS" : "10.0",
54
+ "iOS" : "17.0",
55
+ "macCatalyst" : "17.0"
56
+ },
57
+ "modelType" : {
58
+ "name" : "MLModelType_mlProgram"
59
+ },
60
+ "userDefinedMetadata" : {
61
+ "com.github.apple.coremltools.version" : "8.3.0",
62
+ "com.github.apple.coremltools.source" : "torch==2.5.1",
63
+ "com.github.apple.coremltools.source_dialect" : "TorchScript"
64
+ },
65
+ "inputSchema" : [
66
+ {
67
+ "hasShapeFlexibility" : "0",
68
+ "isOptional" : "0",
69
+ "dataType" : "Int32",
70
+ "formattedType" : "MultiArray (Int32 1 × 256)",
71
+ "shortDescription" : "",
72
+ "shape" : "[1, 256]",
73
+ "name" : "input_ids",
74
+ "type" : "MultiArray"
75
+ }
76
+ ],
77
+ "generatedClassName" : "jina_embedding_ane_256",
78
+ "method" : "predict"
79
+ }
80
+ ]
jina_embedding_256.mlmodelc/model.mil ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ program(1.0)
2
+ [buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3510.2.1"}, {"coremlc-version", "3500.32.1"}, {"coremltools-component-torch", "2.5.1"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "8.3.0"}})]
3
+ {
4
+ func main<ios17>(tensor<int32, [1, 256]> input_ids) {
5
+ tensor<int32, []> var_3 = const()[name = tensor<string, []>("op_3"), val = tensor<int32, []>(0)];
6
+ tensor<bool, [1, 256]> var_4 = not_equal(x = input_ids, y = var_3)[name = tensor<string, []>("op_4")];
7
+ tensor<string, []> cast_0_dtype_0 = const()[name = tensor<string, []>("cast_0_dtype_0"), val = tensor<string, []>("int32")];
8
+ tensor<int32, []> var_16 = const()[name = tensor<string, []>("op_16"), val = tensor<int32, []>(-1)];
9
+ tensor<int32, [1]> var_41_axes_0 = const()[name = tensor<string, []>("op_41_axes_0"), val = tensor<int32, [1]>([1])];
10
+ tensor<int32, [1, 256]> cast_0 = cast(dtype = cast_0_dtype_0, x = var_4)[name = tensor<string, []>("cast_37")];
11
+ tensor<int32, [1, 1, 256]> var_41 = expand_dims(axes = var_41_axes_0, x = cast_0)[name = tensor<string, []>("op_41")];
12
+ tensor<int32, [1]> var_42_axes_0 = const()[name = tensor<string, []>("op_42_axes_0"), val = tensor<int32, [1]>([2])];
13
+ tensor<int32, [1, 1, 1, 256]> var_42 = expand_dims(axes = var_42_axes_0, x = var_41)[name = tensor<string, []>("op_42")];
14
+ tensor<fp16, []> var_21_to_fp16 = const()[name = tensor<string, []>("op_21_to_fp16"), val = tensor<fp16, []>(0x1p+0)];
15
+ tensor<string, []> cast_1_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_1_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
16
+ tensor<fp16, [1, 1, 1, 256]> var_42_to_fp16 = cast(dtype = cast_1_to_fp16_dtype_0, x = var_42)[name = tensor<string, []>("cast_36")];
17
+ tensor<fp16, [1, 1, 1, 256]> var_45_cast_fp16 = sub(x = var_21_to_fp16, y = var_42_to_fp16)[name = tensor<string, []>("op_45_cast_fp16")];
18
+ tensor<fp16, []> var_46_to_fp16 = const()[name = tensor<string, []>("op_46_to_fp16"), val = tensor<fp16, []>(-0x1.d4cp+14)];
19
+ tensor<fp16, [1, 1, 1, 256]> attention_mask_cast_fp16 = mul(x = var_45_cast_fp16, y = var_46_to_fp16)[name = tensor<string, []>("attention_mask_cast_fp16")];
20
+ tensor<int32, []> inputs_embeds_axis_0 = const()[name = tensor<string, []>("inputs_embeds_axis_0"), val = tensor<int32, []>(0)];
21
+ tensor<int32, []> inputs_embeds_batch_dims_0 = const()[name = tensor<string, []>("inputs_embeds_batch_dims_0"), val = tensor<int32, []>(0)];
22
+ tensor<bool, []> inputs_embeds_validate_indices_0 = const()[name = tensor<string, []>("inputs_embeds_validate_indices_0"), val = tensor<bool, []>(false)];
23
+ tensor<fp16, [30528, 512]> m_embeddings_word_embeddings_weight_to_fp16 = const()[name = tensor<string, []>("m_embeddings_word_embeddings_weight_to_fp16"), val = tensor<fp16, [30528, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(64)))];
24
+ tensor<string, []> input_ids_to_int16_dtype_0 = const()[name = tensor<string, []>("input_ids_to_int16_dtype_0"), val = tensor<string, []>("int16")];
25
+ tensor<int16, [1, 256]> input_ids_to_int16 = cast(dtype = input_ids_to_int16_dtype_0, x = input_ids)[name = tensor<string, []>("cast_35")];
26
+ tensor<fp16, [1, 256, 512]> 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<string, []>("inputs_embeds_cast_fp16_cast_uint16")];
27
+ tensor<fp16, [1, 256, 512]> token_type_embeddings_1_to_fp16 = const()[name = tensor<string, []>("token_type_embeddings_1_to_fp16"), val = tensor<fp16, [1, 256, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31260800)))];
28
+ tensor<fp16, [1, 256, 512]> input_3_cast_fp16 = add(x = inputs_embeds_cast_fp16_cast_uint16, y = token_type_embeddings_1_to_fp16)[name = tensor<string, []>("input_3_cast_fp16")];
29
+ tensor<int32, [1]> input_5_axes_0 = const()[name = tensor<string, []>("input_5_axes_0"), val = tensor<int32, [1]>([-1])];
30
+ tensor<fp16, [512]> m_embeddings_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_embeddings_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31523008)))];
31
+ tensor<fp16, [512]> m_embeddings_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_embeddings_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31524096)))];
32
+ tensor<fp16, []> var_18_to_fp16 = const()[name = tensor<string, []>("op_18_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
33
+ tensor<fp16, [1, 256, 512]> 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<string, []>("input_5_cast_fp16")];
34
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(31525184)))];
35
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32049536)))];
36
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_0_cast_fp16")];
37
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32050624)))];
38
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32574976)))];
39
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_1_cast_fp16")];
40
+ tensor<int32, [4]> var_90 = const()[name = tensor<string, []>("op_90"), val = tensor<int32, [4]>([1, 256, 8, 64])];
41
+ tensor<fp16, [1, 256, 8, 64]> x_3_cast_fp16 = reshape(shape = var_90, x = linear_1_cast_fp16)[name = tensor<string, []>("x_3_cast_fp16")];
42
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(32576064)))];
43
+ tensor<fp16, [512]> m_encoder_layer_0_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33100416)))];
44
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_2_cast_fp16")];
45
+ tensor<int32, [4]> var_99 = const()[name = tensor<string, []>("op_99"), val = tensor<int32, [4]>([1, 256, 8, 64])];
46
+ tensor<fp16, [1, 256, 8, 64]> x_7_cast_fp16 = reshape(shape = var_99, x = linear_2_cast_fp16)[name = tensor<string, []>("x_7_cast_fp16")];
47
+ tensor<int32, [4]> var_101 = const()[name = tensor<string, []>("op_101"), val = tensor<int32, [4]>([0, 2, 1, 3])];
48
+ tensor<int32, [4]> var_105 = const()[name = tensor<string, []>("op_105"), val = tensor<int32, [4]>([1, 256, 8, 64])];
49
+ tensor<fp16, [1, 256, 8, 64]> x_11_cast_fp16 = reshape(shape = var_105, x = linear_0_cast_fp16)[name = tensor<string, []>("x_11_cast_fp16")];
50
+ tensor<bool, []> attention_scores_1_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_1_transpose_x_0"), val = tensor<bool, []>(false)];
51
+ tensor<bool, []> attention_scores_1_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_1_transpose_y_0"), val = tensor<bool, []>(false)];
52
+ tensor<int32, [4]> transpose_12_perm_0 = const()[name = tensor<string, []>("transpose_12_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
53
+ tensor<int32, [4]> transpose_13_perm_0 = const()[name = tensor<string, []>("transpose_13_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
54
+ tensor<fp16, [1, 8, 64, 256]> transpose_13 = transpose(perm = transpose_13_perm_0, x = x_3_cast_fp16)[name = tensor<string, []>("transpose_33")];
55
+ tensor<fp16, [1, 8, 256, 64]> transpose_12 = transpose(perm = transpose_12_perm_0, x = x_11_cast_fp16)[name = tensor<string, []>("transpose_34")];
56
+ tensor<fp16, [1, 8, 256, 256]> 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<string, []>("attention_scores_1_cast_fp16")];
57
+ tensor<fp16, []> _inversed_attention_scores_3_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_3_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
58
+ tensor<fp16, [1, 8, 256, 256]> _inversed_attention_scores_3_cast_fp16 = mul(x = attention_scores_1_cast_fp16, y = _inversed_attention_scores_3_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_3_cast_fp16")];
59
+ tensor<fp16, [1, 8, 256, 256]> attention_scores_5_cast_fp16 = add(x = _inversed_attention_scores_3_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_5_cast_fp16")];
60
+ tensor<fp16, [1, 8, 256, 256]> bias_3_to_fp16 = const()[name = tensor<string, []>("bias_3_to_fp16"), val = tensor<fp16, [1, 8, 256, 256]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(33101504)))];
61
+ tensor<fp16, [1, 8, 256, 256]> input_7_cast_fp16 = add(x = attention_scores_5_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_7_cast_fp16")];
62
+ tensor<fp16, [1, 8, 256, 256]> input_9_cast_fp16 = softmax(axis = var_16, x = input_7_cast_fp16)[name = tensor<string, []>("input_9_cast_fp16")];
63
+ tensor<bool, []> context_layer_1_transpose_x_0 = const()[name = tensor<string, []>("context_layer_1_transpose_x_0"), val = tensor<bool, []>(false)];
64
+ tensor<bool, []> context_layer_1_transpose_y_0 = const()[name = tensor<string, []>("context_layer_1_transpose_y_0"), val = tensor<bool, []>(false)];
65
+ tensor<fp16, [1, 8, 256, 64]> value_layer_1_cast_fp16 = transpose(perm = var_101, x = x_7_cast_fp16)[name = tensor<string, []>("transpose_35")];
66
+ tensor<fp16, [1, 8, 256, 64]> 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<string, []>("context_layer_1_cast_fp16")];
67
+ tensor<int32, [4]> var_118 = const()[name = tensor<string, []>("op_118"), val = tensor<int32, [4]>([0, 2, 1, 3])];
68
+ tensor<int32, [3]> var_123 = const()[name = tensor<string, []>("op_123"), val = tensor<int32, [3]>([1, 256, 512])];
69
+ tensor<fp16, [1, 256, 8, 64]> var_119_cast_fp16 = transpose(perm = var_118, x = context_layer_1_cast_fp16)[name = tensor<string, []>("transpose_32")];
70
+ tensor<fp16, [1, 256, 512]> input_11_cast_fp16 = reshape(shape = var_123, x = var_119_cast_fp16)[name = tensor<string, []>("input_11_cast_fp16")];
71
+ tensor<fp16, [512, 512]> m_encoder_layer_0_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(34150144)))];
72
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(34674496)))];
73
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_3_cast_fp16")];
74
+ tensor<fp16, [1, 256, 512]> input_15_cast_fp16 = add(x = linear_3_cast_fp16, y = input_5_cast_fp16)[name = tensor<string, []>("input_15_cast_fp16")];
75
+ tensor<int32, [1]> input_17_axes_0 = const()[name = tensor<string, []>("input_17_axes_0"), val = tensor<int32, [1]>([-1])];
76
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(34675584)))];
77
+ tensor<fp16, [512]> m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(34676672)))];
78
+ tensor<fp16, [1, 256, 512]> 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<string, []>("input_17_cast_fp16")];
79
+ tensor<fp16, [4096, 512]> m_encoder_layer_0_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(34677760)))];
80
+ tensor<fp16, [4096]> linear_4_bias_0_to_fp16 = const()[name = tensor<string, []>("linear_4_bias_0_to_fp16"), val = tensor<fp16, [4096]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(38872128)))];
81
+ tensor<fp16, [1, 256, 4096]> 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<string, []>("linear_4_cast_fp16")];
82
+ tensor<int32, [3]> input_19_begin_0 = const()[name = tensor<string, []>("input_19_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
83
+ tensor<int32, [3]> input_19_end_0 = const()[name = tensor<string, []>("input_19_end_0"), val = tensor<int32, [3]>([1, 256, 2048])];
84
+ tensor<bool, [3]> input_19_end_mask_0 = const()[name = tensor<string, []>("input_19_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
85
+ tensor<fp16, [1, 256, 2048]> 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<string, []>("input_19_cast_fp16")];
86
+ tensor<int32, [3]> non_gated_1_begin_0 = const()[name = tensor<string, []>("non_gated_1_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
87
+ tensor<int32, [3]> non_gated_1_end_0 = const()[name = tensor<string, []>("non_gated_1_end_0"), val = tensor<int32, [3]>([1, 256, 4096])];
88
+ tensor<bool, [3]> non_gated_1_end_mask_0 = const()[name = tensor<string, []>("non_gated_1_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
89
+ tensor<fp16, [1, 256, 2048]> 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<string, []>("non_gated_1_cast_fp16")];
90
+ tensor<string, []> var_147_mode_0 = const()[name = tensor<string, []>("op_147_mode_0"), val = tensor<string, []>("EXACT")];
91
+ tensor<fp16, [1, 256, 2048]> var_147_cast_fp16 = gelu(mode = var_147_mode_0, x = input_19_cast_fp16)[name = tensor<string, []>("op_147_cast_fp16")];
92
+ tensor<fp16, [1, 256, 2048]> input_21_cast_fp16 = mul(x = var_147_cast_fp16, y = non_gated_1_cast_fp16)[name = tensor<string, []>("input_21_cast_fp16")];
93
+ tensor<fp16, [512, 2048]> m_encoder_layer_0_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(38880384)))];
94
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40977600)))];
95
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_5_cast_fp16")];
96
+ tensor<fp16, [1, 256, 512]> input_25_cast_fp16 = add(x = linear_5_cast_fp16, y = input_17_cast_fp16)[name = tensor<string, []>("input_25_cast_fp16")];
97
+ tensor<int32, [1]> input_27_axes_0 = const()[name = tensor<string, []>("input_27_axes_0"), val = tensor<int32, [1]>([-1])];
98
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40978688)))];
99
+ tensor<fp16, [512]> m_encoder_layer_0_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_0_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40979776)))];
100
+ tensor<fp16, [1, 256, 512]> 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<string, []>("input_27_cast_fp16")];
101
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(40980864)))];
102
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(41505216)))];
103
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_6_cast_fp16")];
104
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(41506304)))];
105
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42030656)))];
106
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_7_cast_fp16")];
107
+ tensor<int32, [4]> var_173 = const()[name = tensor<string, []>("op_173"), val = tensor<int32, [4]>([1, 256, 8, 64])];
108
+ tensor<fp16, [1, 256, 8, 64]> x_15_cast_fp16 = reshape(shape = var_173, x = linear_7_cast_fp16)[name = tensor<string, []>("x_15_cast_fp16")];
109
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42031744)))];
110
+ tensor<fp16, [512]> m_encoder_layer_1_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42556096)))];
111
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_8_cast_fp16")];
112
+ tensor<int32, [4]> var_182 = const()[name = tensor<string, []>("op_182"), val = tensor<int32, [4]>([1, 256, 8, 64])];
113
+ tensor<fp16, [1, 256, 8, 64]> x_19_cast_fp16 = reshape(shape = var_182, x = linear_8_cast_fp16)[name = tensor<string, []>("x_19_cast_fp16")];
114
+ tensor<int32, [4]> var_184 = const()[name = tensor<string, []>("op_184"), val = tensor<int32, [4]>([0, 2, 1, 3])];
115
+ tensor<int32, [4]> var_188 = const()[name = tensor<string, []>("op_188"), val = tensor<int32, [4]>([1, 256, 8, 64])];
116
+ tensor<fp16, [1, 256, 8, 64]> x_23_cast_fp16 = reshape(shape = var_188, x = linear_6_cast_fp16)[name = tensor<string, []>("x_23_cast_fp16")];
117
+ tensor<bool, []> attention_scores_7_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_7_transpose_x_0"), val = tensor<bool, []>(false)];
118
+ tensor<bool, []> attention_scores_7_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_7_transpose_y_0"), val = tensor<bool, []>(false)];
119
+ tensor<int32, [4]> transpose_14_perm_0 = const()[name = tensor<string, []>("transpose_14_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
120
+ tensor<int32, [4]> transpose_15_perm_0 = const()[name = tensor<string, []>("transpose_15_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
121
+ tensor<fp16, [1, 8, 64, 256]> transpose_15 = transpose(perm = transpose_15_perm_0, x = x_15_cast_fp16)[name = tensor<string, []>("transpose_29")];
122
+ tensor<fp16, [1, 8, 256, 64]> transpose_14 = transpose(perm = transpose_14_perm_0, x = x_23_cast_fp16)[name = tensor<string, []>("transpose_30")];
123
+ tensor<fp16, [1, 8, 256, 256]> 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<string, []>("attention_scores_7_cast_fp16")];
124
+ tensor<fp16, []> _inversed_attention_scores_9_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_9_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
125
+ tensor<fp16, [1, 8, 256, 256]> _inversed_attention_scores_9_cast_fp16 = mul(x = attention_scores_7_cast_fp16, y = _inversed_attention_scores_9_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_9_cast_fp16")];
126
+ tensor<fp16, [1, 8, 256, 256]> attention_scores_11_cast_fp16 = add(x = _inversed_attention_scores_9_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_11_cast_fp16")];
127
+ tensor<fp16, [1, 8, 256, 256]> input_29_cast_fp16 = add(x = attention_scores_11_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_29_cast_fp16")];
128
+ tensor<fp16, [1, 8, 256, 256]> input_31_cast_fp16 = softmax(axis = var_16, x = input_29_cast_fp16)[name = tensor<string, []>("input_31_cast_fp16")];
129
+ tensor<bool, []> context_layer_5_transpose_x_0 = const()[name = tensor<string, []>("context_layer_5_transpose_x_0"), val = tensor<bool, []>(false)];
130
+ tensor<bool, []> context_layer_5_transpose_y_0 = const()[name = tensor<string, []>("context_layer_5_transpose_y_0"), val = tensor<bool, []>(false)];
131
+ tensor<fp16, [1, 8, 256, 64]> value_layer_3_cast_fp16 = transpose(perm = var_184, x = x_19_cast_fp16)[name = tensor<string, []>("transpose_31")];
132
+ tensor<fp16, [1, 8, 256, 64]> 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<string, []>("context_layer_5_cast_fp16")];
133
+ tensor<int32, [4]> var_201 = const()[name = tensor<string, []>("op_201"), val = tensor<int32, [4]>([0, 2, 1, 3])];
134
+ tensor<int32, [3]> var_206 = const()[name = tensor<string, []>("op_206"), val = tensor<int32, [3]>([1, 256, 512])];
135
+ tensor<fp16, [1, 256, 8, 64]> var_202_cast_fp16 = transpose(perm = var_201, x = context_layer_5_cast_fp16)[name = tensor<string, []>("transpose_28")];
136
+ tensor<fp16, [1, 256, 512]> input_33_cast_fp16 = reshape(shape = var_206, x = var_202_cast_fp16)[name = tensor<string, []>("input_33_cast_fp16")];
137
+ tensor<fp16, [512, 512]> m_encoder_layer_1_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(42557184)))];
138
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(43081536)))];
139
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_9_cast_fp16")];
140
+ tensor<fp16, [1, 256, 512]> input_37_cast_fp16 = add(x = linear_9_cast_fp16, y = input_27_cast_fp16)[name = tensor<string, []>("input_37_cast_fp16")];
141
+ tensor<int32, [1]> input_39_axes_0 = const()[name = tensor<string, []>("input_39_axes_0"), val = tensor<int32, [1]>([-1])];
142
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(43082624)))];
143
+ tensor<fp16, [512]> m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(43083712)))];
144
+ tensor<fp16, [1, 256, 512]> 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<string, []>("input_39_cast_fp16")];
145
+ tensor<fp16, [4096, 512]> m_encoder_layer_1_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(43084800)))];
146
+ tensor<fp16, [1, 256, 4096]> 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<string, []>("linear_10_cast_fp16")];
147
+ tensor<int32, [3]> input_41_begin_0 = const()[name = tensor<string, []>("input_41_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
148
+ tensor<int32, [3]> input_41_end_0 = const()[name = tensor<string, []>("input_41_end_0"), val = tensor<int32, [3]>([1, 256, 2048])];
149
+ tensor<bool, [3]> input_41_end_mask_0 = const()[name = tensor<string, []>("input_41_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
150
+ tensor<fp16, [1, 256, 2048]> 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<string, []>("input_41_cast_fp16")];
151
+ tensor<int32, [3]> non_gated_3_begin_0 = const()[name = tensor<string, []>("non_gated_3_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
152
+ tensor<int32, [3]> non_gated_3_end_0 = const()[name = tensor<string, []>("non_gated_3_end_0"), val = tensor<int32, [3]>([1, 256, 4096])];
153
+ tensor<bool, [3]> non_gated_3_end_mask_0 = const()[name = tensor<string, []>("non_gated_3_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
154
+ tensor<fp16, [1, 256, 2048]> 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<string, []>("non_gated_3_cast_fp16")];
155
+ tensor<string, []> var_230_mode_0 = const()[name = tensor<string, []>("op_230_mode_0"), val = tensor<string, []>("EXACT")];
156
+ tensor<fp16, [1, 256, 2048]> var_230_cast_fp16 = gelu(mode = var_230_mode_0, x = input_41_cast_fp16)[name = tensor<string, []>("op_230_cast_fp16")];
157
+ tensor<fp16, [1, 256, 2048]> input_43_cast_fp16 = mul(x = var_230_cast_fp16, y = non_gated_3_cast_fp16)[name = tensor<string, []>("input_43_cast_fp16")];
158
+ tensor<fp16, [512, 2048]> m_encoder_layer_1_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(47279168)))];
159
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(49376384)))];
160
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_11_cast_fp16")];
161
+ tensor<fp16, [1, 256, 512]> input_47_cast_fp16 = add(x = linear_11_cast_fp16, y = input_39_cast_fp16)[name = tensor<string, []>("input_47_cast_fp16")];
162
+ tensor<int32, [1]> input_49_axes_0 = const()[name = tensor<string, []>("input_49_axes_0"), val = tensor<int32, [1]>([-1])];
163
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(49377472)))];
164
+ tensor<fp16, [512]> m_encoder_layer_1_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_1_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(49378560)))];
165
+ tensor<fp16, [1, 256, 512]> 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<string, []>("input_49_cast_fp16")];
166
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(49379648)))];
167
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(49904000)))];
168
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_12_cast_fp16")];
169
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(49905088)))];
170
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50429440)))];
171
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_13_cast_fp16")];
172
+ tensor<int32, [4]> var_256 = const()[name = tensor<string, []>("op_256"), val = tensor<int32, [4]>([1, 256, 8, 64])];
173
+ tensor<fp16, [1, 256, 8, 64]> x_27_cast_fp16 = reshape(shape = var_256, x = linear_13_cast_fp16)[name = tensor<string, []>("x_27_cast_fp16")];
174
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50430528)))];
175
+ tensor<fp16, [512]> m_encoder_layer_2_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50954880)))];
176
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_14_cast_fp16")];
177
+ tensor<int32, [4]> var_265 = const()[name = tensor<string, []>("op_265"), val = tensor<int32, [4]>([1, 256, 8, 64])];
178
+ tensor<fp16, [1, 256, 8, 64]> x_31_cast_fp16 = reshape(shape = var_265, x = linear_14_cast_fp16)[name = tensor<string, []>("x_31_cast_fp16")];
179
+ tensor<int32, [4]> var_267 = const()[name = tensor<string, []>("op_267"), val = tensor<int32, [4]>([0, 2, 1, 3])];
180
+ tensor<int32, [4]> var_271 = const()[name = tensor<string, []>("op_271"), val = tensor<int32, [4]>([1, 256, 8, 64])];
181
+ tensor<fp16, [1, 256, 8, 64]> x_35_cast_fp16 = reshape(shape = var_271, x = linear_12_cast_fp16)[name = tensor<string, []>("x_35_cast_fp16")];
182
+ tensor<bool, []> attention_scores_13_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_13_transpose_x_0"), val = tensor<bool, []>(false)];
183
+ tensor<bool, []> attention_scores_13_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_13_transpose_y_0"), val = tensor<bool, []>(false)];
184
+ tensor<int32, [4]> transpose_16_perm_0 = const()[name = tensor<string, []>("transpose_16_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
185
+ tensor<int32, [4]> transpose_17_perm_0 = const()[name = tensor<string, []>("transpose_17_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
186
+ tensor<fp16, [1, 8, 64, 256]> transpose_17 = transpose(perm = transpose_17_perm_0, x = x_27_cast_fp16)[name = tensor<string, []>("transpose_25")];
187
+ tensor<fp16, [1, 8, 256, 64]> transpose_16 = transpose(perm = transpose_16_perm_0, x = x_35_cast_fp16)[name = tensor<string, []>("transpose_26")];
188
+ tensor<fp16, [1, 8, 256, 256]> 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<string, []>("attention_scores_13_cast_fp16")];
189
+ tensor<fp16, []> _inversed_attention_scores_15_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_15_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
190
+ tensor<fp16, [1, 8, 256, 256]> _inversed_attention_scores_15_cast_fp16 = mul(x = attention_scores_13_cast_fp16, y = _inversed_attention_scores_15_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_15_cast_fp16")];
191
+ tensor<fp16, [1, 8, 256, 256]> attention_scores_17_cast_fp16 = add(x = _inversed_attention_scores_15_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_17_cast_fp16")];
192
+ tensor<fp16, [1, 8, 256, 256]> input_51_cast_fp16 = add(x = attention_scores_17_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_51_cast_fp16")];
193
+ tensor<fp16, [1, 8, 256, 256]> input_53_cast_fp16 = softmax(axis = var_16, x = input_51_cast_fp16)[name = tensor<string, []>("input_53_cast_fp16")];
194
+ tensor<bool, []> context_layer_9_transpose_x_0 = const()[name = tensor<string, []>("context_layer_9_transpose_x_0"), val = tensor<bool, []>(false)];
195
+ tensor<bool, []> context_layer_9_transpose_y_0 = const()[name = tensor<string, []>("context_layer_9_transpose_y_0"), val = tensor<bool, []>(false)];
196
+ tensor<fp16, [1, 8, 256, 64]> value_layer_5_cast_fp16 = transpose(perm = var_267, x = x_31_cast_fp16)[name = tensor<string, []>("transpose_27")];
197
+ tensor<fp16, [1, 8, 256, 64]> 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<string, []>("context_layer_9_cast_fp16")];
198
+ tensor<int32, [4]> var_284 = const()[name = tensor<string, []>("op_284"), val = tensor<int32, [4]>([0, 2, 1, 3])];
199
+ tensor<int32, [3]> var_289 = const()[name = tensor<string, []>("op_289"), val = tensor<int32, [3]>([1, 256, 512])];
200
+ tensor<fp16, [1, 256, 8, 64]> var_285_cast_fp16 = transpose(perm = var_284, x = context_layer_9_cast_fp16)[name = tensor<string, []>("transpose_24")];
201
+ tensor<fp16, [1, 256, 512]> input_55_cast_fp16 = reshape(shape = var_289, x = var_285_cast_fp16)[name = tensor<string, []>("input_55_cast_fp16")];
202
+ tensor<fp16, [512, 512]> m_encoder_layer_2_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(50955968)))];
203
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(51480320)))];
204
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_15_cast_fp16")];
205
+ tensor<fp16, [1, 256, 512]> input_59_cast_fp16 = add(x = linear_15_cast_fp16, y = input_49_cast_fp16)[name = tensor<string, []>("input_59_cast_fp16")];
206
+ tensor<int32, [1]> input_61_axes_0 = const()[name = tensor<string, []>("input_61_axes_0"), val = tensor<int32, [1]>([-1])];
207
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(51481408)))];
208
+ tensor<fp16, [512]> m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(51482496)))];
209
+ tensor<fp16, [1, 256, 512]> 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<string, []>("input_61_cast_fp16")];
210
+ tensor<fp16, [4096, 512]> m_encoder_layer_2_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(51483584)))];
211
+ tensor<fp16, [1, 256, 4096]> 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<string, []>("linear_16_cast_fp16")];
212
+ tensor<int32, [3]> input_63_begin_0 = const()[name = tensor<string, []>("input_63_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
213
+ tensor<int32, [3]> input_63_end_0 = const()[name = tensor<string, []>("input_63_end_0"), val = tensor<int32, [3]>([1, 256, 2048])];
214
+ tensor<bool, [3]> input_63_end_mask_0 = const()[name = tensor<string, []>("input_63_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
215
+ tensor<fp16, [1, 256, 2048]> 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<string, []>("input_63_cast_fp16")];
216
+ tensor<int32, [3]> non_gated_5_begin_0 = const()[name = tensor<string, []>("non_gated_5_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
217
+ tensor<int32, [3]> non_gated_5_end_0 = const()[name = tensor<string, []>("non_gated_5_end_0"), val = tensor<int32, [3]>([1, 256, 4096])];
218
+ tensor<bool, [3]> non_gated_5_end_mask_0 = const()[name = tensor<string, []>("non_gated_5_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
219
+ tensor<fp16, [1, 256, 2048]> 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<string, []>("non_gated_5_cast_fp16")];
220
+ tensor<string, []> var_313_mode_0 = const()[name = tensor<string, []>("op_313_mode_0"), val = tensor<string, []>("EXACT")];
221
+ tensor<fp16, [1, 256, 2048]> var_313_cast_fp16 = gelu(mode = var_313_mode_0, x = input_63_cast_fp16)[name = tensor<string, []>("op_313_cast_fp16")];
222
+ tensor<fp16, [1, 256, 2048]> input_65_cast_fp16 = mul(x = var_313_cast_fp16, y = non_gated_5_cast_fp16)[name = tensor<string, []>("input_65_cast_fp16")];
223
+ tensor<fp16, [512, 2048]> m_encoder_layer_2_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(55677952)))];
224
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(57775168)))];
225
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_17_cast_fp16")];
226
+ tensor<fp16, [1, 256, 512]> input_69_cast_fp16 = add(x = linear_17_cast_fp16, y = input_61_cast_fp16)[name = tensor<string, []>("input_69_cast_fp16")];
227
+ tensor<int32, [1]> input_71_axes_0 = const()[name = tensor<string, []>("input_71_axes_0"), val = tensor<int32, [1]>([-1])];
228
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(57776256)))];
229
+ tensor<fp16, [512]> m_encoder_layer_2_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_2_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(57777344)))];
230
+ tensor<fp16, [1, 256, 512]> 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<string, []>("input_71_cast_fp16")];
231
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_query_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_query_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(57778432)))];
232
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_query_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_query_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58302784)))];
233
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_18_cast_fp16")];
234
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_key_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_key_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58303872)))];
235
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_key_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_key_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58828224)))];
236
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_19_cast_fp16")];
237
+ tensor<int32, [4]> var_339 = const()[name = tensor<string, []>("op_339"), val = tensor<int32, [4]>([1, 256, 8, 64])];
238
+ tensor<fp16, [1, 256, 8, 64]> x_39_cast_fp16 = reshape(shape = var_339, x = linear_19_cast_fp16)[name = tensor<string, []>("x_39_cast_fp16")];
239
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_self_value_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_value_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(58829312)))];
240
+ tensor<fp16, [512]> m_encoder_layer_3_attention_self_value_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_self_value_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(59353664)))];
241
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_20_cast_fp16")];
242
+ tensor<int32, [4]> var_348 = const()[name = tensor<string, []>("op_348"), val = tensor<int32, [4]>([1, 256, 8, 64])];
243
+ tensor<fp16, [1, 256, 8, 64]> x_43_cast_fp16 = reshape(shape = var_348, x = linear_20_cast_fp16)[name = tensor<string, []>("x_43_cast_fp16")];
244
+ tensor<int32, [4]> var_350 = const()[name = tensor<string, []>("op_350"), val = tensor<int32, [4]>([0, 2, 1, 3])];
245
+ tensor<int32, [4]> var_354 = const()[name = tensor<string, []>("op_354"), val = tensor<int32, [4]>([1, 256, 8, 64])];
246
+ tensor<fp16, [1, 256, 8, 64]> x_cast_fp16 = reshape(shape = var_354, x = linear_18_cast_fp16)[name = tensor<string, []>("x_cast_fp16")];
247
+ tensor<bool, []> attention_scores_19_transpose_x_0 = const()[name = tensor<string, []>("attention_scores_19_transpose_x_0"), val = tensor<bool, []>(false)];
248
+ tensor<bool, []> attention_scores_19_transpose_y_0 = const()[name = tensor<string, []>("attention_scores_19_transpose_y_0"), val = tensor<bool, []>(false)];
249
+ tensor<int32, [4]> transpose_18_perm_0 = const()[name = tensor<string, []>("transpose_18_perm_0"), val = tensor<int32, [4]>([0, 2, -3, -1])];
250
+ tensor<int32, [4]> transpose_19_perm_0 = const()[name = tensor<string, []>("transpose_19_perm_0"), val = tensor<int32, [4]>([0, 2, -1, -3])];
251
+ tensor<fp16, [1, 8, 64, 256]> transpose_19 = transpose(perm = transpose_19_perm_0, x = x_39_cast_fp16)[name = tensor<string, []>("transpose_21")];
252
+ tensor<fp16, [1, 8, 256, 64]> transpose_18 = transpose(perm = transpose_18_perm_0, x = x_cast_fp16)[name = tensor<string, []>("transpose_22")];
253
+ tensor<fp16, [1, 8, 256, 256]> 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<string, []>("attention_scores_19_cast_fp16")];
254
+ tensor<fp16, []> _inversed_attention_scores_21_y_0_to_fp16 = const()[name = tensor<string, []>("_inversed_attention_scores_21_y_0_to_fp16"), val = tensor<fp16, []>(0x1p-3)];
255
+ tensor<fp16, [1, 8, 256, 256]> _inversed_attention_scores_21_cast_fp16 = mul(x = attention_scores_19_cast_fp16, y = _inversed_attention_scores_21_y_0_to_fp16)[name = tensor<string, []>("_inversed_attention_scores_21_cast_fp16")];
256
+ tensor<fp16, [1, 8, 256, 256]> attention_scores_cast_fp16 = add(x = _inversed_attention_scores_21_cast_fp16, y = attention_mask_cast_fp16)[name = tensor<string, []>("attention_scores_cast_fp16")];
257
+ tensor<fp16, [1, 8, 256, 256]> input_73_cast_fp16 = add(x = attention_scores_cast_fp16, y = bias_3_to_fp16)[name = tensor<string, []>("input_73_cast_fp16")];
258
+ tensor<fp16, [1, 8, 256, 256]> input_75_cast_fp16 = softmax(axis = var_16, x = input_73_cast_fp16)[name = tensor<string, []>("input_75_cast_fp16")];
259
+ tensor<bool, []> context_layer_13_transpose_x_0 = const()[name = tensor<string, []>("context_layer_13_transpose_x_0"), val = tensor<bool, []>(false)];
260
+ tensor<bool, []> context_layer_13_transpose_y_0 = const()[name = tensor<string, []>("context_layer_13_transpose_y_0"), val = tensor<bool, []>(false)];
261
+ tensor<fp16, [1, 8, 256, 64]> value_layer_cast_fp16 = transpose(perm = var_350, x = x_43_cast_fp16)[name = tensor<string, []>("transpose_23")];
262
+ tensor<fp16, [1, 8, 256, 64]> 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<string, []>("context_layer_13_cast_fp16")];
263
+ tensor<int32, [4]> var_367 = const()[name = tensor<string, []>("op_367"), val = tensor<int32, [4]>([0, 2, 1, 3])];
264
+ tensor<int32, [3]> var_372 = const()[name = tensor<string, []>("op_372"), val = tensor<int32, [3]>([1, 256, 512])];
265
+ tensor<fp16, [1, 256, 8, 64]> var_368_cast_fp16 = transpose(perm = var_367, x = context_layer_13_cast_fp16)[name = tensor<string, []>("transpose_20")];
266
+ tensor<fp16, [1, 256, 512]> input_77_cast_fp16 = reshape(shape = var_372, x = var_368_cast_fp16)[name = tensor<string, []>("input_77_cast_fp16")];
267
+ tensor<fp16, [512, 512]> m_encoder_layer_3_attention_output_dense_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_dense_weight_to_fp16"), val = tensor<fp16, [512, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(59354752)))];
268
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_dense_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_dense_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(59879104)))];
269
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_21_cast_fp16")];
270
+ tensor<fp16, [1, 256, 512]> input_81_cast_fp16 = add(x = linear_21_cast_fp16, y = input_71_cast_fp16)[name = tensor<string, []>("input_81_cast_fp16")];
271
+ tensor<int32, [1]> input_83_axes_0 = const()[name = tensor<string, []>("input_83_axes_0"), val = tensor<int32, [1]>([-1])];
272
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_LayerNorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(59880192)))];
273
+ tensor<fp16, [512]> m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_attention_output_LayerNorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(59881280)))];
274
+ tensor<fp16, [1, 256, 512]> 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<string, []>("input_83_cast_fp16")];
275
+ tensor<fp16, [4096, 512]> m_encoder_layer_3_mlp_gated_layers_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_gated_layers_weight_to_fp16"), val = tensor<fp16, [4096, 512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(59882368)))];
276
+ tensor<fp16, [1, 256, 4096]> 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<string, []>("linear_22_cast_fp16")];
277
+ tensor<int32, [3]> input_85_begin_0 = const()[name = tensor<string, []>("input_85_begin_0"), val = tensor<int32, [3]>([0, 0, 0])];
278
+ tensor<int32, [3]> input_85_end_0 = const()[name = tensor<string, []>("input_85_end_0"), val = tensor<int32, [3]>([1, 256, 2048])];
279
+ tensor<bool, [3]> input_85_end_mask_0 = const()[name = tensor<string, []>("input_85_end_mask_0"), val = tensor<bool, [3]>([true, true, false])];
280
+ tensor<fp16, [1, 256, 2048]> 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<string, []>("input_85_cast_fp16")];
281
+ tensor<int32, [3]> non_gated_begin_0 = const()[name = tensor<string, []>("non_gated_begin_0"), val = tensor<int32, [3]>([0, 0, 2048])];
282
+ tensor<int32, [3]> non_gated_end_0 = const()[name = tensor<string, []>("non_gated_end_0"), val = tensor<int32, [3]>([1, 256, 4096])];
283
+ tensor<bool, [3]> non_gated_end_mask_0 = const()[name = tensor<string, []>("non_gated_end_mask_0"), val = tensor<bool, [3]>([true, true, true])];
284
+ tensor<fp16, [1, 256, 2048]> 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<string, []>("non_gated_cast_fp16")];
285
+ tensor<string, []> var_396_mode_0 = const()[name = tensor<string, []>("op_396_mode_0"), val = tensor<string, []>("EXACT")];
286
+ tensor<fp16, [1, 256, 2048]> var_396_cast_fp16 = gelu(mode = var_396_mode_0, x = input_85_cast_fp16)[name = tensor<string, []>("op_396_cast_fp16")];
287
+ tensor<fp16, [1, 256, 2048]> input_87_cast_fp16 = mul(x = var_396_cast_fp16, y = non_gated_cast_fp16)[name = tensor<string, []>("input_87_cast_fp16")];
288
+ tensor<fp16, [512, 2048]> m_encoder_layer_3_mlp_wo_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_wo_weight_to_fp16"), val = tensor<fp16, [512, 2048]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(64076736)))];
289
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_wo_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_wo_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(66173952)))];
290
+ tensor<fp16, [1, 256, 512]> 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<string, []>("linear_23_cast_fp16")];
291
+ tensor<fp16, [1, 256, 512]> input_91_cast_fp16 = add(x = linear_23_cast_fp16, y = input_83_cast_fp16)[name = tensor<string, []>("input_91_cast_fp16")];
292
+ tensor<int32, [1]> hidden_states_axes_0 = const()[name = tensor<string, []>("hidden_states_axes_0"), val = tensor<int32, [1]>([-1])];
293
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_layernorm_weight_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_layernorm_weight_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(66175040)))];
294
+ tensor<fp16, [512]> m_encoder_layer_3_mlp_layernorm_bias_to_fp16 = const()[name = tensor<string, []>("m_encoder_layer_3_mlp_layernorm_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(66176128)))];
295
+ tensor<fp16, [1, 256, 512]> 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<string, []>("hidden_states_cast_fp16")];
296
+ tensor<int32, [1]> var_408_axes_0 = const()[name = tensor<string, []>("op_408_axes_0"), val = tensor<int32, [1]>([-1])];
297
+ tensor<int32, [1, 256, 1]> var_408 = expand_dims(axes = var_408_axes_0, x = cast_0)[name = tensor<string, []>("op_408")];
298
+ tensor<string, []> cast_28_to_fp16_dtype_0 = const()[name = tensor<string, []>("cast_28_to_fp16_dtype_0"), val = tensor<string, []>("fp16")];
299
+ tensor<fp16, [1, 256, 1]> var_408_to_fp16 = cast(dtype = cast_28_to_fp16_dtype_0, x = var_408)[name = tensor<string, []>("cast_34")];
300
+ tensor<fp16, [1, 256, 512]> var_414_cast_fp16 = mul(x = hidden_states_cast_fp16, y = var_408_to_fp16)[name = tensor<string, []>("op_414_cast_fp16")];
301
+ tensor<int32, [1]> var_419_axes_0 = const()[name = tensor<string, []>("op_419_axes_0"), val = tensor<int32, [1]>([1])];
302
+ tensor<bool, []> var_419_keep_dims_0 = const()[name = tensor<string, []>("op_419_keep_dims_0"), val = tensor<bool, []>(false)];
303
+ tensor<fp16, [1, 512]> 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<string, []>("op_419_cast_fp16")];
304
+ tensor<int32, [1]> var_424_axes_0 = const()[name = tensor<string, []>("op_424_axes_0"), val = tensor<int32, [1]>([1])];
305
+ tensor<bool, []> var_424_keep_dims_0 = const()[name = tensor<string, []>("op_424_keep_dims_0"), val = tensor<bool, []>(false)];
306
+ tensor<fp16, [1, 1]> 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<string, []>("op_424_cast_fp16")];
307
+ tensor<fp16, []> var_425_to_fp16 = const()[name = tensor<string, []>("op_425_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
308
+ tensor<fp16, []> const_35_to_fp16 = const()[name = tensor<string, []>("const_35_to_fp16"), val = tensor<fp16, []>(inf)];
309
+ tensor<fp16, [1, 1]> clip_0_cast_fp16 = clip(alpha = var_425_to_fp16, beta = const_35_to_fp16, x = var_424_cast_fp16)[name = tensor<string, []>("clip_0_cast_fp16")];
310
+ tensor<fp16, [1, 512]> input_cast_fp16 = real_div(x = var_419_cast_fp16, y = clip_0_cast_fp16)[name = tensor<string, []>("input_cast_fp16")];
311
+ tensor<int32, [1]> var_431 = const()[name = tensor<string, []>("op_431"), val = tensor<int32, [1]>([-1])];
312
+ tensor<bool, []> var_432 = const()[name = tensor<string, []>("op_432"), val = tensor<bool, []>(true)];
313
+ tensor<fp16, [1, 1]> var_434_cast_fp16 = reduce_l2_norm(axes = var_431, keep_dims = var_432, x = input_cast_fp16)[name = tensor<string, []>("op_434_cast_fp16")];
314
+ tensor<fp16, []> var_435_to_fp16 = const()[name = tensor<string, []>("op_435_to_fp16"), val = tensor<fp16, []>(0x1p-24)];
315
+ tensor<fp16, [1, 1]> var_436_cast_fp16 = maximum(x = var_434_cast_fp16, y = var_435_to_fp16)[name = tensor<string, []>("op_436_cast_fp16")];
316
+ tensor<int32, [2]> denom_reps_0 = const()[name = tensor<string, []>("denom_reps_0"), val = tensor<int32, [2]>([1, 512])];
317
+ tensor<fp16, [1, 512]> denom_cast_fp16 = tile(reps = denom_reps_0, x = var_436_cast_fp16)[name = tensor<string, []>("denom_cast_fp16")];
318
+ tensor<fp16, [1, 512]> embedding = real_div(x = input_cast_fp16, y = denom_cast_fp16)[name = tensor<string, []>("op_438_cast_fp16")];
319
+ } -> (embedding);
320
+ }
jina_embedding_256.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f50af56cb05f6b35c3a37384808e09b1d197d23afe4f6c20d3319754a458a692
3
+ size 66177216