Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
8 |
|
9 |
# Load models and tokenizer efficiently
|
10 |
model_id = "phearion/bigbrain-v0.0.1"
|
11 |
-
config = PeftConfig.from_pretrained(model_id)
|
12 |
tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
|
13 |
model = PeftModel.from_pretrained(model_id)
|
14 |
model.to(device)
|
|
|
8 |
|
9 |
# Load models and tokenizer efficiently
|
10 |
model_id = "phearion/bigbrain-v0.0.1"
|
11 |
+
config = PeftConfig.from_pretrained(model_id=model_id)
|
12 |
tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
|
13 |
model = PeftModel.from_pretrained(model_id)
|
14 |
model.to(device)
|