Generative AI · Advanced level

Advanced level · Module 5 of 12 · 13 guided hours

LoRA and Model Customization

Customising models with LoRA in depth: rank, alpha and target modules, data and hyperparameter effects, merging and serving adapters, and the licensing and risks of customised models.

Learning objectives

  • Tune LoRA hyperparameters with evidence
  • Merge, serve and switch adapters
  • Manage licensing and risks of customised models

Topics

  • rank and alpha
  • target modules
  • data size and quality effects
  • merging adapters
  • serving multiple adapters
  • licences and responsible release

Lessons

  1. Lesson 1 LoRA Rank, Alpha and Target Modules

    Learners vary LoRA rank, alpha and target modules and measure effects on quality, trainable parameters and training time.

    low-rank matricesrank ralpha scalingtarget_moduleslora_dropout

  2. Lesson 2 Merging, Serving and Switching Adapters

    Learners merge an adapter into the base model for simple deployment, or keep adapters separate to switch tasks, and serve the result.

    merge_and_unloadseparate adaptersadapter switchingserving optionsrollback

  3. Lesson 3 Licensing, Risks and Responsible Release

    Learners check base-model and data licences, test customised models for new risks and decide whether and how to share them, with a model card.

    base model licencedata licencenew failure modesmodel cardrelease decision

Practical activity

Customise a model with tuned LoRA hyperparameters, deploy it (merged or with adapters), and write a model card with licence checks and a release decision.

Expected outcomes

  • In-depth LoRA customisation
  • Responsible management of customised models

Assessment

Experiment and deployment (60%) and model card with release decision (40%).

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.