You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Introduction

Despite using state-of-the-art DARE/TIES merging to mitigate interference, the model suffered from Parametric Collision. Because each expert (Math, Code, Science) utilized the same high-rank subspaces but in functionally divergent ways, the static weight merge resulted in 'zero-sum' knowledge transfer, where the distinct reasoning primitives effectively canceled each other out.

Nemotron-30B Multi-Domain Merged PEFT

Welcome to the Nemotron-30B Multi-Domain Merged PEFT. This is a composite parameter-efficient fine-tuning (PEFT) module for the nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4 architecture, statically merged via DARE/TIES weighting from three distinct domain experts: Math, Code, and Science.

Created as the baseline comparison model for the Mewtwo dynamic routing research project.

Quantitative Merging Details

Rather than being trained directly, this adapter was created by algorithmically merging three fine-tuned expert adapters.

The Composition Emergence Failure (H-COMP)

This model serves as empirical evidence against the current open-source trend of "merging everything." Our core hypothesis tested whether merging multiple distinct logic engines at the 30B parameter scale would create "emergent" cross-domain intelligence.

The Finding: Static weight merging strictly failed to produce emergent capability. The mathematical realities of the parameter subspaces meant that mashing three distinct reasoning engines together resulted in destructive interference on non-dominant benchmarks, while merely matching the peak performance of the best single expert on dominant benchmarks (e.g., scoring identically to the Code adapter on MATH-500).

xychart-beta
    title "The Failure of Static Merging (Accuracy %)"
    x-axis ["ARC", "HumanEval", "MATH-500"]
    bar [19.0, 34.0, 56.0]
    line [20.0, 50.0, 41.5]

(Blue Bar = Merged Adapter, Red Line = Raw Base Model)

Notice that on ARC Science reasoning, the merged adapter (19%) actually performs worse than the completely untrained base model (20%), proving static parameter collision aggressively destroys capabilities acquired during single-domain training.

Benchmark Table

Benchmark Base Model Nemotron-30B Multi-Domain Merged PEFT Delta
ARC-Challenge (25-shot) 20.0% 19% -1%
HumanEval (0-shot) 50.0% 34% -16%
MATH-500 (0-shot) 41.5% 56% 14%
MBPP (0-shot) 8.0% 0% -8%

How to Use (Working Snippet)

This architecture relies on Hybrid Mamba-Attention. The dynamic caching pipeline must be overridden for generation to succeed.

import torch
import sys
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import PeftModel

model_id = "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4"
adapter_id = "uditjain/nemotron-30b-multi-domain-merged-peft"

# 1. Load Base Model and Tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
bnb_config = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_compute_dtype=torch.bfloat16)

base_model = AutoModelForCausalLM.from_pretrained(
    model_id, 
    device_map="auto", 
    quantization_config=bnb_config
)

# 2. Attach PEFT Adapter
model = PeftModel.from_pretrained(base_model, adapter_id)
model.eval()

# 3. Dynamic Cache Extraction
try:
    model_module = sys.modules[base_model.__class__.__module__]
    HybridMambaAttentionDynamicCache = getattr(model_module, 'HybridMambaAttentionDynamicCache')
    past_key_values = HybridMambaAttentionDynamicCache(
        base_model.config, batch_size=1, dtype=torch.bfloat16, device=model.device
    )
except Exception as e:
    print(f"Warning: Failed to load custom Mamba cache. Generation may be slower or degrade. Error: {e}")
    past_key_values = None

# Format the Prompt
messages = [{"role": "user", "content": "Write a Python script to compute the mass trajectory of a geostationary satellite"}]
# This prompt tests the model's ability to interleave Science (Satellites) and Code (Python) without destructive interference.

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

# Generate Output
with torch.no_grad():
    outputs = model.generate(
        **inputs, 
        max_new_tokens=400,
        past_key_values=past_key_values,
        do_sample=False
    )

response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response)

Intended Use & Limitations

Intended Use: Academic evaluation of static merging capabilities vs dynamic token-level PEFT routing. ❌ Out-of-Scope: Production reasoning tasks. The dynamic routing paradigm is vastly superior to this merged artifact. ⚠️ Limitations: Severe parameter destruction observed on ARC. This model is presented for transparency and replication, not state-of-the-art capability.

Citation & Contact

If you use this artifact for replication or merging theory research, please cite:

@misc{jain2026nemotronmerged,
  author = {Udit Jain},
  title = {Nemotron-30B-Multi-Domain-DARE-TIES-Merged-LoRI},
  year = {2026},
  publisher = {HuggingFace},
  url = {https://huggingface.co/uditjain/Nemotron-30B-Multi-Domain-DARE-TIES-Merged-LoRI}
}

Collaboration & Queries: hello@uditjain.in

Downloads last month
21
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for uditjain/Nemotron-30B-Multi-Domain-DARE-TIES-Merged-LoRI

Evaluation results