PhantHive commited on
Commit
1116122
1 Parent(s): 3050985

Update app.py

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