From c942780f5ab2520962f4aea73bc25906559868cd Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 15 May 2023 16:44:55 -0400 Subject: [PATCH] [DATALAD RUNCMD] run codespell throughout === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- CONTRIBUTING.md | 2 +- gpt4all-bindings/python/gpt4all/gpt4all.py | 2 +- gpt4all-bindings/python/tests/test_pyllmodel.py | 2 +- gpt4all-training/train.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f6c298bf..d4bf0ddf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ Please note we have a code of conduct, please follow it in all your interactions 1. Ensure any install or build dependencies are removed before the end of the layer when doing a build. 2. Make sure Pull Request is tagged with appropriate project identifiers and has a clear description of contribution. -3. Any new or updated code must have documentation and preferrably tests included with Pull Request. +3. Any new or updated code must have documentation and preferably tests included with Pull Request. 4. Significant feature or code changes should provide a short video or screenshot demo. 4. Fill out relevant parts of Pull Request template. 4. Pull requests must have sign-off from one other developer. Reach out to a repository owner once your diff --git a/gpt4all-bindings/python/gpt4all/gpt4all.py b/gpt4all-bindings/python/gpt4all/gpt4all.py index f3811e40..b602f1b0 100644 --- a/gpt4all-bindings/python/gpt4all/gpt4all.py +++ b/gpt4all-bindings/python/gpt4all/gpt4all.py @@ -181,7 +181,7 @@ class GPT4All(): with value of "system", "assistant", or "user" and a "content" key with a string value. Messages are organized such that "system" messages are at top of prompt, and "user" and "assistant" messages are displayed in order. Assistant messages get formatted as - "Reponse: {content}". + "Response: {content}". default_prompt_header: If True (default), add default prompt header after any system role messages and before user/assistant role messages. default_prompt_footer: If True (default), add default footer at end of prompt. diff --git a/gpt4all-bindings/python/tests/test_pyllmodel.py b/gpt4all-bindings/python/tests/test_pyllmodel.py index e446b0b5..c594e36a 100644 --- a/gpt4all-bindings/python/tests/test_pyllmodel.py +++ b/gpt4all-bindings/python/tests/test_pyllmodel.py @@ -4,7 +4,7 @@ import sys from gpt4all import pyllmodel # TODO: Integration test for loadmodel and prompt. -# # Right now, too slow b/c it requries file download. +# # Right now, too slow b/c it requires file download. def test_create_gptj(): gptj = pyllmodel.GPTJModel() diff --git a/gpt4all-training/train.py b/gpt4all-training/train.py index 8605af11..69ebce28 100644 --- a/gpt4all-training/train.py +++ b/gpt4all-training/train.py @@ -91,7 +91,7 @@ def train(accelerator, config): total_num_steps += int(total_num_steps * lr_ratio) + config["warmup_steps"] accelerator.print(f"Total training steps: {total_num_steps}") - # Creates Dummy Scheduler if `scheduler` was spcified in the config file else creates `args.lr_scheduler_type` Scheduler + # Creates Dummy Scheduler if `scheduler` was specified in the config file else creates `args.lr_scheduler_type` Scheduler if ( accelerator.state.deepspeed_plugin is None or "scheduler" not in accelerator.state.deepspeed_plugin.deepspeed_config