Nemotron-3.5-Lightning-30B-Cricket-RL
A LoRA adapter for precise cricket calculations
2 min read
This repository contains a LoRA adapter (a small add-on to a base model) trained using reinforcement learning (GRPO) within the NeMo RL framework. The model specializes in answering questions about T20 cricket match statistics, delivering precise numerical values with a minimal number of reasoning tokens. The base model is nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16. This release is useful for researchers and developers exploring RL fine-tuning methods for language models and generation length optimization.
Key features
- Accuracy boost: accuracy on the test set increased from 86.50% to 97.71%.
- Compact responses: the average number of reasoning tokens dropped from 1565 to 107.
- Training via GRPO: rewards were calculated in the NeMo Gym environment for accurate numerical answers.
- Adapter rank: LoRA rank 32, alpha 64 applied to attention projections and other layers.
What you can do
- Apply with PEFT: load the base model and plug in the adapter on the fly using Python code.
- Merge weights: combine the adapter with the base weights using
merge_and_unload()to obtain a standalone model. - Run in vLLM: deploy the model as a LoRA module via vLLM for fast inference.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, "Balab2021/Nemotron-3.5-Lightning-30B-A3B-Cricket-NeMo-RL-Rhea")Read more
DetailsBase model: nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16
Method: GRPO with LoRA (NeMo RL), vLLM, NeMo Gym rewards
Dataset: Balab2021/CricketData-T20-Reasoning-Qwen3.8-Full
Hardware: NVIDIA Vera Rubin, 4 nodes (16 GPUs)










Comments