Update modeling_baichuan.py

#27
by ybelkada - opened
No description provided.

This PR gives an example on how to update the modeling files to comply with the recent refactor of gradient checkpointing in transformers
Please see this issue: https://github.com/huggingface/transformers/issues/27596#issuecomment-1819506385 or this PR: https://github.com/huggingface/transformers/pull/27610 for more context

Ready to merge
This branch is ready to get merged automatically.
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment