Skip to content

AttributeError: <config> object has no attribute 'pad_token_id' in transformers v5 convergence tests #1081

Description

@vaibhavjindal

Multiple convergence test failures because of uninitialized pad_token_id in multiple models in v5.

Example:

FAILED test/convergence/fp32/test_mini_models_with_logits.py::test_mini_model[mini_glm4v-32-0.0001-dtype15-1e-08-1e-05-0.005-1e-05-0.005-1e-05] - AttributeError: 'Glm4vTextConfig' object has no attribute 'pad_token_id'
FAILED test/convergence/fp32/test_mini_models_with_logits.py::test_mini_model[mini_exaone4-32-1e-05-dtype29-1e-08-1e-05-0.005-1e-05-0.005-1e-05] - AttributeError: 'Exaone4Config' object has no attribute 'pad_token_id'. Did you mean: 'bos_token_id

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions