Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,9 +66,9 @@ tokenizer.padding_side = 'left'
|
|
| 66 |
# Load the GaiaMiniMed model with the specified configuration
|
| 67 |
# Load the Peft model with a specific configuration
|
| 68 |
# Specify the configuration class for the model
|
| 69 |
-
model_config = PeftConfig.from_pretrained("
|
| 70 |
# Load the PEFT model with the specified configuration
|
| 71 |
-
peft_model = AutoModelForCausalLM.from_pretrained(
|
| 72 |
peft_model = PeftModel.from_pretrained("Tonic/GaiaMiniMed")
|
| 73 |
peft_model = PeftModel.from_pretrained(peft_model, "Tonic/GaiaMiniMed")
|
| 74 |
|
|
|
|
| 66 |
# Load the GaiaMiniMed model with the specified configuration
|
| 67 |
# Load the Peft model with a specific configuration
|
| 68 |
# Specify the configuration class for the model
|
| 69 |
+
model_config = PeftConfig.from_pretrained("Tonic/GaiaMiniMed")
|
| 70 |
# Load the PEFT model with the specified configuration
|
| 71 |
+
peft_model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-7b-instruct", config=model_config)
|
| 72 |
peft_model = PeftModel.from_pretrained("Tonic/GaiaMiniMed")
|
| 73 |
peft_model = PeftModel.from_pretrained(peft_model, "Tonic/GaiaMiniMed")
|
| 74 |
|