run.sh 560 B

1234567891011121314151617181920212223242526
  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. git clone http://git.choozmo.com:3000/sherry/Systex.git
  8. wget https://huggingface.co/taide/TAIDE-LX-7B-Chat-4bit/resolve/main/taide-7b-a.2-q4_k_m.gguf
  9. curl https://ollama.ai/install.sh | sh
  10. # Build Taide model
  11. mkdir -p Modelfile
  12. mv taide-7b-a.2-q4_k_m.gguf Modelfile/
  13. ollama create taide-local -f Modelfile
  14. python RAG_app_copy.py
  15. # Make the script executable:
  16. # chmod +x run.sh
  17. # /answer2?question=解釋碳排放法規