AI • Science • Technology • Future

AI Agents

Fine-Tuning NVIDIA Nemotron to Know Local Rules, Not Just Local Languages

Image from the original article
Featured image: original publisher image. Via original publisher.

NVIDIA has released a detailed workflow for adapting its Nemotron language models to local rules and cultural contexts. This approach moves beyond language translation to ensure AI agents understand regional regulations and public service procedures.

What Happened

NVIDIA and partner companies have developed a post-training workflow to adapt Nemotron models to specific national and regional environments. The process uses synthetic persona data to simulate real users in local settings.

The workflow was tested with datasets for France and Belgium. These datasets include demographic, linguistic, and geographic details to build realistic user profiles.

Each persona is grounded in actual census data. A French resident in Cayenne, for example, has different passport costs than someone in mainland France. This detail is critical for accurate public service responses.

How the Workflow Works

The process begins with defining a behavior contract. This outlines what a good response should look like for a given service.

For example, a customer asking about a passport application must receive a response that reflects actual procedures, not generic or invented answers.

Sample test cases include:

  • A request for a passport in French Guiana with correct fee and in-person requirements.
  • A question about mairie opening hours, which must redirect to official sources without inventing details.
  • A warning about suspicious calls asking for software or passwords.

Next, synthetic conversations are generated using personas. These personas vary in age, job, and location to reflect real-world diversity.

Each persona is used to generate a customer message and a model response. The generator uses Nemotron 3.5 Lightning, running locally or via an NVIDIA-hosted API.

Key settings include disabling reasoning traces. This prevents training data from containing internal thought processes, which could leak sensitive or unverified content.

After generation, a script audits the output. It removes malformed entries, leftover reasoning, and any persona names that might leak identity.

This ensures the model can be tested without overfitting to a single dataset.

Model Fine-Tuning

The model is fine-tuned using LoRA (Low-Rank Adaptation). This method adjusts only specific parts of the model, preserving the original weights while adding new behaviors.

Training runs in the NVIDIA NeMo Automodel container. The process uses a configuration file that specifies data paths and training parameters.

For DGX Spark systems, memory usage is reduced by setting local_batch_size to . This setting helps maintain stability during training on systems with limited memory.

Validation loss should decrease and then stabilize. If it rises or plateaus early, the data may contain errors or inconsistencies, and a review of the input data is recommended.

Merging and Serving the Model

After training, the LoRA adapter is merged into the base model. This creates a new, customized version of Nemotron.

Image from the original article
original publisher image. Via original publisher. · Source

The merged model is saved to a checkpoint folder and served via a local VLLM instance. The new model is named lightning-fr for French public service use.

On DGX Station, both the base and fine-tuned models can be served side by side, enabling direct comparison. On DGX Spark, only the adapted model is served, and comparisons are made manually or by serving one model at a time.

Evaluation Against the Base Model

Performance is not judged by loss alone. The same test prompts are sent to both the base and fine-tuned models.

Human evaluators or automated agents compare responses. The goal is to detect hallucinations, such as invented fees, documents, or deadlines, and ensure responses match official procedures.

Example test cases are stored in eval/test_prompts.jsonl. The comparison script generates a markdown file showing side-by-side responses.

On DGX Spark, the script must be run twice—one for the base model, one for the fine-tuned model—so that each model’s response can be evaluated independently.

Each response is checked for accuracy. For instance, a response must not claim a postal submission is possible when the official site states only in-person or online appointments are allowed.

Real-World Application

Pleias, a French AI startup, uses this workflow in its Lamina spine-care assistant. The assistant serves patients in regional clinics.

Pleias uses three Nemotron-Personas datasets—France, Belgium, and others—to expand training data. This helps cover diverse patient profiles and reduces blind spots.

According to Pleias, better grounded data makes regional-specific models viable. The data improves coverage without guaranteeing fairness or representation.

