Bump llama-cpp-python
This commit is contained in:
parent
3e7c624f8e
commit
6170b5ba31
7 changed files with 21 additions and 2 deletions
|
|
@ -55,6 +55,12 @@ class LlamaCppModel:
|
|||
cache_capacity = int(shared.args.cache_capacity)
|
||||
|
||||
logger.info("Cache capacity is " + str(cache_capacity) + " bytes")
|
||||
|
||||
if shared.args.tensor_split is None or shared.args.tensor_split.strip() == '':
|
||||
tensor_split_list = None
|
||||
else:
|
||||
tensor_split_list = [float(x) for x in shared.args.tensor_split.strip().split(",")]
|
||||
|
||||
params = {
|
||||
'model_path': str(path),
|
||||
'n_ctx': shared.args.n_ctx,
|
||||
|
|
@ -66,6 +72,7 @@ class LlamaCppModel:
|
|||
'low_vram': shared.args.low_vram,
|
||||
'n_gpu_layers': shared.args.n_gpu_layers,
|
||||
'rope_freq_base': 10000 * shared.args.alpha_value ** (64 / 63.),
|
||||
'tensor_split': tensor_split_list,
|
||||
'rope_freq_scale': 1.0 / shared.args.compress_pos_emb,
|
||||
'n_gqa': shared.args.n_gqa or None,
|
||||
'rms_norm_eps': shared.args.rms_norm_eps or None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue