dennyaw commited on
Commit
830c2e2
1 Parent(s): 02c6b08

update import peft

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  import torch
 
4
 
5
  model = AutoModelForCausalLM.from_pretrained("DAMO-NLP-MT/polylm-1.7b")
6
  model = PeftModel.from_pretrained(model, "fadliaulawi/polylm-1.7b-finetuned")
 
1
  import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  import torch
4
+ from peft import PeftModel
5
 
6
  model = AutoModelForCausalLM.from_pretrained("DAMO-NLP-MT/polylm-1.7b")
7
  model = PeftModel.from_pretrained(model, "fadliaulawi/polylm-1.7b-finetuned")