#!/bin/bash

# Default values
llm_dir="$(dirname "$(python -c "import bigdl.cpp;print(bigdl.cpp.__file__)")")"
lib_dir="$llm_dir/libs/llama_cpp"

command1="find ${lib_dir} -type f ! \( -name '*ollama*' -o -name '*libollama*' \) -exec ln -sf {} . \;"
eval "$command1"
command2="cp ${llm_dir}/convert*.py ."
eval "$command2"
command3="cp -r ${llm_dir}/gguf-py ."
eval "$command3"