You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Bicleaner AI to clean up Opus corpora. As part of that I was looking at using TPUs for the clean up process.
On Kaggle, there is documentation on using TPUs with TF and Keras as follows:
# detect and init the TPUtpu=tf.distribute.cluster_resolver.TPUClusterResolver()
# instantiate a distribution strategytf.tpu.experimental.initialize_tpu_system(tpu)
tpu_strategy=tf.distribute.TPUStrategy(tpu)
# instantiating the model in the strategy scope creates the model on the TPUwithtpu_strategy.scope():
model=tf.keras.Sequential( … ) # define your model normallymodel.compile( … )
# train model normallymodel.fit(training_dataset, epochs=EPOCHS, steps_per_epoch=…)
But I am not sure how I would compile and run a bicleaner-ai model with TPUs. Is there a simple way to integrate Bicleaner AI with TPU support?
Thanks for your help in advance.
The text was updated successfully, but these errors were encountered:
I guess that if you need to set the TPU scope during model loading (not exactly as the example, because that is for training, though), you will need to do it here:
Hi Bitextor team,
I'm using Bicleaner AI to clean up Opus corpora. As part of that I was looking at using TPUs for the clean up process.
On Kaggle, there is documentation on using TPUs with TF and Keras as follows:
But I am not sure how I would compile and run a bicleaner-ai model with TPUs. Is there a simple way to integrate Bicleaner AI with TPU support?
Thanks for your help in advance.
The text was updated successfully, but these errors were encountered: