run.sh 576 B

12345678910111213141516171819202122232425
  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. ## taide-local for llama2
  14. ## If embeddings has not been created
  15. # python embeddings.py
  16. ## If embedding was created
  17. python chromadb_generate.py
  18. python main.py