update llama.cpp
This commit is contained in:
parent
f0b365a478
commit
c5bcf32823
19 changed files with 623 additions and 298 deletions
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//go:build darwin
|
||||
|
||||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//go:build darwin
|
||||
|
||||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//go:build darwin
|
||||
|
||||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//go:build mpi
|
||||
|
||||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//go:build mpi
|
||||
|
||||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//go:build opencl
|
||||
|
||||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//go:build opencl
|
||||
|
||||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
|
@ -128,11 +128,6 @@ func New(model string, opts api.Options) (*LLM, error) {
|
|||
|
||||
C.llama_backend_init(C.bool(llm.UseNUMA))
|
||||
|
||||
// TODO: GQA == 8 suggests 70B model which doesn't support metal
|
||||
if llm.NumGQA == 8 {
|
||||
llm.NumGPU = 0
|
||||
}
|
||||
|
||||
params := C.llama_context_default_params()
|
||||
params.seed = C.uint(llm.Seed)
|
||||
params.n_ctx = C.int(llm.NumCtx)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* llama.cpp - git c574bddb368424b5996cbee2ec45ec050967d404
|
||||
* llama.cpp - git 8183159cf3def112f6d1fe94815fce70e1bffa12
|
||||
*
|
||||
* MIT License
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue