从s3加载模型对我不起作用。根据#615我使用以下方法编译服务器:
bazel build -s -c opt --define with_s3_support=true //tensorflow_serving/model_servers:tensorflow_model_server
现在我用
运行它bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server --model_base_path=s3://bucketname/
我正在
FileSystemStoragePathSource遇到文件系统访问错误:无法找到基本路径s3:// bucketname / for servable default
有关如何解决此问题的任何提示?
答案 0 :(得分:1)
TextBox
无法解析。
更好的方法是在S3上使用模型的URL。如果您要这样做,则必须公开存储桶,每个人都可以访问它,或者您必须创建允许从服务器IP访问的存储桶策略。
如果您在AWS上托管服务器,您也可以使用IAM角色启动它并为其提供S3FullAccess。这适用于任何类型的生产环境,因为您不必在源代码中存储API密钥。