Sebastian Raschka ddbaf0d83e Use test mode arg in ch07 (#713) 4 tháng trước cách đây
..
01_main-chapter-code ddbaf0d83e Use test mode arg in ch07 (#713) 4 tháng trước cách đây
02_dataset-utilities 48bd72c890 fix typos, add codespell pre-commit hook (#264) 1 năm trước cách đây
03_model-evaluation a08d7aaa84 Uv workflow improvements (#531) 9 tháng trước cách đây
04_preference-tuning-with-dpo adaf4faaae Dpo vocab size clarification (#628) 7 tháng trước cách đây
05_dataset-generation a08d7aaa84 Uv workflow improvements (#531) 9 tháng trước cách đây
06_user_interface c21bfe4a23 Add PyPI package (#576) 8 tháng trước cách đây
README.md 3dfd7e5f06 Update pixi (#661) 5 tháng trước cách đây

README.md

Chapter 7: Finetuning to Follow Instructions

 

Main Chapter Code

 

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



Link to the video