Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,9 @@ if not hasattr(config, 'layerdrop'):
|
|
13 |
if not hasattr(config, 'max_position_embeddings'):
|
14 |
config.max_position_embeddings = 2048
|
15 |
if not hasattr(config, 'num_attention_heads'):
|
16 |
-
config.num_attention_heads =
|
17 |
if not hasattr(config, 'num_hidden_layers'):
|
18 |
-
config.num_hidden_layers =
|
19 |
|
20 |
model = AutoModelForCausalLM.from_pretrained(model_name, config=config)
|
21 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
13 |
if not hasattr(config, 'max_position_embeddings'):
|
14 |
config.max_position_embeddings = 2048
|
15 |
if not hasattr(config, 'num_attention_heads'):
|
16 |
+
config.num_attention_heads = 12
|
17 |
if not hasattr(config, 'num_hidden_layers'):
|
18 |
+
config.num_hidden_layers = 12
|
19 |
|
20 |
model = AutoModelForCausalLM.from_pretrained(model_name, config=config)
|
21 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|