marian-nmt / marian

Fast Neural Machine Translation in C++

Home Page:https://marian-nmt.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected translator yaml config validation error in version 1.11.0

Vykstorm opened this issue · comments

Bug description

Marian server (1.11.0) raises a yaml configuration error due to line 57 of src/config/config_validator.cpp no matter which command line arguments you specify.
I know this because i debugged the source code by adding breaking points.
The error raised by marian server is the next: YAML::InvalidNode: This may result from using a map iterator as a sequence iterator, or vice-versa
Marian server can be deployed correctly by commenting that line.

How to reproduce

Run: ./build/marian-server -m <your model>.npz (version 1.11.0) where .npz is a valid model. You can also include any other command line argument.

Context

  • Marian version: v1.11.0 8afcd53 2022-04-25 11:48:17 +0200
  • Compiled with:
cmake \
    -DUSE_STATIC_LIBS=on \
    -DUSE_DOXYGEN=off \
    -DCOMPILE_CPU=off \
    -DCOMPILE_CUDA=on \
    -DCOMPILE_SERVER=on \
    -DUSE_CUDNN=off \
    -DCMAKE_BUILD_TYPE=Release \
    -DUSE_MKL=off \
    -DUSE_SENTENCEPIECE=off \
    -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.1 \
   ...
  • ./marian-server --build-info:
AVX2_FOUND=true
AVX_FOUND=true
BUILD_ARCH=native
CMAKE_BUILD_TYPE=Debug
CMAKE_INSTALL_PREFIX=/usr/local
COMPILE_AVX=ON
COMPILE_AVX2=ON
COMPILE_AVX512=ON
COMPILE_CPU=off
COMPILE_CUDA=on
COMPILE_EXAMPLES=OFF
COMPILE_KEPLER=OFF
COMPILE_MAXWELL=OFF
COMPILE_PASCAL=ON
COMPILE_SERVER=on
COMPILE_SSE2=ON
COMPILE_SSE3=ON
COMPILE_SSE4_1=ON
COMPILE_SSE4_2=ON
COMPILE_TESTS=OFF
COMPILE_TURING=ON
COMPILE_VOLTA=ON
CUDA_HOST_COMPILER=/usr/bin/cc
CUDA_SDK_ROOT_DIR=CUDA_SDK_ROOT_DIR-NOTFOUND
CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.1
CUDA_USE_STATIC_CUDA_RUNTIME=ON
CUDA_cublasLt_LIBRARY=/usr/lib/x86_64-linux-gnu/libcublasLt_static.a
CUDA_culibos_LIBRARY=/usr/local/cuda-10.1/lib64/libculibos.a
CUDA_rt_LIBRARY=/usr/lib/x86_64-linux-gnu/librt.a
DETERMINISTIC=OFF
GENERATE_MARIAN_INSTALL_TARGETS=OFF
SSE4_1_FOUND=true
SSE4_2_FOUND=true
USE_APPLE_ACCELERATE=OFF
USE_CCACHE=OFF
USE_CUDNN=off
USE_DOXYGEN=off
USE_FBGEMM=OFF
USE_MKL=off
USE_MPI=OFF
USE_NCCL=ON
USE_SENTENCEPIECE=off
USE_STATIC_LIBS=on