Skip to content

Commit

Permalink
回退whiper版本,并且使其依赖sd的ggml库,以后这两个将保持稳定,随sd更新
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsdamxssjxxdd committed Nov 5, 2024
1 parent b81e9ed commit 97e7e7d
Show file tree
Hide file tree
Showing 527 changed files with 10,945 additions and 139,347 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(version b4020) # 打包版本
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release) # 设置最终eva的输出目录

###################################### 编译选项 ######################################
option(BODY_PACK "pack eva" ON) # 是否打包
option(BODY_PACK "pack eva" OFF) # 是否打包
option(GGML_CUDA "ggml: use CUDA" ON) # 速度900%
option(GGML_VULKAN "ggml: use Vulkan" OFF) # 速度250%

Expand Down Expand Up @@ -105,7 +105,7 @@ add_definitions(-DGGML_MAX_N_THREADS=512) # llama原项目支持必须

add_subdirectory(llama.cpp/ggml) # 添加ggml库

# whisper.cpp-4e10afb
# whisper.cpp-34972db
add_subdirectory(whisper.cpp) # 添加whisper.dll
add_subdirectory(whisper.cpp/examples) # 添加whisper执行程序

Expand Down Expand Up @@ -253,7 +253,7 @@ elseif(UNIX)
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/sd" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/AppDir/usr/bin/sd"

COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/bin/libwhisper.so" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/lib/libwhisper.so"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/bin/libwhisper-ggml.so" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/lib/libwhisper-ggml.so"
# COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/bin/libwhisper-ggml.so" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/lib/libwhisper-ggml.so"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/whisper-cli" "${CMAKE_BINARY_DIR}/Release/AppDir/usr/bin/whisper-cli"

COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR}/ui/utils ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/ui/utils/eva.desktop ${CMAKE_BINARY_DIR}/Release/AppDir/usr/share/applications/eva.desktop
Expand Down
5 changes: 3 additions & 2 deletions README_cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ inline bool mmap::open(const char *path) {
- 修改stable-diffusion.cpp/ggml/src/ggml.c中的FILE * ggml_fopen(const char * fname, const char * mode)函数 -> 只要保留return fopen(fname, mode);其余删除
### whisper.cpp
- 删除examples中cmakelists.txt里的DefaultTargetOptions
- 删除自己的ggml文件夹
- 删除whisper.cpp中的whisper_init_from_file_with_params_no_state里的#ifdef _MSC_VER部分以支持中文
- 将examples中的common库更名为whisper-common
- examples/main的taget名称改为whisper-cli
- 其它步骤同stable-diffusion.cpp
- 让所以对ggml库的链接更名为sd-ggml
### libsndfile 读写wav文件
Expand Down
22 changes: 0 additions & 22 deletions llama.cpp/.devops/cloud-v-pipeline

This file was deleted.

33 changes: 0 additions & 33 deletions llama.cpp/.devops/full-cuda.Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions llama.cpp/.devops/full-musa.Dockerfile

This file was deleted.

50 changes: 0 additions & 50 deletions llama.cpp/.devops/full-rocm.Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions llama.cpp/.devops/full.Dockerfile

This file was deleted.

44 changes: 0 additions & 44 deletions llama.cpp/.devops/llama-cli-cann.Dockerfile

This file was deleted.

37 changes: 0 additions & 37 deletions llama.cpp/.devops/llama-cli-cuda.Dockerfile

This file was deleted.

28 changes: 0 additions & 28 deletions llama.cpp/.devops/llama-cli-intel.Dockerfile

This file was deleted.

30 changes: 0 additions & 30 deletions llama.cpp/.devops/llama-cli-musa.Dockerfile

This file was deleted.

45 changes: 0 additions & 45 deletions llama.cpp/.devops/llama-cli-rocm.Dockerfile

This file was deleted.

Loading

0 comments on commit 97e7e7d

Please sign in to comment.