The workflow is not limited to public services. It can be adapted to any domain where local rules matter—such as healthcare, legal advice, or financial services.

Why This Matters

General-purpose language models often lack local knowledge. They may respond with generic or incorrect information.

By grounding models in real demographic and procedural data, developers can create more reliable, context-aware AI agents.

For public services, this means users get accurate, safe, and compliant responses. It reduces the risk of misinformation or harmful advice.

[siriusity_source_video]

The approach supports greater control over how AI reflects local priorities and serves users.

Technical Foundations of the Workflow

The Nemotron-Personas datasets are part of a broader open data initiative by NVIDIA. These datasets are designed to represent real-world populations across 12 countries, each with distinct demographic, linguistic, and cultural characteristics.

Each persona in the dataset is not a random simulation. Instead, they are constructed using actual census data, including age distribution, employment status, geographic location, and linguistic preferences. For example, a persona representing a resident of the French overseas department of French Guiana will have different socioeconomic and administrative realities than one from Paris.

These datasets are not merely linguistic—they include geographic context. A person living in a rural commune in Brittany will have different access to public services than someone in a metropolitan area. The model learns to respond accordingly, reflecting actual service availability, such as the presence of a local mairie with a registration station or the requirement for an in-person appointment.

Image from the original article
original publisher image. Via original publisher. · Source

The data is structured to support synthetic conversation generation. Each persona has a profile that includes a name (which is excluded from final training data), occupation, household structure, and daily routines. These details shape how the persona communicates—what they ask for, how they phrase questions, and what level of formality they use.

These nuances are critical because they reflect how real users interact with public services. A model trained on generic language will respond with broad, impersonal answers. A model trained on persona-grounded conversations learns to speak in a way that mirrors actual user behavior, increasing both authenticity and usability.

Role of Official Procedure Texts

One of the most important components of the workflow is the integration of official procedure texts. These are real, published documents from government websites and public service portals, such as service-public.gouv.fr or the ANTS (Agence Nationale des Titres de Sécurité) website.

Each synthetic conversation is paired with an official procedure text that defines the correct response. This ensures that the model does not invent procedures or make up details. For example, when a customer asks about applying for a passport, the model is guided by the actual rules on the ANTS site, which state that applications must be made in person or online, with specific requirements for documents and fees.

These procedure texts are used as a reference during both data generation and model evaluation. When a conversation is generated, the model is prompted to follow the official text, not to create a fictional version. This prevents hallucinations and ensures compliance with real-world regulations.

During evaluation, the model’s responses are compared against these official texts. If a response claims a postal submission is possible when the official site states it is not, that is a failure. Similarly, if a response invents a fee or a deadline, it is flagged as incorrect.

These procedure texts are not static. They are updated periodically, and the model must be retrained or reevaluated when updates occur. This means that the workflow is not a one-time process but one that requires ongoing monitoring and iteration.

Implementation on Different Hardware Platforms

The workflow is designed to run on high-performance GPU systems such as the NVIDIA DGX Station GB300 and the DGX Spark. These systems provide the necessary compute power for training large language models with LoRA fine-tuning.

On the DGX Station, the full workflow can be executed locally. This allows developers to run the entire pipeline—data generation, training, evaluation—on their own infrastructure. The system supports serving both the base and fine-tuned models simultaneously, enabling side-by-side comparison and real-time testing.

On the DGX Spark, the workflow is adapted to a cloud-based environment. Training runs in a containerized environment, and the model is served via a hosted API. While this reduces the need for local hardware, it introduces a dependency on NVIDIA’s hosted services and may limit access for organizations without subscription privileges.

For developers without access to these systems, NVIDIA provides a sizing calculator that estimates GPU requirements, training time, and costs. This tool allows developers to plan their investments and assess feasibility before committing to hardware or cloud resources.

Limitations and Ethical Considerations

