Download examples/model-conversion/scripts/utils/inspect-converted-model.sh from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/9f63da05cd17e144eb118af61a784286378961ba/examples/model-conversion/scripts/utils/inspect-converted-model.sh
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github@9f63da05cd17e144eb118af61a784286378961ba/examples/model-conversion/scripts/utils/inspect-converted-model.sh
-
curl -L -o inspect-converted-model.sh https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/9f63da05cd17e144eb118af61a784286378961ba/examples/model-conversion/scripts/utils/inspect-converted-model.sh
442 Bytes
| # First try command line argument, then environment variable, then file | |
| CONVERTED_MODEL="${1:-"$CONVERTED_MODEL"}" | |
| # Final check if we have a model path | |
| if [ -z "$CONVERTED_MODEL" ]; then | |
| echo "Error: Model path must be provided either as:" >&2 | |
| echo " 1. Command line argument" >&2 | |
| echo " 2. CONVERTED_MODEL environment variable" >&2 | |
| exit 1 | |
| fi | |
| ../../gguf-py/gguf/scripts/gguf_dump.py $CONVERTED_MODEL | |