Spaces:
Runtime error
Runtime error
Update space
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ MODEL_2_NAME = "sarvamai/sarvam-1" # The base model on Hugging Face Hub
|
|
80 |
def trim_adapter_weights(model_path):
|
81 |
"""
|
82 |
Trims the last token from the adapter's lm_head.lora_B.default.weight
|
83 |
-
if there is a mismatch with the base model.
|
84 |
"""
|
85 |
model_path = "./adapter_model.safetensors"
|
86 |
# if not os.path.exists(model_path):
|
|
|
80 |
def trim_adapter_weights(model_path):
|
81 |
"""
|
82 |
Trims the last token from the adapter's lm_head.lora_B.default.weight
|
83 |
+
if there is a mismatch with the base model.
|
84 |
"""
|
85 |
model_path = "./adapter_model.safetensors"
|
86 |
# if not os.path.exists(model_path):
|