Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,8 @@ if not hasattr(config, 'num_hidden_layers'):
|
|
| 20 |
config.num_hidden_layers = 24
|
| 21 |
if not hasattr(config, 'hidden_size'):
|
| 22 |
config.hidden_size = 1024
|
| 23 |
-
|
|
|
|
| 24 |
|
| 25 |
model = AutoModelForCausalLM.from_pretrained(model_name, config=config)
|
| 26 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
|
| 20 |
config.num_hidden_layers = 24
|
| 21 |
if not hasattr(config, 'hidden_size'):
|
| 22 |
config.hidden_size = 1024
|
| 23 |
+
if not hasattr(config, 'num_codebooks'):
|
| 24 |
+
config.num_codebooks = 4
|
| 25 |
|
| 26 |
model = AutoModelForCausalLM.from_pretrained(model_name, config=config)
|
| 27 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|