Spaces:
Sleeping
Sleeping
update import peft
Browse files
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")
|