question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TpuEmbeddingEngine_WriteParameters not available in this library.

See original GitHub issue

I followed all of the instructions in the training guide but when I run the device_train script, I get this error:

2022-02-23 07:56:56.271731: F external/org_tensorflow/tensorflow/core/tpu/tpu_library_init_fns.inc:104] TpuEmbeddingEngine_WriteParameters not available in this library.

This is my exact command for the training process:

python3 device_train.py --config=configs/6B.json --tune-model-path=gs://nnrap/step_383500

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

13reactions
mrseekercommented, Feb 25, 2022

Okay, I fixed the issue this way:

  • Use version v2-alpha instead of the tpu-vm-tf-2.8.0
  • Install the package “python3-venv”
  • Build & start a virtualenv environment (python3 -m venv venv and source venv/bin/activate)
  • Install wheel (needed for some)
  • Install the requirements
  • Install Jax (as told by Google: pip install "jax[tpu]>=0.2.16" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html)
  • Reinstall tensorflow because of numpy (pip install -U tensorflow)

This seemed to fix a LOT of my issues I was having, and its now working 😃

0reactions
mosmos6commented, Feb 27, 2022

@mrseeker Your solution fixed my problem too. Thank you for sharing it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

tf.tpu.experimental.embedding.TPUEmbedding - TensorFlow
The TPUEmbedding mid level API. ... is used and set to False when embedding.apply_gradients is not present in the function.
Read more >
TPUEmbedding, ValueError: Function does not have **kwargs ...
Hi I'm trying to figure out how to get an Embedding Layer working on the TPU. I'm experimenting in a colab notebook and...
Read more >
Building Large Scale Recommenders using Cloud TPUs
The TPUEmbedding API allows users to efficiently handle very large tables by automatically sharding or partitioning them across all available ...
Read more >
Pipelines - Hugging Face
The pipelines are a great and easy way to use models for inference. These pipelines are objects that abstract most of the complex...
Read more >
PyTorch / XLA is now Generally Available on Google Cloud ...
Fast forward to September 2020, and the PyTorch / XLA library has ... such as distributing large embedding tables over multiple TPU cores; ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found