Spaces:
Running
on
Zero
Running
on
Zero
frankaging
commited on
Commit
·
fe68a7a
1
Parent(s):
422e042
adjust 1k checkpoint
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ if torch.cuda.is_available():
|
|
46 |
model = AutoModelForCausalLM.from_pretrained(
|
47 |
model_id, device_map="cuda", torch_dtype=torch.bfloat16
|
48 |
)
|
49 |
-
reft_model = ReftModel.load("pyvene/
|
50 |
reft_model.set_device("cuda")
|
51 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
52 |
tokenizer.use_default_system_prompt = True
|
|
|
46 |
model = AutoModelForCausalLM.from_pretrained(
|
47 |
model_id, device_map="cuda", torch_dtype=torch.bfloat16
|
48 |
)
|
49 |
+
reft_model = ReftModel.load("pyvene/reft_chat7b_1k", model, from_huggingface_hub=True)
|
50 |
reft_model.set_device("cuda")
|
51 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
52 |
tokenizer.use_default_system_prompt = True
|