phenompeople / bert-server

1 stars 0 forks source link

Docker container not working #2

Open alelasantillan opened 4 years ago

alelasantillan commented 4 years ago

When launching after: docker run --name=bert-server -p 5555:5555 -p 5556:5556 -td phenompeople/bert-server

The server stops with this message: /usr/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /usr/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:524: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /usr/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /usr/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /usr/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /usr/local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:532: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) I:VENTILATOR:[i:i: 66]:freeze, optimize and export graph, could take a while... I:GRAPHOPT:[gra:opt: 52]:model config: models/uncased_L-24_H-1024_A-16/bert_config.json I:GRAPHOPT:[gra:opt: 55]:checkpoint: models/uncased_L-24_H-1024_A-16/bert_model.ckpt E:GRAPHOPT:[gra:opt:150]:fail to optimize the graph! Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/bert_serving/server/graph.py", line 57, in optimize_graph bert_config = modeling.BertConfig.from_dict(json.load(f)) File "/usr/local/lib/python3.6/json/init.py", line 296, in load return loads(fp.read(), File "/usr/local/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 125, in read self._preread_check() File "/usr/local/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 85, in _preread_check compat.as_bytes(self.name), 1024 * 512, status) File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 526, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: models/uncased_L-24_H-1024_A-16/bert_config.json; No such file or directory Traceback (most recent call last): File "/usr/local/bin/bert-serving-start", line 11, in sys.exit(main()) File "/usr/local/lib/python3.6/site-packages/bert_serving/server/cli/init.py", line 5, in main server = BertServer(args) File "/usr/local/lib/python3.6/site-packages/bert_serving/server/init.py", line 76, in init__ raise FileNotFoundError('graph optimization fails and returns empty result') FileNotFoundError: graph optimization fails and returns empty result

phhu commented 4 years ago

I have the same error.