as-shura

Results 20 comments of as-shura

Have a look at **ferretdb**. It is a layer on top of Postgres written in Go which is a dead replacement for MongoDB. ``` version: "3" services: ferretdb: image: ghcr.io/ferretdb/ferretdb...

You welcome! I was wondering if this code you ever used and if it has advantages over Python version? Why did you do this project in the first place if...

Changing CMakeLists.txt to this : ``` cmake_minimum_required(VERSION 3.10) project(MetalTranslate) include(ExternalProject) set(EXTERNAL_INSTALL_LOCATION ${CMAKE_BINARY_DIR}/external) ExternalProject_Add(Tokenizer GIT_REPOSITORY https://github.com/OpenNMT/Tokenizer CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION} ) include_directories(${EXTERNAL_INSTALL_LOCATION}/include) link_directories(${EXTERNAL_INSTALL_LOCATION}/lib) add_executable(metaltranslate src/main.cpp) set(TARGET_H src/MetalTranslate.h src/MetalTranslateConfig.h) target_sources(metaltranslate PRIVATE src/MetalTranslate.cpp) add_subdirectory(third_party/CTranslate2/) target_link_libraries(metaltranslate...

But compiling CTranslate2 is not working ``` Build started... 1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------ 1>Checking File Globs 2>------ Build started: Project: Tokenizer, Configuration: Debug x64 ------...

Changing CMakeLists.txt to: ``` cmake_minimum_required(VERSION 3.10) project(MetalTranslate) include(ExternalProject) set(EXTERNAL_INSTALL_LOCATION ${CMAKE_BINARY_DIR}/external) ExternalProject_Add(CTranslate2 GIT_REPOSITORY https://github.com/OpenNMT/CTranslate2 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION} -DWITH_MKL=OFF -DWITH_DNNL=ON ) ExternalProject_Add(Tokenizer GIT_REPOSITORY https://github.com/OpenNMT/Tokenizer CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION} ) include_directories(${EXTERNAL_INSTALL_LOCATION}/include) link_directories(${EXTERNAL_INSTALL_LOCATION}/lib) add_executable(metaltranslate src/main.cpp) set(TARGET_H src/MetalTranslate.h...

It seems that there is a problem after the build from the following packages: - cpu_features - sentencepiece - sentencepiece_train The 3 static libraries are not copied in the final...

Trying to run a debug version of the executable also brings an error. ![image](https://user-images.githubusercontent.com/123847861/215338166-3f523229-07c7-4210-9f40-b8800632f5a7.png) **Update for fix** Just right click select the **metaltranslate** and set as default project. ![image](https://user-images.githubusercontent.com/123847861/215339990-91f3008f-7931-4d13-a564-29d0e856198a.png)

I forgot to mention that I had to change the source code to this so that it compiles because the code is too old to just use is as is....

I finally was able to compile and run a debug version on Windows 11 and the final step was adding the following files manually to the **Debug** folder. There is...

Connected with https://github.com/argosopentech/MetalTranslate/pull/3 and I also made a pull request for vcpkg so that the dnnl library updated to 3.0 https://github.com/microsoft/vcpkg/pull/29267#pullrequestreview-1274657083 Let's leave this thread open just in case others...