Skip to content

Commit 6a02c77

Browse files
authored
static tree-based eagle (#2)
* static tree-based eagle
1 parent 4dfbeed commit 6a02c77

6 files changed

Lines changed: 787 additions & 4 deletions

File tree

examples/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ else()
3030
add_subdirectory(simple)
3131
add_subdirectory(simple-chat)
3232
add_subdirectory(speculative)
33+
add_subdirectory(speculative-eagle)
3334
add_subdirectory(speculative-simple)
3435
add_subdirectory(speculative-simple-eagle)
3536
add_subdirectory(gen-docs)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set(TARGET llama-speculative-eagle)
2+
add_executable(${TARGET} speculative-eagle.cpp)
3+
install(TARGETS ${TARGET} RUNTIME)
4+
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
5+
target_compile_features(${TARGET} PRIVATE cxx_std_17)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# llama.cpp/examples/speculative-eagle
2+
3+
build/bin/llama-speculative-eagle -m /data/youngmin/models/vicuna.gguf -md /data/youngmin/models/EAGLE.gguf -f test.txt -c 0 --color --sampling-seq k --top-k 2 -fa --temp 0.0 --draft-max 10 --draft-min 1 --draft-p-split 0.1 --n-predict 200 -ngl 40 -ngld 20 -np 10 -s 1234
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: Please teach me how to make pancake. ASSISTANT:

0 commit comments

Comments
 (0)