Core ML conversion of nvidia/multitalker-parakeet-streaming-0.6b-v1 (revision 8749fc71) for Goodmeet
3fee1e6 verified Download decoder_joint.mlmodelc/model.mil from GoodnotesLtd/multitalker-parakeet-streaming-0.6b-v1-coreml: direct link, hf CLI and curl.
- Browser
- Download file 16.5 kB
-
https://huggingface.co/GoodnotesLtd/multitalker-parakeet-streaming-0.6b-v1-coreml/resolve/main/decoder_joint.mlmodelc/model.mil
- Command line
-
hf download hf://GoodnotesLtd/multitalker-parakeet-streaming-0.6b-v1-coreml/decoder_joint.mlmodelc/model.mil
-
curl -L -o model.mil https://huggingface.co/GoodnotesLtd/multitalker-parakeet-streaming-0.6b-v1-coreml/resolve/main/decoder_joint.mlmodelc/model.mil
16.5 kB
| program(1.0) | |
| [buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3605.1.1"}, {"coremlc-version", "3600.25.1"}, {"coremltools-component-torch", "2.9.1"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "9.0"}})] | |
| { | |
| func main<ios17>(tensor<fp32, [2, 1, 640]> c_in, tensor<fp32, [1, 1024, 1]> encoder, tensor<fp32, [2, 1, 640]> h_in, tensor<int32, [1, 1]> token, tensor<int32, [1]> token_length) { | |
| tensor<int32, []> y_batch_dims_0 = const()[name = tensor<string, []>("y_batch_dims_0"), val = tensor<int32, []>(0)]; | |
| tensor<bool, []> y_validate_indices_0 = const()[name = tensor<string, []>("y_validate_indices_0"), val = tensor<bool, []>(false)]; | |
| tensor<fp16, [1025, 640]> decoder_prediction_embed_weight_to_fp16 = const()[name = tensor<string, []>("decoder_prediction_embed_weight_to_fp16"), val = tensor<fp16, [1025, 640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(64)))]; | |
| tensor<string, []> token_to_int16_dtype_0 = const()[name = tensor<string, []>("token_to_int16_dtype_0"), val = tensor<string, []>("int16")]; | |
| tensor<string, []> cast_4_dtype_0 = const()[name = tensor<string, []>("cast_4_dtype_0"), val = tensor<string, []>("int32")]; | |
| tensor<int32, []> greater_equal_0_y_0 = const()[name = tensor<string, []>("greater_equal_0_y_0"), val = tensor<int32, []>(0)]; | |
| tensor<int16, [1, 1]> token_to_int16 = cast(dtype = token_to_int16_dtype_0, x = token)[name = tensor<string, []>("cast_10")]; | |
| tensor<int32, [1, 1]> cast_4 = cast(dtype = cast_4_dtype_0, x = token_to_int16)[name = tensor<string, []>("cast_9")]; | |
| tensor<bool, [1, 1]> greater_equal_0 = greater_equal(x = cast_4, y = greater_equal_0_y_0)[name = tensor<string, []>("greater_equal_0")]; | |
| tensor<int32, []> slice_by_index_0 = const()[name = tensor<string, []>("slice_by_index_0"), val = tensor<int32, []>(1025)]; | |
| tensor<int32, [1, 1]> add_2 = add(x = cast_4, y = slice_by_index_0)[name = tensor<string, []>("add_2")]; | |
| tensor<int32, [1, 1]> select_0 = select(a = cast_4, b = add_2, cond = greater_equal_0)[name = tensor<string, []>("select_0")]; | |
| tensor<int32, []> y_cast_fp16_cast_uint16_axis_0 = const()[name = tensor<string, []>("y_cast_fp16_cast_uint16_axis_0"), val = tensor<int32, []>(0)]; | |
| tensor<string, []> select_0_to_int16_dtype_0 = const()[name = tensor<string, []>("select_0_to_int16_dtype_0"), val = tensor<string, []>("int16")]; | |
| tensor<int16, [1, 1]> select_0_to_int16 = cast(dtype = select_0_to_int16_dtype_0, x = select_0)[name = tensor<string, []>("cast_8")]; | |
| tensor<fp16, [1, 1, 640]> y_cast_fp16_cast_uint16_cast_uint16 = gather(axis = y_cast_fp16_cast_uint16_axis_0, batch_dims = y_batch_dims_0, indices = select_0_to_int16, validate_indices = y_validate_indices_0, x = decoder_prediction_embed_weight_to_fp16)[name = tensor<string, []>("y_cast_fp16_cast_uint16_cast_uint16")]; | |
| tensor<int32, [3]> input_1_perm_0 = const()[name = tensor<string, []>("input_1_perm_0"), val = tensor<int32, [3]>([1, 0, 2])]; | |
| tensor<int32, []> split_0_num_splits_0 = const()[name = tensor<string, []>("split_0_num_splits_0"), val = tensor<int32, []>(2)]; | |
| tensor<int32, []> split_0_axis_0 = const()[name = tensor<string, []>("split_0_axis_0"), val = tensor<int32, []>(0)]; | |
| tensor<string, []> h_in_to_fp16_dtype_0 = const()[name = tensor<string, []>("h_in_to_fp16_dtype_0"), val = tensor<string, []>("fp16")]; | |
| tensor<fp16, [2, 1, 640]> h_in_to_fp16 = cast(dtype = h_in_to_fp16_dtype_0, x = h_in)[name = tensor<string, []>("cast_7")]; | |
| tensor<fp16, [1, 1, 640]> split_0_cast_fp16_0, tensor<fp16, [1, 1, 640]> split_0_cast_fp16_1 = split(axis = split_0_axis_0, num_splits = split_0_num_splits_0, x = h_in_to_fp16)[name = tensor<string, []>("split_0_cast_fp16")]; | |
| tensor<int32, []> split_1_num_splits_0 = const()[name = tensor<string, []>("split_1_num_splits_0"), val = tensor<int32, []>(2)]; | |
| tensor<int32, []> split_1_axis_0 = const()[name = tensor<string, []>("split_1_axis_0"), val = tensor<int32, []>(0)]; | |
| tensor<string, []> c_in_to_fp16_dtype_0 = const()[name = tensor<string, []>("c_in_to_fp16_dtype_0"), val = tensor<string, []>("fp16")]; | |
| tensor<fp16, [2, 1, 640]> c_in_to_fp16 = cast(dtype = c_in_to_fp16_dtype_0, x = c_in)[name = tensor<string, []>("cast_6")]; | |
| tensor<fp16, [1, 1, 640]> split_1_cast_fp16_0, tensor<fp16, [1, 1, 640]> split_1_cast_fp16_1 = split(axis = split_1_axis_0, num_splits = split_1_num_splits_0, x = c_in_to_fp16)[name = tensor<string, []>("split_1_cast_fp16")]; | |
| tensor<int32, [1]> input_3_lstm_layer_0_lstm_h0_squeeze_axes_0 = const()[name = tensor<string, []>("input_3_lstm_layer_0_lstm_h0_squeeze_axes_0"), val = tensor<int32, [1]>([0])]; | |
| tensor<fp16, [1, 640]> input_3_lstm_layer_0_lstm_h0_squeeze_cast_fp16 = squeeze(axes = input_3_lstm_layer_0_lstm_h0_squeeze_axes_0, x = split_0_cast_fp16_0)[name = tensor<string, []>("input_3_lstm_layer_0_lstm_h0_squeeze_cast_fp16")]; | |
| tensor<int32, [1]> input_3_lstm_layer_0_lstm_c0_squeeze_axes_0 = const()[name = tensor<string, []>("input_3_lstm_layer_0_lstm_c0_squeeze_axes_0"), val = tensor<int32, [1]>([0])]; | |
| tensor<fp16, [1, 640]> input_3_lstm_layer_0_lstm_c0_squeeze_cast_fp16 = squeeze(axes = input_3_lstm_layer_0_lstm_c0_squeeze_axes_0, x = split_1_cast_fp16_0)[name = tensor<string, []>("input_3_lstm_layer_0_lstm_c0_squeeze_cast_fp16")]; | |
| tensor<string, []> input_3_lstm_layer_0_direction_0 = const()[name = tensor<string, []>("input_3_lstm_layer_0_direction_0"), val = tensor<string, []>("forward")]; | |
| tensor<bool, []> input_3_lstm_layer_0_output_sequence_0 = const()[name = tensor<string, []>("input_3_lstm_layer_0_output_sequence_0"), val = tensor<bool, []>(true)]; | |
| tensor<string, []> input_3_lstm_layer_0_recurrent_activation_0 = const()[name = tensor<string, []>("input_3_lstm_layer_0_recurrent_activation_0"), val = tensor<string, []>("sigmoid")]; | |
| tensor<string, []> input_3_lstm_layer_0_cell_activation_0 = const()[name = tensor<string, []>("input_3_lstm_layer_0_cell_activation_0"), val = tensor<string, []>("tanh")]; | |
| tensor<string, []> input_3_lstm_layer_0_activation_0 = const()[name = tensor<string, []>("input_3_lstm_layer_0_activation_0"), val = tensor<string, []>("tanh")]; | |
| tensor<fp16, [2560, 640]> concat_1_to_fp16 = const()[name = tensor<string, []>("concat_1_to_fp16"), val = tensor<fp16, [2560, 640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(1312128)))]; | |
| tensor<fp16, [2560, 640]> concat_2_to_fp16 = const()[name = tensor<string, []>("concat_2_to_fp16"), val = tensor<fp16, [2560, 640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(4588992)))]; | |
| tensor<fp16, [2560]> concat_0_to_fp16 = const()[name = tensor<string, []>("concat_0_to_fp16"), val = tensor<fp16, [2560]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(7865856)))]; | |
| tensor<fp16, [1, 1, 640]> input_1_cast_fp16 = transpose(perm = input_1_perm_0, x = y_cast_fp16_cast_uint16_cast_uint16)[name = tensor<string, []>("transpose_2")]; | |
| tensor<fp16, [1, 1, 640]> input_3_lstm_layer_0_cast_fp16_0, tensor<fp16, [1, 640]> input_3_lstm_layer_0_cast_fp16_1, tensor<fp16, [1, 640]> input_3_lstm_layer_0_cast_fp16_2 = lstm(activation = input_3_lstm_layer_0_activation_0, bias = concat_0_to_fp16, cell_activation = input_3_lstm_layer_0_cell_activation_0, direction = input_3_lstm_layer_0_direction_0, initial_c = input_3_lstm_layer_0_lstm_c0_squeeze_cast_fp16, initial_h = input_3_lstm_layer_0_lstm_h0_squeeze_cast_fp16, output_sequence = input_3_lstm_layer_0_output_sequence_0, recurrent_activation = input_3_lstm_layer_0_recurrent_activation_0, weight_hh = concat_2_to_fp16, weight_ih = concat_1_to_fp16, x = input_1_cast_fp16)[name = tensor<string, []>("input_3_lstm_layer_0_cast_fp16")]; | |
| tensor<int32, [1]> input_3_lstm_h0_squeeze_axes_0 = const()[name = tensor<string, []>("input_3_lstm_h0_squeeze_axes_0"), val = tensor<int32, [1]>([0])]; | |
| tensor<fp16, [1, 640]> input_3_lstm_h0_squeeze_cast_fp16 = squeeze(axes = input_3_lstm_h0_squeeze_axes_0, x = split_0_cast_fp16_1)[name = tensor<string, []>("input_3_lstm_h0_squeeze_cast_fp16")]; | |
| tensor<int32, [1]> input_3_lstm_c0_squeeze_axes_0 = const()[name = tensor<string, []>("input_3_lstm_c0_squeeze_axes_0"), val = tensor<int32, [1]>([0])]; | |
| tensor<fp16, [1, 640]> input_3_lstm_c0_squeeze_cast_fp16 = squeeze(axes = input_3_lstm_c0_squeeze_axes_0, x = split_1_cast_fp16_1)[name = tensor<string, []>("input_3_lstm_c0_squeeze_cast_fp16")]; | |
| tensor<string, []> input_3_direction_0 = const()[name = tensor<string, []>("input_3_direction_0"), val = tensor<string, []>("forward")]; | |
| tensor<bool, []> input_3_output_sequence_0 = const()[name = tensor<string, []>("input_3_output_sequence_0"), val = tensor<bool, []>(true)]; | |
| tensor<string, []> input_3_recurrent_activation_0 = const()[name = tensor<string, []>("input_3_recurrent_activation_0"), val = tensor<string, []>("sigmoid")]; | |
| tensor<string, []> input_3_cell_activation_0 = const()[name = tensor<string, []>("input_3_cell_activation_0"), val = tensor<string, []>("tanh")]; | |
| tensor<string, []> input_3_activation_0 = const()[name = tensor<string, []>("input_3_activation_0"), val = tensor<string, []>("tanh")]; | |
| tensor<fp16, [2560, 640]> concat_4_to_fp16 = const()[name = tensor<string, []>("concat_4_to_fp16"), val = tensor<fp16, [2560, 640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(7871040)))]; | |
| tensor<fp16, [2560, 640]> concat_5_to_fp16 = const()[name = tensor<string, []>("concat_5_to_fp16"), val = tensor<fp16, [2560, 640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(11147904)))]; | |
| tensor<fp16, [2560]> concat_3_to_fp16 = const()[name = tensor<string, []>("concat_3_to_fp16"), val = tensor<fp16, [2560]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(14424768)))]; | |
| tensor<fp16, [1, 1, 640]> input_3_cast_fp16_0, tensor<fp16, [1, 640]> input_3_cast_fp16_1, tensor<fp16, [1, 640]> input_3_cast_fp16_2 = lstm(activation = input_3_activation_0, bias = concat_3_to_fp16, cell_activation = input_3_cell_activation_0, direction = input_3_direction_0, initial_c = input_3_lstm_c0_squeeze_cast_fp16, initial_h = input_3_lstm_h0_squeeze_cast_fp16, output_sequence = input_3_output_sequence_0, recurrent_activation = input_3_recurrent_activation_0, weight_hh = concat_5_to_fp16, weight_ih = concat_4_to_fp16, x = input_3_lstm_layer_0_cast_fp16_0)[name = tensor<string, []>("input_3_cast_fp16")]; | |
| tensor<int32, []> var_41_axis_0 = const()[name = tensor<string, []>("op_41_axis_0"), val = tensor<int32, []>(0)]; | |
| tensor<fp16, [2, 1, 640]> h_out = stack(axis = var_41_axis_0, values = (input_3_lstm_layer_0_cast_fp16_1, input_3_cast_fp16_1))[name = tensor<string, []>("op_41_cast_fp16")]; | |
| tensor<int32, []> var_42_axis_0 = const()[name = tensor<string, []>("op_42_axis_0"), val = tensor<int32, []>(0)]; | |
| tensor<fp16, [2, 1, 640]> c_out = stack(axis = var_42_axis_0, values = (input_3_lstm_layer_0_cast_fp16_2, input_3_cast_fp16_2))[name = tensor<string, []>("op_42_cast_fp16")]; | |
| tensor<int32, [3]> input_7_perm_0 = const()[name = tensor<string, []>("input_7_perm_0"), val = tensor<int32, [3]>([1, 0, 2])]; | |
| tensor<int32, [3]> input_5_perm_0 = const()[name = tensor<string, []>("input_5_perm_0"), val = tensor<int32, [3]>([0, 2, 1])]; | |
| tensor<string, []> encoder_to_fp16_dtype_0 = const()[name = tensor<string, []>("encoder_to_fp16_dtype_0"), val = tensor<string, []>("fp16")]; | |
| tensor<fp16, [640, 1024]> joint_enc_weight_to_fp16 = const()[name = tensor<string, []>("joint_enc_weight_to_fp16"), val = tensor<fp16, [640, 1024]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(14429952)))]; | |
| tensor<fp16, [640]> joint_enc_bias_to_fp16 = const()[name = tensor<string, []>("joint_enc_bias_to_fp16"), val = tensor<fp16, [640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(15740736)))]; | |
| tensor<fp16, [1, 1024, 1]> encoder_to_fp16 = cast(dtype = encoder_to_fp16_dtype_0, x = encoder)[name = tensor<string, []>("cast_5")]; | |
| tensor<fp16, [1, 1, 1024]> input_5_cast_fp16 = transpose(perm = input_5_perm_0, x = encoder_to_fp16)[name = tensor<string, []>("transpose_0")]; | |
| tensor<fp16, [1, 1, 640]> linear_0_cast_fp16 = linear(bias = joint_enc_bias_to_fp16, weight = joint_enc_weight_to_fp16, x = input_5_cast_fp16)[name = tensor<string, []>("linear_0_cast_fp16")]; | |
| tensor<fp16, [640, 640]> joint_pred_weight_to_fp16 = const()[name = tensor<string, []>("joint_pred_weight_to_fp16"), val = tensor<fp16, [640, 640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(15742080)))]; | |
| tensor<fp16, [640]> joint_pred_bias_to_fp16 = const()[name = tensor<string, []>("joint_pred_bias_to_fp16"), val = tensor<fp16, [640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(16561344)))]; | |
| tensor<fp16, [1, 1, 640]> input_7_cast_fp16 = transpose(perm = input_7_perm_0, x = input_3_cast_fp16_0)[name = tensor<string, []>("transpose_1")]; | |
| tensor<fp16, [1, 1, 640]> linear_1_cast_fp16 = linear(bias = joint_pred_bias_to_fp16, weight = joint_pred_weight_to_fp16, x = input_7_cast_fp16)[name = tensor<string, []>("linear_1_cast_fp16")]; | |
| tensor<int32, [1]> f_axes_0 = const()[name = tensor<string, []>("f_axes_0"), val = tensor<int32, [1]>([2])]; | |
| tensor<fp16, [1, 1, 1, 640]> f_cast_fp16 = expand_dims(axes = f_axes_0, x = linear_0_cast_fp16)[name = tensor<string, []>("f_cast_fp16")]; | |
| tensor<int32, [1]> g_axes_0 = const()[name = tensor<string, []>("g_axes_0"), val = tensor<int32, [1]>([1])]; | |
| tensor<fp16, [1, 1, 1, 640]> g_cast_fp16 = expand_dims(axes = g_axes_0, x = linear_1_cast_fp16)[name = tensor<string, []>("g_cast_fp16")]; | |
| tensor<fp16, [1, 1, 1, 640]> input_9_cast_fp16 = add(x = f_cast_fp16, y = g_cast_fp16)[name = tensor<string, []>("input_9_cast_fp16")]; | |
| tensor<fp16, [1, 1, 1, 640]> input_11_cast_fp16 = relu(x = input_9_cast_fp16)[name = tensor<string, []>("input_11_cast_fp16")]; | |
| tensor<fp16, [1025, 640]> joint_joint_net_2_weight_to_fp16 = const()[name = tensor<string, []>("joint_joint_net_2_weight_to_fp16"), val = tensor<fp16, [1025, 640]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(16562688)))]; | |
| tensor<fp16, [1025]> joint_joint_net_2_bias_to_fp16 = const()[name = tensor<string, []>("joint_joint_net_2_bias_to_fp16"), val = tensor<fp16, [1025]>(BLOBFILE(path = tensor<string, []>("@model_path/weights/weight.bin"), offset = tensor<uint64, []>(17874752)))]; | |
| tensor<fp16, [1, 1, 1, 1025]> linear_2_cast_fp16 = linear(bias = joint_joint_net_2_bias_to_fp16, weight = joint_joint_net_2_weight_to_fp16, x = input_11_cast_fp16)[name = tensor<string, []>("linear_2_cast_fp16")]; | |
| tensor<int32, []> var_78 = const()[name = tensor<string, []>("op_78"), val = tensor<int32, []>(-1)]; | |
| tensor<fp16, [1, 1, 1, 1025]> var_80_softmax_cast_fp16 = softmax(axis = var_78, x = linear_2_cast_fp16)[name = tensor<string, []>("op_80_softmax_cast_fp16")]; | |
| tensor<fp32, []> var_80_epsilon_0 = const()[name = tensor<string, []>("op_80_epsilon_0"), val = tensor<fp32, []>(0x1p-149)]; | |
| tensor<fp16, [1, 1, 1, 1025]> logits = log(epsilon = var_80_epsilon_0, x = var_80_softmax_cast_fp16)[name = tensor<string, []>("op_80_cast_fp16")]; | |
| tensor<int32, [1]> token_length_tmp = identity(x = token_length)[name = tensor<string, []>("token_length_tmp")]; | |
| } -> (logits, h_out, c_out); | |
| } |