https://huggingface.co/hts98/whisper-medium-vietnamese
convert into
tflite
This is how I try ????
<code>import tensorflow as tf
from transformers import TFAutoModelForSpeechSeq2Seq
model = TFAutoModelForSpeechSeq2Seq.from_pretrained("hts98/whisper-medium-vietnamese", from_pt=True)
converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()
with tf.io.gfile.GFile('model.tflite', 'wb') as f:
f.write(tflite_model)
</code>
<code>import tensorflow as tf
from transformers import TFAutoModelForSpeechSeq2Seq
model = TFAutoModelForSpeechSeq2Seq.from_pretrained("hts98/whisper-medium-vietnamese", from_pt=True)
converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()
with tf.io.gfile.GFile('model.tflite', 'wb') as f:
f.write(tflite_model)
</code>
import tensorflow as tf
from transformers import TFAutoModelForSpeechSeq2Seq
model = TFAutoModelForSpeechSeq2Seq.from_pretrained("hts98/whisper-medium-vietnamese", from_pt=True)
converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()
with tf.io.gfile.GFile('model.tflite', 'wb') as f:
f.write(tflite_model)
New contributor
哈哈哈 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.