GLM-Legal: Engineering a Domain-Adapted Legal LLM with Retrieval, LoRA, and Citation Grounding
A production-grade breakdown of GLM-Legal: how to adapt a general GLM-style decoder into a citation-grounded legal assistant using continued pretraining, LoRA SFT, hybrid retrieval, and constrained decoding. Includes runnable Python, latency/cost trade-offs, and a deployment checklist.