Skip to content

Glossary: Fine-tuning LLMs

Post-processing cleanup

Also written: cleanup, clean

Plain code that fixes what code can check in a model's output, such as snapping product names to a known list and zero-padding dates. For Sam's order extractor it lifted the tuned model from 72% to 92% fully correct on the test set.

Where the book teaches it

Related terms

difflib.get_close_matchesISO date formatRule check