Update find_implemented_args.py

This commit is contained in:
pudepiedj 2023-10-09 10:01:21 +01:00
parent 2e17fcfdba
commit 3e4de67fdd

View file

@ -1,4 +1,7 @@
# search the specified directory for files that include argv[i] == '-f' or '--file' arguments # search the specified directory for files that include command-line arguments
# these are almost always in the form params.argument; "logit_bias" is one exception
# have yet to investigate fully what "lora_adapter" in server.cpp does since it is not apparently
# accessible from the command-line arg/parameter sequence.
import os import os
import re import re
@ -86,6 +89,8 @@ def title_print(filename):
print(f"Filename: \033[32m{title}\033[0m") print(f"Filename: \033[32m{title}\033[0m")
print("#"*(10+len(title))) print("#"*(10+len(title)))
# list all the equivalences between declarations in common.h and common.cpp that defines the help
# these are used to substitute the searched params.attributes (keys) with help attributes (values)
def substitution_list(parameters): def substitution_list(parameters):
# store untrapped parameters as identicals in case we need to change them later # store untrapped parameters as identicals in case we need to change them later
sub_dict = {"n_threads": "threads", sub_dict = {"n_threads": "threads",