conda-forge / conda-forge/tensorflow-feedstock
Compatibility with Tensorflow Text
- Dominant language
- Shell
- Stars
- 93
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
### Background
Tensorflow Text (TFT) is an add-on package for Tensorflow Core (TFC) that implements various NLP-related operators.
TFT is a dependency for KerasNLP, which is an add-on package for Keras.
https://www.tensorflow.org/text
https://keras.io/api/keras_nlp/
### Challenge
Currently, TFT requires ABI-level compatibility with the Tensorflow Core package.
For example, installing TFC from conda-forge, but TFT from pip results in errors such as:
```
ImportError: /root/miniconda3/envs/env/lib/python3.10/site-packages/tensorflow_text/core/pybinds/tflite_registrar.so: undefined symbol: _ZN4absl12lts_2021032420raw_logging_internal21internal_log_functionE
```
This has been reported in TFT's tracker: https://github.com/tensorflow/text/issues/644
TFT documentation recommends building from source: https://www.tensorflow.org/text/guide/tf_text_intro#build_from_source
Steps to reproduce:
```bash
conda create -n text python
conda activate text
conda install -c conda-forge tensorflow=2.10
pip install tensorflow_text==2.10
python -c 'import tensorflow_text'
```
### Discussion Questions
1. Is there an easy way to make TFT compatible with conda-forge's Tensorflow Core without rebuilding?
2. If not, what would be the steps build TFT in conda-forge?
Contributor guide
Assessment
This issue has not been assessed yet.