Skip to content

Commit 0d4ddc7

Browse files
committed
Revert "experimental swa flag"
This reverts commit c4df151.
1 parent 91e8a20 commit 0d4ddc7

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

expose.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ struct load_model_inputs
7777
const int draft_quant_k = -1;
7878
const int draft_quant_v = -1;
7979
const bool check_slowness = false;
80-
const bool swa_support = false;
8180
const bool quiet = false;
8281
const int debugmode = 0;
8382
};

gpttype_adapter.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,11 +2070,7 @@ ModelLoadResult gpttype_load_model(const load_model_inputs inputs, FileFormat in
20702070
kcpp_data->use_smartcontext = inputs.use_smartcontext;
20712071
kcpp_data->use_contextshift = inputs.use_contextshift;
20722072
kcpp_data->use_fastforward = inputs.use_fastforward;
2073-
kcpp_data->swa_full = !inputs.swa_support;//(inputs.use_fastforward || inputs.use_contextshift)?true:false;
2074-
if(!kcpp_data->swa_full)
2075-
{
2076-
printf("\n!!!!!!!!!!!!!!!!!!!\nExperimental FLAG - SWA SUPPORT IS ENABLED!\n!!!!!!!!!!!!!!!!!!!\n");
2077-
}
2073+
kcpp_data->swa_full = (inputs.use_fastforward || inputs.use_contextshift)?true:false;
20782074
debugmode = inputs.debugmode;
20792075
draft_ctx = nullptr;
20802076
guidance_ctx = nullptr;

koboldcpp.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ class load_model_inputs(ctypes.Structure):
218218
("draft_quant_k", ctypes.c_int),
219219
("draft_quant_v", ctypes.c_int),
220220
("check_slowness", ctypes.c_bool),
221-
("swa_support", ctypes.c_bool),
222221
("quiet", ctypes.c_bool),
223222
("debugmode", ctypes.c_int)]
224223

@@ -1965,7 +1964,6 @@ def load_model(model_filename):
19651964
inputs.override_kv = args.overridekv.encode("UTF-8") if args.overridekv else "".encode("UTF-8")
19661965
inputs.override_tensors = args.overridetensors.encode("UTF-8") if args.overridetensors else "".encode("UTF-8")
19671966
inputs.check_slowness = (not args.highpriority and os.name == 'nt' and 'Intel' in platform.processor())
1968-
inputs.swa_support = args.experiment_swa
19691967
inputs = set_backend_props(inputs)
19701968
ret = handle.load_model(inputs)
19711969
return ret
@@ -9002,9 +9000,6 @@ def range_checker(arg: str):
90029000
admingroup.add_argument("--admindatadir", metavar=('[directory]'), help="Specify a directory to store user data in. By passing in this argument, users with the admin password will be able to save and load data from the server database.", default="")
90039001
admingroup.add_argument("--adminallowhf", help="Enables downloading of HuggingFace models through the Lite UI.", action='store_true')
90049002

9005-
experimentgroup = parser.add_argument_group('Experimental Commands, can change or break any time!')
9006-
experimentgroup.add_argument("--experiment_swa", help="Enables SWA mode. There are no safety checks.", action='store_true')
9007-
90089003
deprecatedgroup = parser.add_argument_group('Deprecated Commands, DO NOT USE!')
90099004
deprecatedgroup.add_argument("--hordeconfig", help=argparse.SUPPRESS, nargs='+')
90109005
deprecatedgroup.add_argument("--sdconfig", help=argparse.SUPPRESS, nargs='+')

0 commit comments

Comments
 (0)