PhantHive commited on
Commit
dcd91cb
1 Parent(s): a1ecb77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import gradio as gr
2
- from peft import PeftModel
3
- , PeftConfig
4
  from transformers import AutoModelForCausalLM, AutoTokenizer
5
  import torch
6
 
@@ -8,8 +7,7 @@ import torch
8
  config = PeftConfig.from_pretrained("phearion/bigbrain-v0.0.1")
9
 
10
  model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
11
- model = PeftModel.from_pretrained(model,
12
- "phearion/bigbrain-v0.0.1")
13
 
14
  # Load the tokenizer
15
  tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
 
1
  import gradio as gr
2
+ from peft import PeftModel, PeftConfig
 
3
  from transformers import AutoModelForCausalLM, AutoTokenizer
4
  import torch
5
 
 
7
  config = PeftConfig.from_pretrained("phearion/bigbrain-v0.0.1")
8
 
9
  model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
10
+ model = PeftModel.from_pretrained(model,"phearion/bigbrain-v0.0.1")
 
11
 
12
  # Load the tokenizer
13
  tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")