Spaces:
Running
Running
fix: config used in preprocess
Browse files
seq2seq/run_seq2seq_flax.py
CHANGED
@@ -445,6 +445,9 @@ def main():
|
|
445 |
model.config.forced_bos_token_id = None
|
446 |
model.config.forced_eos_token_id = None
|
447 |
|
|
|
|
|
|
|
448 |
else:
|
449 |
base_model = FlaxAutoModelForSeq2SeqLM.from_pretrained(
|
450 |
model_args.model_name_or_path, seed=training_args.seed, dtype=getattr(jnp, model_args.dtype)
|
|
|
445 |
model.config.forced_bos_token_id = None
|
446 |
model.config.forced_eos_token_id = None
|
447 |
|
448 |
+
# used in the preprocessing function
|
449 |
+
config = model.config
|
450 |
+
|
451 |
else:
|
452 |
base_model = FlaxAutoModelForSeq2SeqLM.from_pretrained(
|
453 |
model_args.model_name_or_path, seed=training_args.seed, dtype=getattr(jnp, model_args.dtype)
|