From 5f1365c3069b48c070cb53b69ae628c29479f532 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 26 Dec 2023 02:45:49 +0100 Subject: [PATCH] upgraded core --- configs/config.yaml | 9 +++++++-- lollms/configs/config.yaml | 4 +++- lollms/image_gen_modules/lollms_sd.py | 2 ++ lollms/paths.py | 4 ++++ lollms/personality.py | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/configs/config.yaml b/configs/config.yaml index 2454f72..279a2f0 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -1,5 +1,5 @@ # =================== Lord Of Large Language Models Configuration file =========================== -version: 30 +version: 32 binding_name: null model_name: null @@ -14,7 +14,7 @@ discussion_prompt_separator: "!@>" seed: -1 n_predict: 1024 ctx_size: 4084 -min_n_predict: 256 +min_n_predict: 512 temperature: 0.9 top_k: 50 top_p: 0.95 @@ -50,9 +50,12 @@ enable_gpu: true auto_show_browser: true # Audio +media_on: false audio_in_language: 'en-US' audio_out_voice: null auto_speak: false +auto_read: false +reading_voice: null audio_pitch: 1 audio_auto_send_input: true audio_silenceTimer: 5000 @@ -71,3 +74,5 @@ data_vectorization_chunk_size: 512 # chunk size data_vectorization_overlap_size: 128 # overlap between chunks size data_vectorization_nb_chunks: 2 # number of chunks to use data_vectorization_build_keys_words: false # If true, when querrying the database, we use keywords generated from the user prompt instead of the prompt itself. +data_vectorization_force_first_chunk: false # If true, the first chunk of the document will systematically be used +data_vectorization_make_persistance: false # If true, the data will be persistant webween runs diff --git a/lollms/configs/config.yaml b/lollms/configs/config.yaml index 62ac790..279a2f0 100644 --- a/lollms/configs/config.yaml +++ b/lollms/configs/config.yaml @@ -1,5 +1,5 @@ # =================== Lord Of Large Language Models Configuration file =========================== -version: 31 +version: 32 binding_name: null model_name: null @@ -50,10 +50,12 @@ enable_gpu: true auto_show_browser: true # Audio +media_on: false audio_in_language: 'en-US' audio_out_voice: null auto_speak: false auto_read: false +reading_voice: null audio_pitch: 1 audio_auto_send_input: true audio_silenceTimer: 5000 diff --git a/lollms/image_gen_modules/lollms_sd.py b/lollms/image_gen_modules/lollms_sd.py index 7faa4e1..18a2db4 100644 --- a/lollms/image_gen_modules/lollms_sd.py +++ b/lollms/image_gen_modules/lollms_sd.py @@ -45,6 +45,8 @@ def install_sd(lollms_paths:LollmsPaths): shared_folder = root_dir/"shared" sd_folder = shared_folder / "auto_sd" subprocess.run(["git", "clone", "https://github.com/ParisNeo/stable-diffusion-webui.git", str(sd_folder)]) + subprocess.run(["git", "clone", "https://github.com/ParisNeo/SD-CN-Animation.git", str(sd_folder/"extensions/SD-CN-Animation")]) + ASCIIColors.green("Stable diffusion installed successfully") diff --git a/lollms/paths.py b/lollms/paths.py index 9494b3c..bdd4f6b 100644 --- a/lollms/paths.py +++ b/lollms/paths.py @@ -53,6 +53,7 @@ class LollmsPaths: self.gptqlora_path = self.personal_trainers_path / "gptqlora" self.custom_personalities_path = self.personal_path / "custom_personalities" + self.custom_voices_path = self.personal_path / "custom_voices" self.binding_models_paths = [] @@ -94,6 +95,8 @@ class LollmsPaths: ASCIIColors.yellow(f"{self.personal_data_path}") ASCIIColors.red("custom_personalities_path:",end="") ASCIIColors.yellow(f"{self.custom_personalities_path}") + ASCIIColors.red("custom_voices_path:",end="") + ASCIIColors.yellow(f"{self.custom_voices_path}") ASCIIColors.green("-------------------------------------------------------------") @@ -145,6 +148,7 @@ class LollmsPaths: self.personal_user_infos_path.mkdir(parents=True, exist_ok=True) self.personal_trainers_path.mkdir(parents=True, exist_ok=True) self.custom_personalities_path.mkdir(parents=True, exist_ok=True) + self.custom_voices_path.mkdir(parents=True, exist_ok=True) if not self.bindings_zoo_path.exists(): diff --git a/lollms/personality.py b/lollms/personality.py index f183c85..3c4edde 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -1702,7 +1702,7 @@ class APScript(StateMachine): def add_file(self, path, callback=None): if callback is not None: callback("File added successfully",MSG_TYPE.MSG_TYPE_INFO) - self.personality.add_file(path) + self.personality.add_file(path,callback=callback) return True def remove_file(self, path):