mediapipe-nightly 0.10.11.post20240303__cp310-cp310-macosx_11_0_x86_64.whl → 0.10.11.post20240306__cp310-cp310-macosx_11_0_x86_64.whl
Sign up to get free protection for your applications and to get access to all the features.
- mediapipe/__init__.py +1 -1
- mediapipe/python/_framework_bindings.cpython-310-darwin.so +0 -0
- mediapipe/tasks/cc/genai/inference/calculators/llm_gpu_calculator_pb2.py +6 -5
- mediapipe/tasks/cc/genai/inference/proto/sampler_params_pb2.py +29 -0
- mediapipe/tasks/cc/metadata/python/_pywrap_metadata_version.cpython-310-darwin.so +0 -0
- mediapipe/tasks/python/genai/converter/safetensors_converter.py +0 -7
- mediapipe/tasks/python/metadata/flatbuffers_lib/_pywrap_flatbuffers.cpython-310-darwin.so +0 -0
- {mediapipe_nightly-0.10.11.post20240303.dist-info → mediapipe_nightly-0.10.11.post20240306.dist-info}/METADATA +1 -1
- {mediapipe_nightly-0.10.11.post20240303.dist-info → mediapipe_nightly-0.10.11.post20240306.dist-info}/RECORD +12 -11
- {mediapipe_nightly-0.10.11.post20240303.dist-info → mediapipe_nightly-0.10.11.post20240306.dist-info}/LICENSE +0 -0
- {mediapipe_nightly-0.10.11.post20240303.dist-info → mediapipe_nightly-0.10.11.post20240306.dist-info}/WHEEL +0 -0
- {mediapipe_nightly-0.10.11.post20240303.dist-info → mediapipe_nightly-0.10.11.post20240306.dist-info}/top_level.txt +0 -0
mediapipe/__init__.py
CHANGED
Binary file
|
@@ -14,9 +14,10 @@ _sym_db = _symbol_database.Default()
|
|
14
14
|
|
15
15
|
from mediapipe.tasks.cc.genai.inference.proto import llm_file_metadata_pb2 as mediapipe_dot_tasks_dot_cc_dot_genai_dot_inference_dot_proto_dot_llm__file__metadata__pb2
|
16
16
|
from mediapipe.tasks.cc.genai.inference.proto import llm_params_pb2 as mediapipe_dot_tasks_dot_cc_dot_genai_dot_inference_dot_proto_dot_llm__params__pb2
|
17
|
+
from mediapipe.tasks.cc.genai.inference.proto import sampler_params_pb2 as mediapipe_dot_tasks_dot_cc_dot_genai_dot_inference_dot_proto_dot_sampler__params__pb2
|
17
18
|
|
18
19
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nGmediapipe/tasks/cc/genai/inference/calculators/llm_gpu_calculator.proto\x12\x10odml.infra.proto\x1a@mediapipe/tasks/cc/genai/inference/proto/llm_file_metadata.proto\x1a\x39mediapipe/tasks/cc/genai/inference/proto/llm_params.proto\"\
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nGmediapipe/tasks/cc/genai/inference/calculators/llm_gpu_calculator.proto\x12\x10odml.infra.proto\x1a@mediapipe/tasks/cc/genai/inference/proto/llm_file_metadata.proto\x1a\x39mediapipe/tasks/cc/genai/inference/proto/llm_params.proto\x1a=mediapipe/tasks/cc/genai/inference/proto/sampler_params.proto\"\xde\x04\n\x17LlmGpuCalculatorOptions\x12\x13\n\x0bweight_path\x18\x01 \x01(\t\x12N\n\x0egpu_model_info\x18\n \x01(\x0b\x32\x36.odml.infra.proto.LlmGpuCalculatorOptions.GpuModelInfo\x12\x19\n\x11num_decode_tokens\x18\x0c \x01(\x05\x12\x1b\n\x13sequence_batch_size\x18\x0e \x01(\x05\x12\x11\n\tlora_path\x18\x13 \x01(\t\x12\x37\n\x0ellm_parameters\x18\x14 \x01(\x0b\x32\x1f.odml.infra.proto.LlmParameters\x12\x18\n\x10num_output_heads\x18\x16 \x01(\x05\x12;\n\x0esampler_params\x18\x1f \x01(\x0b\x32#.odml.infra.proto.SamplerParameters\x1a\xc0\x01\n\x0cGpuModelInfo\x12\x1c\n\x14\x61llow_precision_loss\x18\x01 \x01(\x08\x12\x1a\n\x12\x65nable_fast_tuning\x18\x02 \x01(\x08\x12\x1b\n\x13\x65nable_winograd_opt\x18\x03 \x01(\x08\x12\x15\n\ruse_low_power\x18\x04 \x01(\x08\x12\x1e\n\x16prefer_texture_weights\x18\x05 \x01(\x08\x12\"\n\x1a\x65nable_host_mapped_pointer\x18\x06 \x01(\x08J\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\x0b\x10\x0cJ\x04\x08\r\x10\x0eJ\x04\x08\x17\x10\x1c\x42;\n\x1b\x63om.google.odml.infra.protoB\x1cLlmGpuCalculatorOptionsProtob\x06proto3')
|
20
21
|
|
21
22
|
_globals = globals()
|
22
23
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -24,8 +25,8 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.genai.in
|
|
24
25
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
25
26
|
_globals['DESCRIPTOR']._options = None
|
26
27
|
_globals['DESCRIPTOR']._serialized_options = b'\n\033com.google.odml.infra.protoB\034LlmGpuCalculatorOptionsProto'
|
27
|
-
_globals['_LLMGPUCALCULATOROPTIONS']._serialized_start=
|
28
|
-
_globals['_LLMGPUCALCULATOROPTIONS']._serialized_end=
|
29
|
-
_globals['_LLMGPUCALCULATOROPTIONS_GPUMODELINFO']._serialized_start=
|
30
|
-
_globals['_LLMGPUCALCULATOROPTIONS_GPUMODELINFO']._serialized_end=
|
28
|
+
_globals['_LLMGPUCALCULATOROPTIONS']._serialized_start=282
|
29
|
+
_globals['_LLMGPUCALCULATOROPTIONS']._serialized_end=888
|
30
|
+
_globals['_LLMGPUCALCULATOROPTIONS_GPUMODELINFO']._serialized_start=630
|
31
|
+
_globals['_LLMGPUCALCULATOROPTIONS_GPUMODELINFO']._serialized_end=822
|
31
32
|
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: mediapipe/tasks/cc/genai/inference/proto/sampler_params.proto
|
4
|
+
# Protobuf Python Version: 4.25.1
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=mediapipe/tasks/cc/genai/inference/proto/sampler_params.proto\x12\x10odml.infra.proto\"\xc4\x01\n\x11SamplerParameters\x12\x36\n\x04type\x18\x01 \x01(\x0e\x32(.odml.infra.proto.SamplerParameters.Type\x12\t\n\x01k\x18\x02 \x01(\x05\x12\t\n\x01p\x18\x03 \x01(\x02\x12\x13\n\x0btemperature\x18\x04 \x01(\x02\x12\x11\n\x04seed\x18\x05 \x01(\x05H\x00\x88\x01\x01\"0\n\x04Type\x12\x12\n\x0e\x44\x45\x46\x41ULT_GREEDY\x10\x00\x12\t\n\x05TOP_K\x10\x01\x12\t\n\x05TOP_P\x10\x02\x42\x07\n\x05_seedB5\n\x1b\x63om.google.odml.infra.protoB\x16SamplerParametersProtob\x06proto3')
|
18
|
+
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.genai.inference.proto.sampler_params_pb2', _globals)
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
23
|
+
_globals['DESCRIPTOR']._options = None
|
24
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033com.google.odml.infra.protoB\026SamplerParametersProto'
|
25
|
+
_globals['_SAMPLERPARAMETERS']._serialized_start=84
|
26
|
+
_globals['_SAMPLERPARAMETERS']._serialized_end=280
|
27
|
+
_globals['_SAMPLERPARAMETERS_TYPE']._serialized_start=223
|
28
|
+
_globals['_SAMPLERPARAMETERS_TYPE']._serialized_end=271
|
29
|
+
# @@protoc_insertion_point(module_scope)
|
Binary file
|
@@ -393,13 +393,6 @@ class GemmaMapper(converter_base.LayerActionMapperBase):
|
|
393
393
|
quantize_axis = [1]
|
394
394
|
elif layer_type == LayerType.EMBEDDING:
|
395
395
|
quantize_bits = self._embedding_quant_bits
|
396
|
-
if tensor_value.shape[1] < 256128:
|
397
|
-
# Padd the embedding shape if the vocab size was smaller than the
|
398
|
-
# original setting: 256128.
|
399
|
-
pad_count = 256128 - tensor_value.shape[1]
|
400
|
-
tensor_value = np.pad(
|
401
|
-
tensor_value, ((0, 0), (0, pad_count)), mode="constant"
|
402
|
-
)
|
403
396
|
|
404
397
|
target_name = self.update_target_name(layer_name)
|
405
398
|
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mediapipe-nightly
|
3
|
-
Version: 0.10.11.
|
3
|
+
Version: 0.10.11.post20240306
|
4
4
|
Summary: MediaPipe is the simplest way for researchers and developers to build world-class ML solutions and applications for mobile, edge, cloud and the web.
|
5
5
|
Home-page: https://github.com/google/mediapipe
|
6
6
|
Author: The MediaPipe Authors
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
mediapipe_nightly-0.10.11.post20240306.dist-info/RECORD,,
|
2
|
+
mediapipe_nightly-0.10.11.post20240306.dist-info/LICENSE,sha256=hwfu8FM5h-_FsVXWR2HutuIHk_ULm9Gmja0c9HGdDtg,12331
|
3
|
+
mediapipe_nightly-0.10.11.post20240306.dist-info/WHEEL,sha256=M8b9ULkaMplgMtp3yPg8hIiqGMbYy3WJOJ_rS5NiMpg,111
|
4
|
+
mediapipe_nightly-0.10.11.post20240306.dist-info/top_level.txt,sha256=LG-epD1oIiiHFRqLp--7jacjB3dbx2RfMcLYjCIhmxU,175
|
5
|
+
mediapipe_nightly-0.10.11.post20240306.dist-info/METADATA,sha256=Dkj8UyCuI3MTX88ebjBj6MPGhtmo5g-7OMWQpLH0A9Y,9715
|
6
|
+
mediapipe/__init__.py,sha256=7HfDIK8Hb2_laLnceVSPN93VG8kuDzXP8COPfw3krpM,816
|
2
7
|
mediapipe/tasks/__init__.py,sha256=sVJS2p8J2PNVl8DLRPVY6KLpHenP_z3QVPRU0x_iL5g,571
|
3
8
|
mediapipe/tasks/python/__init__.py,sha256=wIM_WOWboOVI1MeehN8fkN_DjoA0MEBVw5mShAd8AS4,858
|
4
9
|
mediapipe/tasks/python/benchmark/__init__.py,sha256=epEucluzX0HinwBZoS7Tgb19j_qgfTuBf-vBkqemch8,587
|
@@ -84,7 +89,7 @@ mediapipe/tasks/python/genai/__init__.py,sha256=7rri6fT6wNurla8O2c5yKiLs9_3qIY0v
|
|
84
89
|
mediapipe/tasks/python/genai/converter/pytorch_converter_test.py,sha256=y_Mg9pOQtlUDh6uVmkz5LcUbk-pmDLA9L3KcxKR-OaA,3041
|
85
90
|
mediapipe/tasks/python/genai/converter/safetensors_converter_test.py,sha256=oCk4FnsjBJkEPlXtv8fdq9dn3I06LsSQRMi0BV_9mew,2802
|
86
91
|
mediapipe/tasks/python/genai/converter/quantization_util.py,sha256=B6i13GqRRIwMabEJWO8rFHPMBjIgdOhFpHiwMD4GzRc,17196
|
87
|
-
mediapipe/tasks/python/genai/converter/safetensors_converter.py,sha256=
|
92
|
+
mediapipe/tasks/python/genai/converter/safetensors_converter.py,sha256=HK2YUOg9CprHEv52I5f8hQI2GPjNnDoHRguoqsd6dPo,18714
|
88
93
|
mediapipe/tasks/python/genai/converter/weight_bins_writer_test.py,sha256=6qgNYXODNOsbveZ0ighEW4JBdawil9mPcC16MZ0mdm8,1994
|
89
94
|
mediapipe/tasks/python/genai/converter/converter_base.py,sha256=1nBgvcY5xaI0ZPjBJTVdViDFraVyJUZHLXBT0dYOX9c,6568
|
90
95
|
mediapipe/tasks/python/genai/converter/pytorch_converter.py,sha256=b-GWYOzgD-ZRGgyqcXE9LG_JOL0Mqba4q0pc_imrbrg,10771
|
@@ -96,7 +101,7 @@ mediapipe/tasks/python/genai/converter/weight_bins_writer.py,sha256=4nUVWlvR6CMF
|
|
96
101
|
mediapipe/tasks/python/metadata/metadata.py,sha256=EECQnM-Af0angD60jaBBOuNMgt7HExH6SqVtVMFNHGc,33763
|
97
102
|
mediapipe/tasks/python/metadata/metadata_displayer_cli.py,sha256=tLhF0B1mXG0igFTA9nPh8t1efRpRw2hQ00XpTPYdk_o,1202
|
98
103
|
mediapipe/tasks/python/metadata/__init__.py,sha256=YGHXQMz1ZGPcNgSXggu03b0USZKE8d9Xqvn6NDUl898,586
|
99
|
-
mediapipe/tasks/python/metadata/flatbuffers_lib/_pywrap_flatbuffers.cpython-310-darwin.so,sha256=
|
104
|
+
mediapipe/tasks/python/metadata/flatbuffers_lib/_pywrap_flatbuffers.cpython-310-darwin.so,sha256=d6CVd2Fp3lefZgr4tHB0l8AyDILN-kXAlFpiP7j0tQ0,1630579
|
100
105
|
mediapipe/tasks/python/metadata/metadata_writers/image_classifier.py,sha256=fU4Xu4bm0fak8h7yjVAAQBIHpEH18ZEiXUSc-2dHgvk,3023
|
101
106
|
mediapipe/tasks/python/metadata/metadata_writers/object_detector.py,sha256=IzKqY1S0p2RQ_Vd0nF08y16dHYLa-2HwB4zmuWmixVw,12970
|
102
107
|
mediapipe/tasks/python/metadata/metadata_writers/model_asset_bundle_utils.py,sha256=HMUhrYzAJ0lQCAfKDOTQ82_EGDJfVS-ECVdZfFQGDM4,2622
|
@@ -251,6 +256,7 @@ mediapipe/tasks/cc/text/text_embedder/proto/text_embedder_graph_options_pb2.py,s
|
|
251
256
|
mediapipe/tasks/cc/text/text_embedder/proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
252
257
|
mediapipe/tasks/cc/genai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
253
258
|
mediapipe/tasks/cc/genai/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
259
|
+
mediapipe/tasks/cc/genai/inference/proto/sampler_params_pb2.py,sha256=oPtBH_Nd9PTenGoZDw5Pf096dAEDfsJtiyNjGF_1iS8,1844
|
254
260
|
mediapipe/tasks/cc/genai/inference/proto/llm_params_pb2.py,sha256=zGZQREcWs5jzbMipVcGmXOrJFMeq5lgQNcA_U1XkOoE,2311
|
255
261
|
mediapipe/tasks/cc/genai/inference/proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
256
262
|
mediapipe/tasks/cc/genai/inference/proto/llm_file_metadata_pb2.py,sha256=MdDe96Ruxqcnm4vrixmyLqPmBWpXn207W50TX5UYMCo,2454
|
@@ -260,12 +266,12 @@ mediapipe/tasks/cc/genai/inference/utils/llm_utils/__init__.py,sha256=47DEQpj8HB
|
|
260
266
|
mediapipe/tasks/cc/genai/inference/utils/xnn_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
261
267
|
mediapipe/tasks/cc/genai/inference/calculators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
262
268
|
mediapipe/tasks/cc/genai/inference/calculators/tokenizer_calculator_pb2.py,sha256=m6mFdMkEGTeGJOa5o00kQU7rVZRDmnBhum0kfEmQJ_8,2038
|
263
|
-
mediapipe/tasks/cc/genai/inference/calculators/llm_gpu_calculator_pb2.py,sha256=
|
269
|
+
mediapipe/tasks/cc/genai/inference/calculators/llm_gpu_calculator_pb2.py,sha256=GhoLBy0LQ2btFJSj0xKTswkbCfrzPQYBwPKbfABujDI,3317
|
264
270
|
mediapipe/tasks/cc/genai/inference/calculators/detokenizer_calculator_pb2.py,sha256=-VpQshysnt83CsxDB5AIUEb9qw6KaArkek1MR7xbJxI,1625
|
265
271
|
mediapipe/tasks/cc/genai/inference/c/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
266
272
|
mediapipe/tasks/cc/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
267
273
|
mediapipe/tasks/cc/metadata/python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
268
|
-
mediapipe/tasks/cc/metadata/python/_pywrap_metadata_version.cpython-310-darwin.so,sha256=
|
274
|
+
mediapipe/tasks/cc/metadata/python/_pywrap_metadata_version.cpython-310-darwin.so,sha256=7dwu5R_Ldy_XF3KRIHcW8ZzH3Exo4dCY8MVP8gl3DNM,659112
|
269
275
|
mediapipe/tasks/cc/metadata/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
270
276
|
mediapipe/tasks/cc/metadata/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
271
277
|
mediapipe/tasks/metadata/schema_py_generated.py,sha256=6Fhj9cDU3nbALhoDlOx0S5KA5Yf_xIlcSLigKDFPSm4,629922
|
@@ -315,7 +321,7 @@ mediapipe/util/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
315
321
|
mediapipe/util/analytics/mediapipe_log_extension_pb2.py,sha256=UX1x8jckc8NQbUz-SXOKkb8co3JNIRX3rfaMs4_Dz8g,4319
|
316
322
|
mediapipe/util/analytics/mediapipe_logging_enums_pb2.py,sha256=9pxs-DNSQnXQe7E_LKokGDbD_G1FpmzzJw1jzex78lU,3781
|
317
323
|
mediapipe/python/solution_base.py,sha256=nEIqsho9DlutfvWWzdSxCOpJ2QzN7n2938WLDmFzn38,26072
|
318
|
-
mediapipe/python/_framework_bindings.cpython-310-darwin.so,sha256=
|
324
|
+
mediapipe/python/_framework_bindings.cpython-310-darwin.so,sha256=TyZUieKhQgf0iHAQaPBVlmJ9mnWUqyffChG43xpJ_7U,86642595
|
319
325
|
mediapipe/python/timestamp_test.py,sha256=oWKTZMsV586jH57OBV30rihcymETyGC29VbYURNLJQQ,2528
|
320
326
|
mediapipe/python/image_frame_test.py,sha256=ZSjdE-an2t8i6MiA4_Xri91VMH5_CCx45fjhWUQptMY,8602
|
321
327
|
mediapipe/python/__init__.py,sha256=BQglgytZUe7_ZuD8amosz-szWdJ2LQp81nsuiEY3W84,1493
|
@@ -573,8 +579,3 @@ mediapipe/modules/selfie_segmentation/selfie_segmentation.tflite,sha256=nuFo7HyP
|
|
573
579
|
mediapipe/modules/palm_detection/palm_detection_full.tflite,sha256=GxTpQixq0AbN5lgaRsi5DdVzwHq385NLVYnnzqP4mlQ,2339846
|
574
580
|
mediapipe/modules/palm_detection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
575
581
|
mediapipe/modules/palm_detection/palm_detection_lite.tflite,sha256=6aSq3fkN2laocjUwPPAOTC0_socl9o_Yh3KZfayQXBg,1985440
|
576
|
-
mediapipe_nightly-0.10.11.post20240303.dist-info/RECORD,,
|
577
|
-
mediapipe_nightly-0.10.11.post20240303.dist-info/LICENSE,sha256=hwfu8FM5h-_FsVXWR2HutuIHk_ULm9Gmja0c9HGdDtg,12331
|
578
|
-
mediapipe_nightly-0.10.11.post20240303.dist-info/WHEEL,sha256=M8b9ULkaMplgMtp3yPg8hIiqGMbYy3WJOJ_rS5NiMpg,111
|
579
|
-
mediapipe_nightly-0.10.11.post20240303.dist-info/top_level.txt,sha256=LG-epD1oIiiHFRqLp--7jacjB3dbx2RfMcLYjCIhmxU,175
|
580
|
-
mediapipe_nightly-0.10.11.post20240303.dist-info/METADATA,sha256=PzIBKWQFkkKcurgEWrf-xP3DXRNd6bRRmRsDXPMMvaQ,9715
|
File without changes
|
File without changes
|
File without changes
|