Spaces:
Runtime error
Runtime error
Update model_utils.py
Browse files- model_utils.py +2 -1
model_utils.py
CHANGED
|
@@ -21,7 +21,8 @@ ARCHITECTURE_MAP = {
|
|
| 21 |
"AutoModelForCausalLM": AutoModelForCausalLM
|
| 22 |
}
|
| 23 |
|
| 24 |
-
|
|
|
|
| 25 |
def get_model_summary(model_name):
|
| 26 |
try:
|
| 27 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
|
|
|
| 21 |
"AutoModelForCausalLM": AutoModelForCausalLM
|
| 22 |
}
|
| 23 |
|
| 24 |
+
|
| 25 |
+
@spaces.GPU(duration=120)
|
| 26 |
def get_model_summary(model_name):
|
| 27 |
try:
|
| 28 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|