Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local variable 'tokens' referenced before assignment #3568

Closed
randy-tsukemen opened this issue Aug 31, 2023 · 1 comment · Fixed by #3569
Closed

local variable 'tokens' referenced before assignment #3568

randy-tsukemen opened this issue Aug 31, 2023 · 1 comment · Fixed by #3569
Assignees

Comments

@randy-tsukemen
Copy link

Describe the bug
LLM finetuning tutorial notebook failed.

To Reproduce
Steps to reproduce the behavior:

  1. Open ludwig_llama2_7b_finetuning_4bit.ipynb
  2. Replace the huggingface tokens
  3. Run all notebook cell
  4. See error RuntimeError: Caught exception during model preprocessing: local variable 'tokens' referenced before assignment

Expected behavior
Notebook shouldn't fail.

Screenshots
If applicable, add screenshots to help explain your problem.
圖片
Environment (please complete the following information):

  • OS: google colab
@arnavgarg1 arnavgarg1 self-assigned this Aug 31, 2023
@arnavgarg1
Copy link
Contributor

Thanks for flagging this issue @randy-tsukemen. Could you give this branch a try? #3569
It downgrades the transformers package version to 4.31.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants