]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llava : remove prog parameter from ArgumentParser (#5457)
authorDaniel Bevenius <redacted>
Mon, 12 Feb 2024 08:38:44 +0000 (09:38 +0100)
committerGitHub <redacted>
Mon, 12 Feb 2024 08:38:44 +0000 (10:38 +0200)
commit4a46d2b7923be83d6019251671ee63aa1fa0d6bc
treee5b9b1a9f7bf3fef826674f9808d0936b00ebb95
parent3b169441dfe8e420f88d1592708cc2a871daadb9
llava : remove prog parameter from ArgumentParser (#5457)

* llava: remove prog parameter from ArgumentParser

This commit removes the `prog` parameter from `ArgumentParser`
so that it uses the default value which is the name of the script.

The motivation for this change is that currently the usage output looks
like this:
```console
$ python examples/llava/convert-image-encoder-to-gguf.py --help
usage: convert_hf_to_gguf.py [-h] ...
```
And with this change it will look like this:
```console
$ python examples/llava/convert-image-encoder-to-gguf.py --help
usage: convert-image-encoder-to-gguf.py [-h] ...
```

Signed-off-by: Daniel Bevenius <redacted>
* ci: add W503 to flake8 ignore list

This commit adds W503 to the ignore list for flake8. This is done to
avoid the following error:
W503 line break before binary operator

Signed-off-by: Daniel Bevenius <redacted>
---------

Signed-off-by: Daniel Bevenius <redacted>
.github/workflows/python-lint.yml
examples/llava/convert-image-encoder-to-gguf.py