Update README.md
Browse files
README.md
CHANGED
@@ -21,9 +21,9 @@ import torch
|
|
21 |
import re
|
22 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
23 |
|
24 |
-
config = PeftConfig.from_pretrained("Ashishkr/llama2-qrecc
|
25 |
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf")
|
26 |
-
model = PeftModel.from_pretrained(model, "Ashishkr/llama2-qrecc
|
27 |
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-7b-hf")
|
28 |
|
29 |
def response_generate(
|
|
|
21 |
import re
|
22 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
23 |
|
24 |
+
config = PeftConfig.from_pretrained("Ashishkr/llama2-qrecc")
|
25 |
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf")
|
26 |
+
model = PeftModel.from_pretrained(model, "Ashishkr/llama2-qrecc").to(device)
|
27 |
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-7b-hf")
|
28 |
|
29 |
def response_generate(
|