dwb2023 commited on
Commit
f480be7
1 Parent(s): 2b69115

Update model_utils.py

Browse files
Files changed (1) hide show
  1. 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