1234567891011121314151617181920212223242526 |
- #!/bin/bash
- # Environment
- conda create -n conda-env python=3.9
- conda activate conda-env
- pip install -r requirements.txt
- # Downloads
- git clone http://git.choozmo.com:3000/sherry/Systex.git
- wget https://huggingface.co/taide/TAIDE-LX-7B-Chat-4bit/resolve/main/taide-7b-a.2-q4_k_m.gguf
- curl https://ollama.ai/install.sh | sh
- # Build Taide model
- mkdir -p Modelfile
- mv taide-7b-a.2-q4_k_m.gguf Modelfile/
- ollama create taide-local -f Modelfile
- python RAG_app_copy.py
- # Make the script executable:
- # chmod +x run.sh
- # /answer2?question=解釋碳排放法規
|