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

Break point in Transformers V4.48.0 and python 3.9 #35723

Closed
2 of 4 tasks
prajeet26 opened this issue Jan 16, 2025 · 2 comments · Fixed by #35725
Closed
2 of 4 tasks

Break point in Transformers V4.48.0 and python 3.9 #35723

prajeet26 opened this issue Jan 16, 2025 · 2 comments · Fixed by #35725
Labels

Comments

@prajeet26
Copy link

prajeet26 commented Jan 16, 2025

System Info

  • transformers version: 4.48.0
  • Platform: Linux-5.15.0-25-generic-x86_64-with-glibc2.35
  • Python version: 3.9.0
  • Huggingface_hub version: 0.27.1
  • Safetensors version: 0.5.2
  • Accelerate version: 1.2.1

Who can help?

@gante @Rocketknight1

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

Install Python 3.9
Install Transformers >= v4.48.0
install fastchat accelerate
I was trying to attach delta weights of Vicuna-13B to existing Llama 13B weights in local , for this the advised was below:

python3 -m fastchat.model.apply_delta \
    --base-model-path /path/to/llama-13b \
    --target-model-path /path/to/output/vicuna-13b \
    --delta-path lmsys/vicuna-13b-delta-v1.1

doing this raised the following error:

RuntimeError: Failed to import transformers.generation.streamers because of the following error (look up to see its traceback):
unsupported operand type(s) for |: 'type' and 'NoneType'

Expected behavior

Work in Python 3.9

@prajeet26 prajeet26 added the bug label Jan 16, 2025
@jianbohuang
Copy link

watch this

@gante
Copy link
Member

gante commented Jan 16, 2025

#35725 fixes it :)

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

Successfully merging a pull request may close this issue.

3 participants