@@ -127,7 +127,6 @@ def __init__(
127
127
128
128
self .params = llama_cpp .llama_context_default_params ()
129
129
self .params .n_ctx = n_ctx
130
- self .params .n_parts = n_parts
131
130
self .params .n_gpu_layers = n_gpu_layers
132
131
self .params .seed = seed
133
132
self .params .f16_kv = f16_kv
@@ -149,6 +148,10 @@ def __init__(
149
148
self .lora_base = lora_base
150
149
self .lora_path = lora_path
151
150
151
+ ### DEPRECATED ###
152
+ self .n_parts = n_parts
153
+ ### DEPRECATED ###
154
+
152
155
if not os .path .exists (model_path ):
153
156
raise ValueError (f"Model path does not exist: { model_path } " )
154
157
@@ -1225,7 +1228,6 @@ def __getstate__(self):
1225
1228
verbose = self .verbose ,
1226
1229
model_path = self .model_path ,
1227
1230
n_ctx = self .params .n_ctx ,
1228
- n_parts = self .params .n_parts ,
1229
1231
n_gpu_layers = self .params .n_gpu_layers ,
1230
1232
seed = self .params .seed ,
1231
1233
f16_kv = self .params .f16_kv ,
@@ -1239,6 +1241,9 @@ def __getstate__(self):
1239
1241
n_threads = self .n_threads ,
1240
1242
lora_base = self .lora_base ,
1241
1243
lora_path = self .lora_path ,
1244
+ ### DEPRECATED ###
1245
+ n_parts = self .n_parts ,
1246
+ ### DEPRECATED ###
1242
1247
)
1243
1248
1244
1249
def __setstate__ (self , state ):
0 commit comments