aotrih commited on
Commit
210b6cb
·
1 Parent(s): 989082b

Sortformer models for argmax-sdk-swift-alpha-2.0.1

Browse files
sortformer/v2-1/384_94MB/AudioConformerPreEncoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:449a41e2580a2184a38661d236a2375838c45d64629d18639eeefe0ab22db783
3
+ size 243
sortformer/v2-1/384_94MB/AudioConformerPreEncoder.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1734fffd4068cd4adc74eff589b0f57e48d930b848b9533e83c24bd02b572c2
3
+ size 423
sortformer/v2-1/384_94MB/AudioConformerPreEncoder.mlmodelc/metadata.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 × 1 × 385)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 512, 1, 385]",
13
+ "name" : "downsampled_melspectrogram_features",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 9,
21
+ "mlProgramOperationTypeHistogram" : {
22
+ "Ios18.transpose" : 1,
23
+ "Ios18.relu" : 3,
24
+ "Ios18.reshape" : 1,
25
+ "Ios18.conv" : 6
26
+ },
27
+ "computePrecision" : "Mixed (Float16, Int32)",
28
+ "isUpdatable" : "0",
29
+ "stateSchema" : [
30
+
31
+ ],
32
+ "availability" : {
33
+ "macOS" : "15.0",
34
+ "tvOS" : "18.0",
35
+ "visionOS" : "2.0",
36
+ "watchOS" : "11.0",
37
+ "iOS" : "18.0",
38
+ "macCatalyst" : "18.0"
39
+ },
40
+ "modelType" : {
41
+ "name" : "MLModelType_mlProgram"
42
+ },
43
+ "userDefinedMetadata" : {
44
+ "com.github.apple.coremltools.conversion_date" : "2026-02-12",
45
+ "com.github.apple.coremltools.source" : "torch==2.5.0",
46
+ "com.github.apple.coremltools.version" : "9.0",
47
+ "com.github.apple.coremltools.source_dialect" : "TorchScript"
48
+ },
49
+ "inputSchema" : [
50
+ {
51
+ "hasShapeFlexibility" : "0",
52
+ "isOptional" : "0",
53
+ "dataType" : "Float16",
54
+ "formattedType" : "MultiArray (Float16 1 × 1 × 3073 × 128)",
55
+ "shortDescription" : "",
56
+ "shape" : "[1, 1, 3073, 128]",
57
+ "name" : "melspectrogram_features",
58
+ "type" : "MultiArray"
59
+ }
60
+ ],
61
+ "generatedClassName" : "AudioConformerPreEncoder",
62
+ "method" : "predict"
63
+ }
64
+ ]
sortformer/v2-1/384_94MB/AudioConformerPreEncoder.mlmodelc/model.mil ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ program(1.3)
2
+ [buildInfo = dict<string, string>({{"coremlc-component-MIL", "3404.16.1"}, {"coremlc-version", "3404.23.1"}, {"coremltools-component-torch", "2.5.0"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "9.0"}})]
3
+ {
4
+ func main<ios18>(tensor<fp16, [1, 1, 3073, 128]> melspectrogram_features) {
5
+ string input_1_pad_type_0 = const()[name = string("input_1_pad_type_0"), val = string("custom")];
6
+ tensor<int32, [4]> input_1_pad_0 = const()[name = string("input_1_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
7
+ tensor<int32, [2]> input_1_strides_0 = const()[name = string("input_1_strides_0"), val = tensor<int32, [2]>([2, 2])];
8
+ tensor<int32, [2]> input_1_dilations_0 = const()[name = string("input_1_dilations_0"), val = tensor<int32, [2]>([1, 1])];
9
+ int32 input_1_groups_0 = const()[name = string("input_1_groups_0"), val = int32(1)];
10
+ tensor<fp16, [256, 1, 3, 3]> conv_0_weight_to_fp16 = const()[name = string("conv_0_weight_to_fp16"), val = tensor<fp16, [256, 1, 3, 3]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(64)))];
11
+ tensor<fp16, [256]> conv_0_bias_to_fp16 = const()[name = string("conv_0_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(4736)))];
12
+ tensor<fp16, [1, 256, 1537, 64]> input_1_cast_fp16 = conv(bias = conv_0_bias_to_fp16, dilations = input_1_dilations_0, groups = input_1_groups_0, pad = input_1_pad_0, pad_type = input_1_pad_type_0, strides = input_1_strides_0, weight = conv_0_weight_to_fp16, x = melspectrogram_features)[name = string("input_1_cast_fp16")];
13
+ tensor<fp16, [1, 256, 1537, 64]> input_3_cast_fp16 = relu(x = input_1_cast_fp16)[name = string("input_3_cast_fp16")];
14
+ string input_5_pad_type_0 = const()[name = string("input_5_pad_type_0"), val = string("custom")];
15
+ tensor<int32, [4]> input_5_pad_0 = const()[name = string("input_5_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
16
+ tensor<int32, [2]> input_5_strides_0 = const()[name = string("input_5_strides_0"), val = tensor<int32, [2]>([2, 2])];
17
+ int32 input_5_groups_0 = const()[name = string("input_5_groups_0"), val = int32(256)];
18
+ tensor<int32, [2]> input_5_dilations_0 = const()[name = string("input_5_dilations_0"), val = tensor<int32, [2]>([1, 1])];
19
+ tensor<fp16, [256, 1, 3, 3]> conv_2_weight_to_fp16 = const()[name = string("conv_2_weight_to_fp16"), val = tensor<fp16, [256, 1, 3, 3]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(5312)))];
20
+ tensor<fp16, [256]> conv_2_bias_to_fp16 = const()[name = string("conv_2_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(9984)))];
21
+ tensor<fp16, [1, 256, 769, 32]> input_5_cast_fp16 = conv(bias = conv_2_bias_to_fp16, dilations = input_5_dilations_0, groups = input_5_groups_0, pad = input_5_pad_0, pad_type = input_5_pad_type_0, strides = input_5_strides_0, weight = conv_2_weight_to_fp16, x = input_3_cast_fp16)[name = string("input_5_cast_fp16")];
22
+ string input_7_pad_type_0 = const()[name = string("input_7_pad_type_0"), val = string("valid")];
23
+ tensor<int32, [2]> input_7_strides_0 = const()[name = string("input_7_strides_0"), val = tensor<int32, [2]>([1, 1])];
24
+ tensor<int32, [4]> input_7_pad_0 = const()[name = string("input_7_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
25
+ tensor<int32, [2]> input_7_dilations_0 = const()[name = string("input_7_dilations_0"), val = tensor<int32, [2]>([1, 1])];
26
+ int32 input_7_groups_0 = const()[name = string("input_7_groups_0"), val = int32(1)];
27
+ tensor<fp16, [256, 256, 1, 1]> conv_3_weight_to_fp16 = const()[name = string("conv_3_weight_to_fp16"), val = tensor<fp16, [256, 256, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(10560)))];
28
+ tensor<fp16, [256]> conv_3_bias_to_fp16 = const()[name = string("conv_3_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(141696)))];
29
+ tensor<fp16, [1, 256, 769, 32]> input_7_cast_fp16 = conv(bias = conv_3_bias_to_fp16, dilations = input_7_dilations_0, groups = input_7_groups_0, pad = input_7_pad_0, pad_type = input_7_pad_type_0, strides = input_7_strides_0, weight = conv_3_weight_to_fp16, x = input_5_cast_fp16)[name = string("input_7_cast_fp16")];
30
+ tensor<fp16, [1, 256, 769, 32]> input_9_cast_fp16 = relu(x = input_7_cast_fp16)[name = string("input_9_cast_fp16")];
31
+ string input_11_pad_type_0 = const()[name = string("input_11_pad_type_0"), val = string("custom")];
32
+ tensor<int32, [4]> input_11_pad_0 = const()[name = string("input_11_pad_0"), val = tensor<int32, [4]>([1, 1, 1, 1])];
33
+ tensor<int32, [2]> input_11_strides_0 = const()[name = string("input_11_strides_0"), val = tensor<int32, [2]>([2, 2])];
34
+ int32 input_11_groups_0 = const()[name = string("input_11_groups_0"), val = int32(256)];
35
+ tensor<int32, [2]> input_11_dilations_0 = const()[name = string("input_11_dilations_0"), val = tensor<int32, [2]>([1, 1])];
36
+ tensor<fp16, [256, 1, 3, 3]> conv_5_weight_to_fp16 = const()[name = string("conv_5_weight_to_fp16"), val = tensor<fp16, [256, 1, 3, 3]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(142272)))];
37
+ tensor<fp16, [256]> conv_5_bias_to_fp16 = const()[name = string("conv_5_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(146944)))];
38
+ tensor<fp16, [1, 256, 385, 16]> input_11_cast_fp16 = conv(bias = conv_5_bias_to_fp16, dilations = input_11_dilations_0, groups = input_11_groups_0, pad = input_11_pad_0, pad_type = input_11_pad_type_0, strides = input_11_strides_0, weight = conv_5_weight_to_fp16, x = input_9_cast_fp16)[name = string("input_11_cast_fp16")];
39
+ string input_13_pad_type_0 = const()[name = string("input_13_pad_type_0"), val = string("valid")];
40
+ tensor<int32, [2]> input_13_strides_0 = const()[name = string("input_13_strides_0"), val = tensor<int32, [2]>([1, 1])];
41
+ tensor<int32, [4]> input_13_pad_0 = const()[name = string("input_13_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
42
+ tensor<int32, [2]> input_13_dilations_0 = const()[name = string("input_13_dilations_0"), val = tensor<int32, [2]>([1, 1])];
43
+ int32 input_13_groups_0 = const()[name = string("input_13_groups_0"), val = int32(1)];
44
+ tensor<fp16, [256, 256, 1, 1]> conv_6_weight_to_fp16 = const()[name = string("conv_6_weight_to_fp16"), val = tensor<fp16, [256, 256, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(147520)))];
45
+ tensor<fp16, [256]> conv_6_bias_to_fp16 = const()[name = string("conv_6_bias_to_fp16"), val = tensor<fp16, [256]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(278656)))];
46
+ tensor<fp16, [1, 256, 385, 16]> input_13_cast_fp16 = conv(bias = conv_6_bias_to_fp16, dilations = input_13_dilations_0, groups = input_13_groups_0, pad = input_13_pad_0, pad_type = input_13_pad_type_0, strides = input_13_strides_0, weight = conv_6_weight_to_fp16, x = input_11_cast_fp16)[name = string("input_13_cast_fp16")];
47
+ tensor<fp16, [1, 256, 385, 16]> x_cast_fp16 = relu(x = input_13_cast_fp16)[name = string("x_cast_fp16")];
48
+ tensor<int32, [4]> var_69_perm_0 = const()[name = string("op_69_perm_0"), val = tensor<int32, [4]>([0, 1, 3, 2])];
49
+ tensor<int32, [4]> var_73 = const()[name = string("op_73"), val = tensor<int32, [4]>([1, 4096, 1, 385])];
50
+ tensor<fp16, [1, 256, 16, 385]> var_69_cast_fp16 = transpose(perm = var_69_perm_0, x = x_cast_fp16)[name = string("transpose_0")];
51
+ tensor<fp16, [1, 4096, 1, 385]> input_cast_fp16 = reshape(shape = var_73, x = var_69_cast_fp16)[name = string("input_cast_fp16")];
52
+ string var_85_pad_type_0 = const()[name = string("op_85_pad_type_0"), val = string("valid")];
53
+ tensor<int32, [2]> var_85_strides_0 = const()[name = string("op_85_strides_0"), val = tensor<int32, [2]>([1, 1])];
54
+ tensor<int32, [4]> var_85_pad_0 = const()[name = string("op_85_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
55
+ tensor<int32, [2]> var_85_dilations_0 = const()[name = string("op_85_dilations_0"), val = tensor<int32, [2]>([1, 1])];
56
+ int32 var_85_groups_0 = const()[name = string("op_85_groups_0"), val = int32(1)];
57
+ tensor<fp16, [512, 4096, 1, 1]> out_weight_to_fp16 = const()[name = string("out_weight_to_fp16"), val = tensor<fp16, [512, 4096, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(279232)))];
58
+ tensor<fp16, [512]> out_bias_to_fp16 = const()[name = string("out_bias_to_fp16"), val = tensor<fp16, [512]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(4473600)))];
59
+ tensor<fp16, [1, 512, 1, 385]> downsampled_melspectrogram_features = conv(bias = out_bias_to_fp16, dilations = var_85_dilations_0, groups = var_85_groups_0, pad = var_85_pad_0, pad_type = var_85_pad_type_0, strides = var_85_strides_0, weight = out_weight_to_fp16, x = input_cast_fp16)[name = string("op_85_cast_fp16")];
60
+ } -> (downsampled_melspectrogram_features);
61
+ }
sortformer/v2-1/384_94MB/AudioConformerPreEncoder.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:232fce1518edd08b1fcb0b39add3e7307c8c3ca3e6afa170f6937c57617d38e1
3
+ size 4474688
sortformer/v2-1/384_94MB/LICENSE_NOTICE.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Argmax proprietary and confidential. Under NDA.
2
+
3
+ Copyright 2026 Argmax, Inc. All rights reserved.
4
+
5
+ Unauthorized access, copying, use, distribution, and or commercialization of this file, via any medium or means is strictly prohibited.
6
+
7
+ Please contact Argmax for licensing information at info@argmaxinc.com.
sortformer/v2-1/384_94MB/MelSpectrogram.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ed0dd5b53602d2a0037b2a4dff357301daeb133c6325f38616d197b2271afbc
3
+ size 243
sortformer/v2-1/384_94MB/MelSpectrogram.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f4d7e4c41f2d9af18f6825078b5d71641606f5996e2bd553f4d47448c2545c9
3
+ size 390
sortformer/v2-1/384_94MB/MelSpectrogram.mlmodelc/metadata.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Float32",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 3073 × 128)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 3073, 128]",
13
+ "name" : "melspectrogram_features",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 9,
21
+ "mlProgramOperationTypeHistogram" : {
22
+ "Pad" : 1,
23
+ "Ios18.square" : 2,
24
+ "Ios18.conv" : 2,
25
+ "Ios18.sub" : 1,
26
+ "Ios18.expandDims" : 5,
27
+ "Ios18.matmul" : 1,
28
+ "Ios18.log" : 1,
29
+ "Ios18.concat" : 1,
30
+ "Ios18.add" : 2,
31
+ "Ios18.sliceByIndex" : 3,
32
+ "Ios18.cast" : 2,
33
+ "Ios18.transpose" : 1,
34
+ "Ios18.squeeze" : 2,
35
+ "Ios18.reshape" : 2,
36
+ "Identity" : 1,
37
+ "Ios18.mul" : 1
38
+ },
39
+ "computePrecision" : "Mixed (Float16, Float32, Int32)",
40
+ "isUpdatable" : "0",
41
+ "stateSchema" : [
42
+
43
+ ],
44
+ "availability" : {
45
+ "macOS" : "15.0",
46
+ "tvOS" : "18.0",
47
+ "visionOS" : "2.0",
48
+ "watchOS" : "11.0",
49
+ "iOS" : "18.0",
50
+ "macCatalyst" : "18.0"
51
+ },
52
+ "modelType" : {
53
+ "name" : "MLModelType_mlProgram"
54
+ },
55
+ "userDefinedMetadata" : {
56
+ "com.github.apple.coremltools.conversion_date" : "2026-02-12",
57
+ "com.github.apple.coremltools.source" : "torch==2.5.0",
58
+ "com.github.apple.coremltools.version" : "9.0",
59
+ "com.github.apple.coremltools.source_dialect" : "TorchScript"
60
+ },
61
+ "inputSchema" : [
62
+ {
63
+ "hasShapeFlexibility" : "0",
64
+ "isOptional" : "0",
65
+ "dataType" : "Float16",
66
+ "formattedType" : "MultiArray (Float16 491520)",
67
+ "shortDescription" : "",
68
+ "shape" : "[491520]",
69
+ "name" : "audio",
70
+ "type" : "MultiArray"
71
+ }
72
+ ],
73
+ "generatedClassName" : "MelSpectrogram",
74
+ "method" : "predict"
75
+ }
76
+ ]
sortformer/v2-1/384_94MB/MelSpectrogram.mlmodelc/model.mil ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ program(1.3)
2
+ [buildInfo = dict<string, string>({{"coremlc-component-MIL", "3404.16.1"}, {"coremlc-version", "3404.23.1"}, {"coremltools-component-torch", "2.5.0"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "9.0"}})]
3
+ {
4
+ func main<ios18>(tensor<fp16, [491520]> audio) {
5
+ string cast_0_dtype_0 = const()[name = string("cast_0_dtype_0"), val = string("fp32")];
6
+ tensor<fp32, [128, 257]> mel_filters = const()[name = string("mel_filters"), val = tensor<fp32, [128, 257]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(64)))];
7
+ tensor<int32, [1]> var_6_begin_0 = const()[name = string("op_6_begin_0"), val = tensor<int32, [1]>([0])];
8
+ tensor<int32, [1]> var_6_end_0 = const()[name = string("op_6_end_0"), val = tensor<int32, [1]>([1])];
9
+ tensor<bool, [1]> var_6_end_mask_0 = const()[name = string("op_6_end_mask_0"), val = tensor<bool, [1]>([false])];
10
+ tensor<bool, [1]> var_6_squeeze_mask_0 = const()[name = string("op_6_squeeze_mask_0"), val = tensor<bool, [1]>([true])];
11
+ tensor<fp32, [491520]> cast_0 = cast(dtype = cast_0_dtype_0, x = audio)[name = string("cast_6")];
12
+ fp32 var_6 = slice_by_index(begin = var_6_begin_0, end = var_6_end_0, end_mask = var_6_end_mask_0, squeeze_mask = var_6_squeeze_mask_0, x = cast_0)[name = string("op_6")];
13
+ tensor<int32, [1]> var_8_axes_0 = const()[name = string("op_8_axes_0"), val = tensor<int32, [1]>([0])];
14
+ tensor<fp32, [1]> var_8 = expand_dims(axes = var_8_axes_0, x = var_6)[name = string("op_8")];
15
+ tensor<int32, [1]> var_13_begin_0 = const()[name = string("op_13_begin_0"), val = tensor<int32, [1]>([1])];
16
+ tensor<int32, [1]> var_13_end_0 = const()[name = string("op_13_end_0"), val = tensor<int32, [1]>([491520])];
17
+ tensor<bool, [1]> var_13_end_mask_0 = const()[name = string("op_13_end_mask_0"), val = tensor<bool, [1]>([true])];
18
+ tensor<fp32, [491519]> var_13 = slice_by_index(begin = var_13_begin_0, end = var_13_end_0, end_mask = var_13_end_mask_0, x = cast_0)[name = string("op_13")];
19
+ tensor<int32, [1]> var_18_begin_0 = const()[name = string("op_18_begin_0"), val = tensor<int32, [1]>([0])];
20
+ tensor<int32, [1]> var_18_end_0 = const()[name = string("op_18_end_0"), val = tensor<int32, [1]>([491519])];
21
+ tensor<bool, [1]> var_18_end_mask_0 = const()[name = string("op_18_end_mask_0"), val = tensor<bool, [1]>([false])];
22
+ tensor<fp32, [491519]> var_18 = slice_by_index(begin = var_18_begin_0, end = var_18_end_0, end_mask = var_18_end_mask_0, x = cast_0)[name = string("op_18")];
23
+ fp32 var_19 = const()[name = string("op_19"), val = fp32(0x1.f0a3d8p-1)];
24
+ tensor<fp32, [491519]> var_20 = mul(x = var_18, y = var_19)[name = string("op_20")];
25
+ tensor<fp32, [491519]> var_22 = sub(x = var_13, y = var_20)[name = string("op_22")];
26
+ int32 var_24 = const()[name = string("op_24"), val = int32(0)];
27
+ bool input_1_interleave_0 = const()[name = string("input_1_interleave_0"), val = bool(false)];
28
+ tensor<fp32, [491520]> input_1 = concat(axis = var_24, interleave = input_1_interleave_0, values = (var_8, var_22))[name = string("input_1")];
29
+ tensor<int32, [3]> var_32 = const()[name = string("op_32"), val = tensor<int32, [3]>([1, 1, 491520])];
30
+ tensor<fp32, [1, 1, 491520]> input_3 = reshape(shape = var_32, x = input_1)[name = string("input_3")];
31
+ fp32 const_1 = const()[name = string("const_1"), val = fp32(0x0p+0)];
32
+ tensor<int32, [6]> input_5_pad_0 = const()[name = string("input_5_pad_0"), val = tensor<int32, [6]>([0, 0, 0, 0, 256, 256])];
33
+ string input_5_mode_0 = const()[name = string("input_5_mode_0"), val = string("constant")];
34
+ tensor<fp32, [1, 1, 492032]> input_5 = pad(constant_val = const_1, mode = input_5_mode_0, pad = input_5_pad_0, x = input_3)[name = string("input_5")];
35
+ tensor<int32, [1]> var_44 = const()[name = string("op_44"), val = tensor<int32, [1]>([492032])];
36
+ tensor<fp32, [492032]> input = reshape(shape = var_44, x = input_5)[name = string("input")];
37
+ tensor<int32, [1]> expand_dims_0_axes_0 = const()[name = string("expand_dims_0_axes_0"), val = tensor<int32, [1]>([0])];
38
+ tensor<fp32, [1, 492032]> expand_dims_0 = expand_dims(axes = expand_dims_0_axes_0, x = input)[name = string("expand_dims_0")];
39
+ tensor<fp32, [257, 1, 512]> expand_dims_1 = const()[name = string("expand_dims_1"), val = tensor<fp32, [257, 1, 512]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(131712)))];
40
+ tensor<fp32, [257, 1, 512]> expand_dims_2 = const()[name = string("expand_dims_2"), val = tensor<fp32, [257, 1, 512]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(658112)))];
41
+ tensor<int32, [1]> expand_dims_3 = const()[name = string("expand_dims_3"), val = tensor<int32, [1]>([160])];
42
+ tensor<int32, [1]> expand_dims_4_axes_0 = const()[name = string("expand_dims_4_axes_0"), val = tensor<int32, [1]>([1])];
43
+ tensor<fp32, [1, 1, 492032]> expand_dims_4 = expand_dims(axes = expand_dims_4_axes_0, x = expand_dims_0)[name = string("expand_dims_4")];
44
+ string conv_0_pad_type_0 = const()[name = string("conv_0_pad_type_0"), val = string("valid")];
45
+ tensor<int32, [2]> conv_0_pad_0 = const()[name = string("conv_0_pad_0"), val = tensor<int32, [2]>([0, 0])];
46
+ tensor<int32, [1]> conv_0_dilations_0 = const()[name = string("conv_0_dilations_0"), val = tensor<int32, [1]>([1])];
47
+ int32 conv_0_groups_0 = const()[name = string("conv_0_groups_0"), val = int32(1)];
48
+ tensor<fp32, [1, 257, 3073]> conv_0 = conv(dilations = conv_0_dilations_0, groups = conv_0_groups_0, pad = conv_0_pad_0, pad_type = conv_0_pad_type_0, strides = expand_dims_3, weight = expand_dims_1, x = expand_dims_4)[name = string("conv_0")];
49
+ string conv_1_pad_type_0 = const()[name = string("conv_1_pad_type_0"), val = string("valid")];
50
+ tensor<int32, [2]> conv_1_pad_0 = const()[name = string("conv_1_pad_0"), val = tensor<int32, [2]>([0, 0])];
51
+ tensor<int32, [1]> conv_1_dilations_0 = const()[name = string("conv_1_dilations_0"), val = tensor<int32, [1]>([1])];
52
+ int32 conv_1_groups_0 = const()[name = string("conv_1_groups_0"), val = int32(1)];
53
+ tensor<fp32, [1, 257, 3073]> conv_1 = conv(dilations = conv_1_dilations_0, groups = conv_1_groups_0, pad = conv_1_pad_0, pad_type = conv_1_pad_type_0, strides = expand_dims_3, weight = expand_dims_2, x = expand_dims_4)[name = string("conv_1")];
54
+ tensor<int32, [1]> squeeze_0_axes_0 = const()[name = string("squeeze_0_axes_0"), val = tensor<int32, [1]>([0])];
55
+ tensor<fp32, [257, 3073]> squeeze_0 = squeeze(axes = squeeze_0_axes_0, x = conv_0)[name = string("squeeze_0")];
56
+ tensor<int32, [1]> squeeze_1_axes_0 = const()[name = string("squeeze_1_axes_0"), val = tensor<int32, [1]>([0])];
57
+ tensor<fp32, [257, 3073]> squeeze_1 = squeeze(axes = squeeze_1_axes_0, x = conv_1)[name = string("squeeze_1")];
58
+ tensor<fp32, [257, 3073]> square_0 = square(x = squeeze_0)[name = string("square_0")];
59
+ tensor<fp32, [257, 3073]> square_1 = square(x = squeeze_1)[name = string("square_1")];
60
+ tensor<fp32, [257, 3073]> add_1 = add(x = square_0, y = square_1)[name = string("add_1")];
61
+ tensor<fp32, [257, 3073]> magnitudes = identity(x = add_1)[name = string("magnitudes")];
62
+ bool mel_spec_1_transpose_x_0 = const()[name = string("mel_spec_1_transpose_x_0"), val = bool(false)];
63
+ bool mel_spec_1_transpose_y_0 = const()[name = string("mel_spec_1_transpose_y_0"), val = bool(false)];
64
+ tensor<fp32, [128, 3073]> mel_spec_1 = matmul(transpose_x = mel_spec_1_transpose_x_0, transpose_y = mel_spec_1_transpose_y_0, x = mel_filters, y = magnitudes)[name = string("mel_spec_1")];
65
+ fp32 var_58 = const()[name = string("op_58"), val = fp32(0x1p-24)];
66
+ tensor<fp32, [128, 3073]> mel_spec_3 = add(x = mel_spec_1, y = var_58)[name = string("mel_spec_3")];
67
+ fp32 mel_spec_epsilon_0 = const()[name = string("mel_spec_epsilon_0"), val = fp32(0x1p-149)];
68
+ tensor<fp32, [128, 3073]> mel_spec = log(epsilon = mel_spec_epsilon_0, x = mel_spec_3)[name = string("mel_spec")];
69
+ tensor<int32, [2]> var_61_perm_0 = const()[name = string("op_61_perm_0"), val = tensor<int32, [2]>([1, 0])];
70
+ tensor<int32, [1]> var_63_axes_0 = const()[name = string("op_63_axes_0"), val = tensor<int32, [1]>([0])];
71
+ tensor<fp32, [3073, 128]> var_61 = transpose(perm = var_61_perm_0, x = mel_spec)[name = string("transpose_0")];
72
+ tensor<fp32, [1, 3073, 128]> var_63 = expand_dims(axes = var_63_axes_0, x = var_61)[name = string("op_63")];
73
+ tensor<int32, [1]> var_65_axes_0 = const()[name = string("op_65_axes_0"), val = tensor<int32, [1]>([1])];
74
+ tensor<fp32, [1, 1, 3073, 128]> var_65 = expand_dims(axes = var_65_axes_0, x = var_63)[name = string("op_65")];
75
+ string cast_4_dtype_0 = const()[name = string("cast_4_dtype_0"), val = string("fp16")];
76
+ tensor<fp16, [1, 1, 3073, 128]> melspectrogram_features = cast(dtype = cast_4_dtype_0, x = var_65)[name = string("cast_5")];
77
+ } -> (melspectrogram_features);
78
+ }
sortformer/v2-1/384_94MB/MelSpectrogram.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1570ad9beb3077cf61314606d8e4c30fc1d7b971e3bb73ee9444467faa9dd671
3
+ size 1184512
sortformer/v2-1/384_94MB/SortformerFullEncoder.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8404f0c6e336a3a535d067e63c398d62dacaa31bd0f9b8bfb064414dcd70f597
3
+ size 243
sortformer/v2-1/384_94MB/SortformerFullEncoder.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0306109bf01fe682b6d1c6fb6d0c24e1a06e7aee76545a51bc0b381d7ab5262
3
+ size 609
sortformer/v2-1/384_94MB/SortformerFullEncoder.mlmodelc/metadata.json ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (6 bits))",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 4 × 1 × 384)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 4, 1, 384]",
13
+ "name" : "raw_speaker_preds",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float16",
20
+ "formattedType" : "MultiArray (Float16 1 × 4 × 1 × 384)",
21
+ "shortDescription" : "",
22
+ "shape" : "[1, 4, 1, 384]",
23
+ "name" : "speaker_sigmoids",
24
+ "type" : "MultiArray"
25
+ }
26
+ ],
27
+ "modelParameters" : [
28
+
29
+ ],
30
+ "specificationVersion" : 9,
31
+ "mlProgramOperationTypeHistogram" : {
32
+ "Pad" : 17,
33
+ "Ios18.constexprLutToDense" : 315,
34
+ "Ios18.conv" : 315,
35
+ "Ios18.sub" : 1,
36
+ "Ios18.matmul" : 87,
37
+ "Ios18.batchNorm" : 121,
38
+ "Ios18.expandDims" : 4,
39
+ "Ios18.relu" : 20,
40
+ "Ios18.sigmoid" : 18,
41
+ "Ios18.add" : 190,
42
+ "Ios18.silu" : 51,
43
+ "Ios18.softmax" : 35,
44
+ "Ios18.sliceByIndex" : 34,
45
+ "Ios18.layerNorm" : 121,
46
+ "Ios18.reshape" : 208,
47
+ "Split" : 17,
48
+ "Ios18.mul" : 105
49
+ },
50
+ "computePrecision" : "Mixed (Float16, Int32)",
51
+ "isUpdatable" : "0",
52
+ "stateSchema" : [
53
+
54
+ ],
55
+ "availability" : {
56
+ "macOS" : "15.0",
57
+ "tvOS" : "18.0",
58
+ "visionOS" : "2.0",
59
+ "watchOS" : "11.0",
60
+ "iOS" : "18.0",
61
+ "macCatalyst" : "18.0"
62
+ },
63
+ "modelType" : {
64
+ "name" : "MLModelType_mlProgram"
65
+ },
66
+ "userDefinedMetadata" : {
67
+ "com.github.apple.coremltools.conversion_date" : "2026-02-12",
68
+ "com.github.apple.coremltools.source" : "torch==2.5.0",
69
+ "com.github.apple.coremltools.version" : "9.0",
70
+ "com.github.apple.coremltools.source_dialect" : "TorchScript"
71
+ },
72
+ "inputSchema" : [
73
+ {
74
+ "hasShapeFlexibility" : "0",
75
+ "isOptional" : "0",
76
+ "dataType" : "Float16",
77
+ "formattedType" : "MultiArray (Float16 1 × 512 × 1 × 384)",
78
+ "shortDescription" : "",
79
+ "shape" : "[1, 512, 1, 384]",
80
+ "name" : "downsampled_melspectrogram_features",
81
+ "type" : "MultiArray"
82
+ },
83
+ {
84
+ "hasShapeFlexibility" : "0",
85
+ "isOptional" : "0",
86
+ "dataType" : "Float16",
87
+ "formattedType" : "MultiArray (Float16 1 × 384)",
88
+ "shortDescription" : "",
89
+ "shape" : "[1, 384]",
90
+ "name" : "conformer_encoder_padding_mask",
91
+ "type" : "MultiArray"
92
+ },
93
+ {
94
+ "hasShapeFlexibility" : "0",
95
+ "isOptional" : "0",
96
+ "dataType" : "Float16",
97
+ "formattedType" : "MultiArray (Float16 1 × 1 × 384 × 384)",
98
+ "shortDescription" : "",
99
+ "shape" : "[1, 1, 384, 384]",
100
+ "name" : "conformer_encoder_qk_mask",
101
+ "type" : "MultiArray"
102
+ },
103
+ {
104
+ "hasShapeFlexibility" : "0",
105
+ "isOptional" : "0",
106
+ "dataType" : "Float16",
107
+ "formattedType" : "MultiArray (Float16 1 × 384)",
108
+ "shortDescription" : "",
109
+ "shape" : "[1, 384]",
110
+ "name" : "transformer_encoder_mask",
111
+ "type" : "MultiArray"
112
+ },
113
+ {
114
+ "hasShapeFlexibility" : "0",
115
+ "isOptional" : "0",
116
+ "dataType" : "Float16",
117
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 1)",
118
+ "shortDescription" : "",
119
+ "shape" : "[1, 1, 1, 1]",
120
+ "name" : "input_1",
121
+ "type" : "MultiArray"
122
+ }
123
+ ],
124
+ "generatedClassName" : "SortformerFullEncoder_6_bit",
125
+ "method" : "predict"
126
+ }
127
+ ]
sortformer/v2-1/384_94MB/SortformerFullEncoder.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
sortformer/v2-1/384_94MB/SortformerFullEncoder.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:381c70fa727f11b773b801654404288dcb45b6033d35cde4ed5b1ed4776b189a
3
+ size 87351040