Spaces:
Running
on
Zero
Running
on
Zero
Update model_utils.py
Browse files- model_utils.py +1 -1
model_utils.py
CHANGED
@@ -24,7 +24,7 @@ ARCHITECTURE_MAP = {
|
|
24 |
@spaces.GPU
|
25 |
def get_model_summary(model_name):
|
26 |
try:
|
27 |
-
config = AutoConfig.from_pretrained(model_name)
|
28 |
architecture = config.architectures[0]
|
29 |
quantization_config = getattr(config, 'quantization_config', None)
|
30 |
|
|
|
24 |
@spaces.GPU
|
25 |
def get_model_summary(model_name):
|
26 |
try:
|
27 |
+
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
28 |
architecture = config.architectures[0]
|
29 |
quantization_config = getattr(config, 'quantization_config', None)
|
30 |
|