nacrith (671B)
1 #!/usr/bin/env bash 2 3 if [ ! -f smollm2-135m-f32.gguf ]; then 4 echo "Error: File smollm2-135m-f32.gguf does not exist." >&2 5 exit 1 6 fi 7 8 # Clone the repository 9 git clone https://github.com/st4ck/Nacrith-GPU.git 10 11 cp smollm2-135m-f32.gguf Nacrith-GPU 12 13 cd Nacrith-GPU 14 15 # Create and activate virtual environment 16 python3 -m venv venv 17 source venv/bin/activate 18 19 # Install dependencies 20 pip install torch 21 pip install transformers accelerate numpy 22 23 CMAKE_ARGS="-DGGML_CUDA=on" 24 25 if [ "$MODAL" = "1" ]; then 26 # Build for H100 27 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_CUDA_ARCHITECTURES=90" 28 fi 29 30 CMAKE_ARGS="$CMAKE_ARGS" pip install llama-cpp-python --force-reinstall --no-cache-dir