Spaces:
Sleeping
Sleeping
Grandediw
commited on
Commit
·
3dc690d
1
Parent(s):
cbda2b1
Updates
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def load_model():
|
|
12 |
|
13 |
# Load the base model and tokenizer
|
14 |
tokenizer = AutoTokenizer.from_pretrained(base_model_name, use_fast=False)
|
15 |
-
base_model = AutoModelForCausalLM.from_pretrained(base_model_name,
|
16 |
|
17 |
# Load the LoRA adapter weights
|
18 |
# Replace "Grandediw/lora_model_finetuned" with your actual LoRA model repo
|
|
|
12 |
|
13 |
# Load the base model and tokenizer
|
14 |
tokenizer = AutoTokenizer.from_pretrained(base_model_name, use_fast=False)
|
15 |
+
base_model = AutoModelForCausalLM.from_pretrained(base_model_name, trust_remote_code=True)
|
16 |
|
17 |
# Load the LoRA adapter weights
|
18 |
# Replace "Grandediw/lora_model_finetuned" with your actual LoRA model repo
|