Skip to content

Commit 392a438

Browse files
authored
Merge pull request #57 from arjunguha/main
Removed unused line
2 parents e25ab3a + 80a39c2 commit 392a438

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

finetune/merge_peft_adapters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def main():
2525
model = PeftModel.from_pretrained(base_model, args.peft_model_path)
2626
model = model.merge_and_unload()
2727

28-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
2928
tokenizer = AutoTokenizer.from_pretrained(args.base_model_name_or_path)
3029

3130
if args.push_to_hub:
@@ -38,4 +37,4 @@ def main():
3837
print(f"Model saved to {args.base_model_name_or_path}-merged")
3938

4039
if __name__ == "__main__" :
41-
main()
40+
main()

0 commit comments

Comments
 (0)