Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,16 +62,18 @@ tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-7b-instruct", trust_rem
|
|
| 62 |
tokenizer.pad_token = tokenizer.eos_token
|
| 63 |
tokenizer.padding_side = 'left'
|
| 64 |
|
|
|
|
| 65 |
# Load the GaiaMiniMed model with the specified configuration
|
| 66 |
# Load the Peft model with a specific configuration
|
| 67 |
# Specify the configuration class for the model
|
| 68 |
-
model_config =
|
| 69 |
# Load the PEFT model with the specified configuration
|
| 70 |
peft_model = AutoModelForCausalLM.from_pretrained(base_model_id, config=model_config)
|
| 71 |
peft_model = PeftModel.from_pretrained("Tonic/GaiaMiniMed")
|
| 72 |
peft_model = PeftModel.from_pretrained(peft_model, "Tonic/GaiaMiniMed")
|
| 73 |
|
| 74 |
|
|
|
|
| 75 |
# Specify the configuration class for the model
|
| 76 |
#model_config = AutoConfig.from_pretrained(base_model_id)
|
| 77 |
|
|
|
|
| 62 |
tokenizer.pad_token = tokenizer.eos_token
|
| 63 |
tokenizer.padding_side = 'left'
|
| 64 |
|
| 65 |
+
|
| 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(base_model_id, config=model_config)
|
| 72 |
peft_model = PeftModel.from_pretrained("Tonic/GaiaMiniMed")
|
| 73 |
peft_model = PeftModel.from_pretrained(peft_model, "Tonic/GaiaMiniMed")
|
| 74 |
|
| 75 |
|
| 76 |
+
|
| 77 |
# Specify the configuration class for the model
|
| 78 |
#model_config = AutoConfig.from_pretrained(base_model_id)
|
| 79 |
|