While the workflow significantly improves local accuracy, it does not eliminate all risks. The synthetic personas are derived from census data, which may not fully represent marginalized or underrepresented groups. For example, a persona dataset may have fewer entries for elderly individuals in rural areas, leading to a model that underperforms for those users.

Additionally, the model’s responses are only as accurate as the official procedure texts used. If those texts are outdated, incomplete, or contain errors, the model inherits those flaws. This means that developers must verify the accuracy of the source documents before relying on the model.

Persona data does not include sensitive attributes such as income, health status, or education level. This limits the ability to simulate complex user needs, such as those of individuals with disabilities or chronic health conditions. As a result, the model may fail to recognize or respond appropriately to such cases.

Training requires access to high-end GPU systems. The workflow is designed for DGX Station or DGX Spark, which may not be available to all developers. This creates a barrier to entry for smaller organizations or independent developers.

While the model improves accuracy, it does not eliminate the need for human oversight. Final decisions in sensitive domains—such as medical diagnoses, legal advice, or financial planning—must still be made by qualified professionals. AI agents should be viewed as tools that assist, not replace, human judgment.

Future Directions and Expansions

NVIDIA is expanding the Nemotron data program to include more countries. New datasets will cover additional regions and languages, including Spanish-speaking countries in Latin America, German-speaking regions in Central Europe, and Southeast Asian markets.

Future versions of the workflow may integrate reinforcement learning (RL) to refine model behavior over time. Instead of relying solely on pre-defined datasets, the model could learn from real user interactions, adjusting its responses based on feedback and outcomes. This would allow agents to improve continuously, rather than being limited to static training data.

Developers can also explore fine-tuning Nemotron ASR (Automatic Speech Recognition) for voice-enabled applications. This includes streaming speech recognition in French and other languages. The ASR model can transcribe audio as it arrives, including spoken French, with support for 40 language locales. Eight of these require fine-tuning to match domain-specific accents or dialects.

For example, a healthcare assistant could use Nemotron ASR to listen to a patient’s voice and transcribe their concerns in real time. The model could then use the transcript to generate a response tailored to the patient’s specific needs, all while maintaining compliance with local medical regulations.

NVIDIA has also enabled eight-node DGX Spark clusters for local AI development. This supports scalable training and deployment, allowing organizations to train larger models or run distributed training jobs without relying on external cloud providers.

Developer Resources and Community Engagement

For developers, the Nemotron repository offers reusable steps for data generation, training, and evaluation. These steps are built using the NVIDIA NeMo open training stack and are designed to be modular and adaptable to different domains.

The repository includes a collection of agent skills—such as customization using NVIDIA NeMo Automodel—that help coding agents assemble the workflow. These skills can be combined to create custom pipelines for specific use cases, such as customer service, healthcare, or legal compliance.

Developers can explore open Nemotron models and datasets on Hugging Face. This platform provides access to pre-trained models and datasets, allowing developers to experiment with different configurations before implementing full-scale solutions.

For a more comprehensive understanding, developers can explore use-case examples and cookbooks that demonstrate how the workflow has been applied in real-world scenarios. These include case studies from healthcare, public services, and financial institutions.

Stay up to date on NVIDIA Nemotron by subscribing to NVIDIA news and following NVIDIA AI on LinkedIn, X, Discord, and YouTube. The NVIDIA developer community is active and growing, with regular livestreams, tutorials, and discussions on best practices for AI agent development.

For technical details, visit the original post.

Explore open Nemotron models and datasets on Hugging Face.

Use the NVIDIA AI Sizing Calculator to estimate training costs and GPU needs.

For a similar workflow, see fine-tuning for Saudi Arabic dialects.

Learn about multimodal reasoning in Nemotron 3.5 Super VL.

NVIDIA has also enabled eight-node DGX Spark clusters for local AI development. This supports scalable training and deployment.

For developer resources, visit the NVIDIA Developer Page.

Join the community on NVIDIA Discord or follow NVIDIA AI on LinkedIn and X.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source