Info

Testing and Issues

You can test this entry and submit issues during the testing period of the ML Competition contest.

Entries with serious issues will not be able to win the contest, but even minor issues might be important for overall results.

Voting

Comments

I've modified "CMakeLists.txt" to fix relative paths:

cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
set(CMAKE_INSTALL_RPATH "${CMAKE_CURRENT_SOURCE_DIR}/resources")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_LIBRARY_PATH "${CMAKE_CURRENT_SOURCE_DIR}/resources")
project(tglang VERSION 1.0.0 LANGUAGES C)
add_library(tglang SHARED tglang.c)
include_directories(resources/onnxruntime-linux-x64-1.16.1/include)
find_library(ONNX_LIBRARY onnxruntime PATHS "${CMAKE_CURRENT_SOURCE_DIR}/resources/onnxruntime-linux-x64-1.16.1/lib" NO_DEFAULT_PATH)
target_link_libraries(tglang PRIVATE "${ONNX_LIBRARY}")

Copy ONNX runtime from "resources/onnxruntime-linux-x64-1.16.1/lib" to resource folder.

resources
|-- model.onnx
|-- libonnxruntime.so
|-- libonnxruntime.so.1.16.1
Has this new CMakeLists.txt fixed the problem with our submission? Or is there anything else that I should do?
You have not added any comments yet...
by rating

Issues

Fair Leopard Nov 7, 2023 at 18:53
Unfortunately, this submission has been disqualified after our preliminary tests for exceeding the 500ms limit per text sample.
10
Tactful Dragon Nov 7, 2023 at 21:46
I'm pretty sure that it won't take more than 10ms, unless you are loading the whole library per each request! We have loaded the model in a way that it would load on library startup (static constructor), so all the calls for language detection would be so fast. How did you test the library? Have tested it in a way that it loads the whole library per each request!?
Fair Quokka Oct 26, 2023 at 23:25
This is an important message regarding your submission. The following issues have been discovered during preliminary testing:
error while loading shared libraries: libonnxruntime.so.1.16.1: cannot open shared object file: No such file or directory

You can provide further clarifications within the next 24 hours. 
1
Tactful Dragon Oct 27, 2023 at 14:57
I've modified "CMakeLists.txt" to fix relative paths:

cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
set(CMAKE_INSTALL_RPATH "${CMAKE_CURRENT_SOURCE_DIR}/resources")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_LIBRARY_PATH "${CMAKE_CURRENT_SOURCE_DIR}/resources")
project(tglang VERSION 1.0.0 LANGUAGES C)
add_library(tglang SHARED tglang.c)
include_directories(resources/onnxruntime-linux-x64-1.16.1/include)
find_library(ONNX_LIBRARY onnxruntime PATHS "${CMAKE_CURRENT_SOURCE_DIR}/resources/onnxruntime-linux-x64-1.16.1/lib" NO_DEFAULT_PATH)
target_link_libraries(tglang PRIVATE "${ONNX_LIBRARY}")

Copy ONNX runtime from "resources/onnxruntime-linux-x64-1.16.1/lib" to resource folder.

resources
|-- model.onnx
|-- libonnxruntime.so
|-- libonnxruntime.so.1.16.1
Nobody added any issues yet...