Skip to content

Commit

Permalink
circleci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pglorio committed Sep 11, 2024
1 parent 1df30bb commit 3d2800b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/transformers/models/zamba/configuration_zamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(
rms_norm_eps=1e-5,
use_cache=True,
num_logits_to_keep=1,
pad_token_id=None,
pad_token_id=0,
bos_token_id=1,
eos_token_id=2,
max_position_embeddings=4096,
Expand Down
2 changes: 0 additions & 2 deletions tests/models/zamba/test_modeling_zamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,6 @@ def setUpClass(cls):
model_id, torch_dtype=torch.bfloat16, low_cpu_mem_usage=True, use_mamba_kernels=False
)
cls.tokenizer = AutoTokenizer.from_pretrained(model_id)
cls.tokenizer.add_special_tokens({"pad_token": "[PAD]"})
cls.model.resize_token_embeddings(len(cls.tokenizer))

@slow
def test_simple_generate(self):
Expand Down

0 comments on commit 3d2800b

Please sign in to comment.