Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Tensor::run &Layer::getFunc #130

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ Makefile
models/*
/.devcontainer/
/.vscode/
examples/demo_deepseek.cpp
workflow.py
src/backends/qnn/qualcomm_ai_engine_direct_220/*
src/backends/qnn/HexagonSDK/*
src/backends/qnn/HexagonSDK/*
examples/demo_deepseek.cpp
examples/demo_xllm.cpp
src/models/xllm/*
17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,23 @@ endif ()
# target_link_libraries(demo_deepseek PUBLIC MLLM_CPU)
# endif ()


# add_executable(demo_xllm ${PROJECT_SOURCE_DIR}/examples/demo_xllm.cpp ${DIR_SRC_CPU} ${DIR_SRC_MEM_MANAGER} ${DIR_SRC_EXP} ${DIR_SRC}
# src/tokenizers/Tokenizer.cpp
# src/tokenizers/BPE/Bpe.cpp
# src/tokenizers/Unicode.cpp
# src/tokenizers/UnicodeData.cpp
# src/processor/PreProcess.cpp
# )
# if (MLLM_OPENMP_STATIC)
# target_compile_options(demo_xllm PRIVATE -fopenmp)
# target_link_libraries(demo_xllm PUBLIC MLLM_CPU -fopenmp -static-openmp)
# else ()
# target_link_libraries(demo_xllm PUBLIC MLLM_CPU)
# endif ()



endif() # end of cpu executables

# QNN demo
Expand Down
2 changes: 2 additions & 0 deletions include/OpDefined.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ enum OpType {
DEQUANTIZE,
MERGEOUTPUT,
SPLITINPUT,
IROPE,
OP_NUM
};

Expand Down Expand Up @@ -115,6 +116,7 @@ static const vector<string> OpNames = {
"Dequantize",
"MergeOutput",
"SplitInput",
"IRoPE",
"OP_NUM"};

enum TensorFuncType {
Expand Down
Loading
Loading