Ashishkr commited on
Commit
897e485
·
1 Parent(s): ce69aab

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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-context-resolution")
25
  model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf")
26
- model = PeftModel.from_pretrained(model, "Ashishkr/llama2-qrecc-context-resolution").to(device)
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(