From f417a492397ec2a1d43e859d04bd9926c719d89c Mon Sep 17 00:00:00 2001 From: wenlao peng <62042821+s3690691@users.noreply.github.com> Date: Mon, 15 May 2023 19:28:14 +1000 Subject: [PATCH] Update README.md Signed-off-by: wenlao peng <62042821+s3690691@users.noreply.github.com> --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 0741d2f..b1e8baf 100644 --- a/README.md +++ b/README.md @@ -40,5 +40,21 @@ Open and run this code in the file "generate.py" where it exists. Please always Locate the "alpaca_data.json" file. Please use the "instruction" and "input" inside to test the output. +### Tips on the original Guide to Alpaca -lora. +Their teaching code format needs to be fine-tuned before it can be used. Here are some examples: +This is their code: +``` +python generate.py \ + --load_8bit \ + --base_model 'decapoda-research/llama-7b-hf' \ + --lora_weights 'tloen/alpaca-lora-7b' +``` +Should be: + +``` +python generate.py --load_8bit --base_model 'decapoda-research/llama-7b-hf' --lora_weights 'tloen/alpaca-lora-7b' +``` + +Running commands does not directly modify the contents of the original Python file. Running a command simply executes the Python script and influences the behavior and output of the script based on the configuration of the command line arguments.