Downloads · 30 days
12
3% of all-time downloads
jacob-valdez/blenderbot-small-tflite
blenderbot-small-tflite is a machine learning model from jacob-valdez. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
blenderbot-small-tflite is a tflite version of blenderbot-small-90M I converted for my UTA CSE3310 class. See the repo at https://github.com/kmosoti/DesparadosAEYE and the conversion process here.
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
357
Public
Repo size
703 MB
Likes
1
Public
Click a slice to open those files.
.tflite351 MB · 100%
From the Hugging Face model README
blenderbot-small-tflite is a tflite version of blenderbot-small-90M I converted for my UTA CSE3310 class. See the repo at https://github.com/kmosoti/DesparadosAEYE and the conversion process here.
You have to right pad your user and model input integers to make them [32,]-shaped. Then indicate te true length with the 3rd and 4th params.
display(interpreter.get_input_details())
display(interpreter.get_output_details())
[{'dtype': numpy.int32,
'index': 0,
'name': 'input_tokens',
'quantization': (0.0, 0),
'quantization_parameters': {'quantized_dimension': 0,
'scales': array([], dtype=float32),
'zero_points': array([], dtype=int32)},
'shape': array([32], dtype=int32),
'shape_signature': array([32], dtype=int32),
'sparsity_parameters': {}},
{'dtype': numpy.int32,
'index': 1,
'name': 'decoder_input_tokens',
'quantization': (0.0, 0),
'quantization_parameters': {'quantized_dimension': 0,
'scales': array([], dtype=float32),
'zero_points': array([], dtype=int32)},
'shape': array([32], dtype=int32),
'shape_signature': array([32], dtype=int32),
'sparsity_parameters': {}},
{'dtype': numpy.int32,
'index': 2,
'name': 'input_len',
'quantization': (0.0, 0),
'quantization_parameters': {'quantized_dimension': 0,
'scales': array([], dtype=float32),
'zero_points': array([], dtype=int32)},
'shape': array([], dtype=int32),
'shape_signature': array([], dtype=int32),
'sparsity_parameters': {}},
{'dtype': numpy.int32,
'index': 3,
'name': 'decoder_input_len',
'quantization': (0.0, 0),
'quantization_parameters': {'quantized_dimension': 0,
'scales': array([], dtype=float32),
'zero_points': array([], dtype=int32)},
'shape': array([], dtype=int32),
'shape_signature': array([], dtype=int32),
'sparsity_parameters': {}}]
[{'dtype': numpy.int32,
'index': 3113,
'name': 'Identity',
'quantization': (0.0, 0),
'quantization_parameters': {'quantized_dimension': 0,
'scales': array([], dtype=float32),
'zero_points': array([], dtype=int32)},
'shape': array([1], dtype=int32),
'shape_signature': array([1], dtype=int32),
'sparsity_parameters': {}}]