Tutorials𝞡
We list here a view small examples, that are easy to run locally on a CPU,
to show how to use posteriors
:
Additionally, we provide more in depth examples in the examples directory on GitHub, many of which use larger models that require a GPU to run:
continual_lora
: Usesposteriors.laplace.diag_fisher
to avoid catastrophic forgetting in fine-tuning Llama-2-7b on a series of books from the pg19 dataset.
yelp
: Compares a host ofposteriors
methods (highlighting the easy exchangeability) on a sentiment analysis task adapted from the Hugging Face tutorial.
continual_regression
: Variational continual learning notebook for a simple regression task that's easy to visualize.