Update README.md

main
randaller 3 years ago committed by GitHub
parent c0a561e43c
commit 4dc59b282a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -209,7 +209,7 @@ python hf-inference-cuda-example.py
### "How to train LLaMA for Stable Diffusion prompting" example ### "How to train LLaMA for Stable Diffusion prompting" example
Modify hf-training-example.py, also feel free to use more or less lines of SD prompts: Modify hf-training-example.py, also feel free to use more or less lines of SD prompts examples in csv file:
``` ```
MODEL = 'decapoda-research/llama-7b-hf' MODEL = 'decapoda-research/llama-7b-hf'
@ -217,7 +217,7 @@ DATA_FILE_PATH = 'datasets/stable_diffusion_prompts.csv'
OUTPUT_DIR = './trained' OUTPUT_DIR = './trained'
``` ```
Then run the training, then after a long-long time, use something like this as prompt for LLaMA to generate SD prompts examples: Then run the training, then after a long-long time, use something like this as prompt for LLaMA to generate SD prompts:
``` ```
batch = tokenizer("A portrait of a beautiful girl, ", return_tensors="pt") batch = tokenizer("A portrait of a beautiful girl, ", return_tensors="pt")

Loading…
Cancel
Save