Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use ValueError instead of
assert
on argument checks (#164)
* fix: use ValueError instead of `assert` on argument checks Program should always fail if arch_version or program format does not satisfy the preconditions in the program. However, the file merge_lora_into_ggml.py uses assert statements, sometimes being ignored under high optimization level. We uses if-statements here, where those preconditions would always execute, whether the environment enable assert stateuements or not. Signed-off-by: Pan Chen <chenpan321@qq.com> * Update merge_lora_into_ggml.py --------- Signed-off-by: Pan Chen <chenpan321@qq.com> Co-authored-by: Alex <saharNooby@users.noreply.github.com>
- Loading branch information