在使用TensorFlow Model Server时,我会遇到此错误:版本`glibc_2.28'未找到

发布于 2025-02-08 15:08:11 字数 793 浏览 1 评论 0原文

在运行教程,我在下方运行代码

%% bash -bg nohup tensorflow_model_server
-rest_api_port = 8501
-model_name = tfrbert
-model_base_path =“/content/drive/mydrive/app/model14/export/export/best_model_by_loss/”> server.log 2> 1>& 1

对我有用。但是现在我遇到了这个错误:

tensorflow_model_server:/lib/x86_64-linux-gnu/libc.so.6:版本glibc_2.28'找不到(tensorflow_model_server_model_server) -gnu/libstdc ++。so.6:版本 glibcxx_3.4.26找不到(tensorflow_model_server要求) tensorflow_model_server:/lib/x86_64-linux-gnu/libm.so.6:找不到版本`glibc_2.29'(由tensorflow_model_server要求)

我搜索了很多,但没有帮助。有人知道如何解决问题吗? 多谢。

while running the tutorial, I run the code below

%%bash --bg
nohup tensorflow_model_server
--rest_api_port=8501
--model_name=tfrbert
--model_base_path="/content/drive/MyDrive/app/model14/export/best_model_by_loss/" >server.log 2>&1

it worked for me befor. but now I encounter with this error:

tensorflow_model_server: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by tensorflow_model_server) tensorflow_model_server: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: versionGLIBCXX_3.4.26' not found (required by tensorflow_model_server)
tensorflow_model_server: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by tensorflow_model_server)

I searched a lot, but nothing helped. does anybody know how to solve the problem?
thanks a lot.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

弥繁 2025-02-15 15:08:12

错误是指:tensorflow_model_server二进制已编译并链接在使用Glibc-2.28或更新的系统上,您正在尝试在具有GLIBC-2.27或以上的系统上运行它。

您应该找到tensorflow_model_server 适当的系统的构建。

另外,您可以使用带有GLIBC-2.28或更新的Docker容器,并在该容器中运行Tensorflow_model_server

另一个选项是构建Tensorflow_model_server您自己在系统上 - 生成的二进制文件将使用它。

The error means: the tensorflow_model_server binary you have was compiled and linked on a system with GLIBC-2.28 or newer, and you are trying to run it on a system with GLIBC-2.27 or older.

You should find a build of tensorflow_model_server appropriate for your system.

Alternatively, you could use a docker container with GLIBC-2.28 or newer, and run tensorflow_model_server in that container.

Another option is to build tensorflow_model_server yourself on your system -- the resulting binary will work on it.

耳钉梦 2025-02-15 15:08:12

当我尝试在colab上使用训练有素的对象检测模型时,我遇到了同样的错误。原因是colab2.27安装的glibc版本,而最新版本的TensorFlow Serving Serving (2.9.1)需要GlibBC的更新版本恰好是2.28。您可以阅读有关glibc 的更多信息。

这是您查看Glibc的版本:ldd -version

在我的情况下,我不是使用最新版本的Tensroflow Serving,而是使用了1.15版本,它的工作非常起在Google Colab上很好。这就是我安装1.15版本的方式:

!wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-1.15.0/t/tensorflow-model-server/tensorflow-model-server_1.15.0_all.deb'
!dpkg -i tensorflow-model-server_1.15.0_all.deb
!pip3 install tensorflow-serving-api==1.15

!sudo apt-get update && sudo apt-get install tensorflow-model-server

I got the same error while I was trying to serve my trained Object Detection model on Colab. The reason being the GLIBC version installed on Colab is 2.27 whereas the latest version of Tensorflow Serving(2.9.1) requires the updated version of GLIBBC which happens to be 2.28. You can read more about GLIBC here.

This is how you check the version of GLIBC : ldd --version

In my case, rather than using the latest version of Tensroflow Serving, I used the 1.15 version which worked very well on Google Colab. This is how I installed the 1.15 version :

!wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-1.15.0/t/tensorflow-model-server/tensorflow-model-server_1.15.0_all.deb'
!dpkg -i tensorflow-model-server_1.15.0_all.deb
!pip3 install tensorflow-serving-api==1.15

!sudo apt-get update && sudo apt-get install tensorflow-model-server
濫情▎り 2025-02-15 15:08:12

只需安装此功能,一切都可以正常工作。

!wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-universal-2.8.0/t/tensorflow-model-server-universal/tensorflow-model-server-universal_2.8.0_all.deb'
!dpkg -i tensorflow-model-server-universal_2.8.0_all.deb

Just install this and everything will work ok .

!wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-universal-2.8.0/t/tensorflow-model-server-universal/tensorflow-model-server-universal_2.8.0_all.deb'
!dpkg -i tensorflow-model-server-universal_2.8.0_all.deb
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文