Please refer to the code file for example of using LLMs in CHP.
Please leave any comments if you have any questions.
conda create -n autotrain python=3.10.16
conda activate autotrain
sh finetune_env.sh
cd finetune
# change configs in filled_sft.yml
sh run.sh
autotrain tools merge-llm-adapter --base-model-path /home/jupyter/20000360102458359xu/LingfeiQian/saved_models/Llama31_8B_Instruct --adapter-path /home/jupyter/20000360102458359xu/LingfeiQian/finetune/code/Llama318BInstructCONVFINQAtrain11e4/ --output-folder /home/jupyter/20000360102458359xu/LingfeiQian/merged_models/Llama31_8B_Instruct_merged
conda create -n inference python=3.11
conda activate inference
pip install vllm
pip install ipykernel
python -m ipykernel install --user --name inference --display-name "inference"
Then use this kernel to start inference.ipynb
Check inference.ipynb for the evaluation details.