Views
No views yet

git clone https://github.com/sperfu/EyeDoc
conda create --name EyeDoc python=3.9.0
conda activate EyeDoc
pip install -r requirements.txt
<!-- ```
python==3.9.0
torch==2.1.2
transformers==4.35.2
peft==0.7.1
accelerate==0.25.0
bitsandbytes==0.42.0
rouge_chinese
nltk
``` -->
## 💭 Preparation
EyeDoc is fine-tuned based on a large language model. Before training, please configure or download the base large language model.
| Parameter Scale | Large Language Model Name |
| ----------------| --------------------------------------------------------------|
| 1B | [TinyLlama](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0) |
| 3B | [bloom-zh-3b-chat](https://huggingface.co/ikala/bloom-zh-3b-chat) |
| 7B | [Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) |
## ⚒️ Training
### 1. QA Training
```python
python A_train.py
# For more model hyperparameter adjustments, see the main function1python A_train_doc_specific.py
2# For more model hyperparameter adjustments, see the main function1python A_evaluate.py
2# For more model hyperparameter adjustments, see the main functionpython A_generate.py # # Model response generation
python A_Flask_web.py # Model API interface call1pip install streamlit
2pip install -r requirements.txt # Ensure all dependencies listed in the requirements file are installed streamlit run st_chat_login.py