TdAI / llama.cpp /examples /model-conversion /scripts /utils /inspect-converted-model.sh
tda45's picture
Upload folder using huggingface_hub (part 3)
1debbd5 verified
Raw
History Blame Contribute Delete
442 Bytes
#!/usr/bin/env bash
# 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