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

Fix: Replace all assertions in Python code with if statements #167

Merged
merged 2 commits into from
Mar 2, 2024

Conversation

whitealpa
Copy link
Contributor

@whitealpa whitealpa commented Feb 26, 2024

Hi all,

Fixed #165

Please help review the pull request and suggest edits as needed.

Notes:

  1. I didn’t edit the test files.
  2. I'm not sure about the assertions that don't have any string return, so I didn't edit them.
    rwkv_word_tokenizer.py: line 78-79, 99
    convert_pytorch_to_ggml.py: line 24
    merge_lora_into_ggml.py: line 23

edit: I tried to use if not to preserve the original logical operation, not sure if this is preferred?

whitealpa and others added 2 commits February 26, 2024 14:12
Signed-off-by: whitealpa <ben@air.local>
Signed-off-by: whitealpa <132802748+whitealpa@users.noreply.github.com>
Signed-off-by: whitealpa <132802748+whitealpa@users.noreply.github.com>
@whitealpa
Copy link
Contributor Author

I've made typos with the word 'raise' in 2 files and they've already been fixed.

@saharNooby saharNooby merged commit d8f13ff into RWKV:master Mar 2, 2024
1 check passed
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 this pull request may close these issues.

Replace all assertions in Python code with if statements
2 participants