SungJoo commited on
Commit
ba27b60
1 Parent(s): 25c6173

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -49,14 +49,14 @@ Use the code below to get started with the model:
49
 
50
  ```python
51
  import torch
52
- from transformers import AutoTokenizer, AutoPeftModelForCausalLM
53
 
54
  DEV = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
55
 
56
- adapter_path = "SungJoo/llama2-7b-sft-detox-DPO"
57
 
58
  # Load model
59
- model = AutoPeftModelForCausalLM.from_pretrained(
60
  adapter_path,
61
  torch_dtype=torch.bfloat16
62
  ).to(DEV)
 
49
 
50
  ```python
51
  import torch
52
+ from transformers import AutoTokenizer, AutoModelForCausalLM
53
 
54
  DEV = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
55
 
56
+ adapter_path = "SungJoo/llama2-7b-sft-dpo-detox"
57
 
58
  # Load model
59
+ model = AutoModelForCausalLM.from_pretrained(
60
  adapter_path,
61
  torch_dtype=torch.bfloat16
62
  ).to(DEV)