MaxGab commited on
Commit
5b878df
·
verified ·
1 Parent(s): 1b53cc6

Update app.py

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