mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2024-11-25 16:22:50 +08:00
76e9a9ec02
* Add user interface to ch06 and ch07 * pep8 * fix url |
||
---|---|---|
.. | ||
01_main-chapter-code | ||
02_dataset-utilities | ||
03_model-evaluation | ||
04_preference-tuning-with-dpo | ||
05_dataset-generation | ||
06_user_interface | ||
README.md |
Chapter 7: Finetuning to Follow Instructions
Main Chapter Code
- 01_main-chapter-code contains the main chapter code and exercise solutions
Bonus Materials
- 02_dataset-utilities contains utility code that can be used for preparing an instruction dataset
- 03_model-evaluation contains utility code for evaluating instruction responses using a local Llama 3 model and the GPT-4 API
- 04_preference-tuning-with-dpo implements code for preference finetuning with Direct Preference Optimization (DPO)
- 05_dataset-generation contains code to generate and improve synthetic datasets for instruction finetuning
- 06_user_interface implements an interactive user interface to interact with the pretrained LLM