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

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