run.sh 501 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # Environment
  3. conda create -n conda-env python=3.9
  4. conda activate conda-env
  5. pip install -r requirements.txt
  6. # Downloads
  7. wget https://huggingface.co/taide/Llama3-TAIDE-LX-8B-Chat-Alpha1-4bit/tree/main?show_file_info=taide-8b-a.3-q4_k_m.gguf
  8. curl https://ollama.ai/install.sh | sh
  9. # Build Taide model
  10. mkdir -p Modelfile
  11. mv taide-8b-a.3-q4_k_m.gguf Modelfile/
  12. ollama create taide-local-3 -f Modelfile
  13. python embeddings.py
  14. python RAG.py
  15. # Make the script executable:
  16. # chmod +x run.sh