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

merge-weights.py: unsupported operand type(s) for |=: 'dict' and 'dict' #5

Open
paxvinci opened this issue Mar 31, 2023 · 0 comments
Open

Comments

@paxvinci
Copy link

When I run python3 merge-weights.py --input_dir /home//llama-cpu/ --model_size 7B I receive the following error:

Traceback (most recent call last):
  File "merge-weights.py", line 168, in <module>
    main()
  File "merge-weights.py", line 161, in main
    write_model(
  File "merge-weights.py", line 63, in write_model
    state_dict |= {
TypeError: unsupported operand type(s) for |=: 'dict' and 'dict'

In the README I understood that it is necessary to run example-chat-bfloat16.py

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

No branches or pull requests

1 participant