Skip to content

Commit f417a49

Browse files
authored
Update README.md
Signed-off-by: wenlao peng <[email protected]>
1 parent d91444a commit f417a49

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,21 @@ Open and run this code in the file "generate.py" where it exists. Please always
4040

4141
Locate the "alpaca_data.json" file. Please use the "instruction" and "input" inside to test the output.
4242

43+
### Tips on the original Guide to Alpaca -lora.
4344

45+
Their teaching code format needs to be fine-tuned before it can be used. Here are some examples:
46+
This is their code:
4447

48+
```
49+
python generate.py \
50+
--load_8bit \
51+
--base_model 'decapoda-research/llama-7b-hf' \
52+
--lora_weights 'tloen/alpaca-lora-7b'
53+
```
54+
Should be:
55+
56+
```
57+
python generate.py --load_8bit --base_model 'decapoda-research/llama-7b-hf' --lora_weights 'tloen/alpaca-lora-7b'
58+
```
59+
60+
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.

0 commit comments

Comments
 (0)