clip-as-service icon indicating copy to clipboard operation
clip-as-service copied to clipboard

argument -gpu_memory_fraction: expected one argument

Open XuJianzhi opened this issue 4 years ago • 2 comments

Prerequisites

Please fill in by replacing [ ] with [x].

System information

Some of this information can be collected via this script.

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04.2 LTS
  • TensorFlow installed from (source or binary): source
  • TensorFlow version: 1.14.0
  • Python version: 3.6.8
  • bert-as-service version: 1.10.0
  • GPU model and memory: Tesla V100, 16G
  • CPU model and memory: 20G

Description

I run " bert-serving-start -gpu_memory_fraction=0.5 -model_dir /xxxxbalabalaxxxx/bert_premodels/chinese_L-12_H-768_A-12 -num_worker=1 -gpu -port=10022 -max_seq_len=NONE -max_batch_size=28 " got " usage: bert-serving-start [-h] -model_dir MODEL_DIR [-tuned_model_dir TUNED_MODEL_DIR] [-ckpt_name CKPT_NAME] [-config_name CONFIG_NAME] [-graph_tmp_dir GRAPH_TMP_DIR] [-max_seq_len MAX_SEQ_LEN] [-cased_tokenization] [-pooling_layer POOLING_LAYER [POOLING_LAYER ...]] [-pooling_strategy {NONE,REDUCE_MAX,REDUCE_MEAN,REDUCE_MEAN_MAX,FIRST_TOKEN,LAST_TOKEN,CLS_POOLED}] [-mask_cls_sep] [-no_special_token] [-show_tokens_to_client] [-no_position_embeddings] [-port PORT] [-port_out PORT_OUT] [-http_port HTTP_PORT] [-http_max_connect HTTP_MAX_CONNECT] [-cors CORS] [-num_worker NUM_WORKER] [-max_batch_size MAX_BATCH_SIZE] [-priority_batch_size PRIORITY_BATCH_SIZE] [-cpu] [-xla] [-fp16] [-gpu_memory_fraction GPU_MEMORY_FRACTION] [-device_map DEVICE_MAP [DEVICE_MAP ...]] [-prefetch_size PREFETCH_SIZE] [-fixed_embed_length] [-verbose] [-version] bert-serving-start: error: argument -gpu_memory_fraction: expected one argument "

Why tell me no "gpu_memory_fraction",,but I really have set it !!!

Thank you

XuJianzhi avatar Jan 29 '21 03:01 XuJianzhi

I found the reason. It will work when I delete "-gpu" from the shell code. 囧 囧 囧 囧 囧

XuJianzhi avatar Feb 18 '21 10:02 XuJianzhi

把gpu删了还能挂gpu运行吗 cpu运行的太慢了

dogrepairditch avatar Jun 03 '22 08:06 dogrepairditch