# I Fine-Tuned NVIDIA’s 8-Billion-Parameter Language Model to Read Legal Contracts. Here’s How.

> Source: <https://pub.towardsai.net/i-fine-tuned-nvidias-8-billion-parameter-language-model-to-read-legal-contracts-here-s-how-1934f89d11fb?source=rss----98111c9905da---4>
> Published: 2026-07-28 06:36:40+00:00

Member-only story

# I Fine-Tuned NVIDIA’s 8-Billion-Parameter Language Model to Read Legal Contracts. Here’s How.

*An approachable, reproducible guide to LoRA, quantization, training loss, validation, and model evaluation.*

When I started this project, I wanted more than a better score. I wanted to

understand what fine-tuning was actually doing. This guide starts with the basic ideas, explains the vocabulary as it comes up, and uses our real training runs to show what worked and what failed.

*If you are not a paid medium member, u can read it **here*

The result:after six controlled experiments, validation Macro-F1 rose

from0.2956 to 0.8246. Exact-match accuracy reached91.5%, and every

response in the 200-example validation set could be parsed.

This work was built as part of [NVIDIA’s India Agentic AI Open Hackathon](https://www.openhackathons.org/s/siteevent/a0CUP00004gn7e32AA/se000496), where our team, **RTX Renegades** , built **NemoCounsel**, an AI contract review assistant powered by the fine-tuned model described in this post. Credit to my teammates [ Aditya Rallapalli](https://www.linkedin.com/in/adityar0308/),

[,](https://www.linkedin.com/in/sainathch45/)

**Sainath Chakravadhanula**[, and](https://www.linkedin.com/in/ruchita-b-424893256/)

**Ruchita Bhandari**[for building this with me, and to our NVIDIA mentors](https://www.linkedin.com/in/stutichourasia/)

**Stuti Chourasia**

**Raghul Asokan****and**

**Sutanshu Raj****for their guidance throughout. Thank you to**

[NVIDIA](https://www.nvidia.com/en-in/)for the GPU compute support that made these training runs possible.
