Run this model with HF Jobs

Run RSIArena/RSIAgent-Brook-Stage1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/RSIArena/RSIAgent-Brook-Stage1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/RSIArena/RSIAgent-Brook-Stage1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/RSIArena/RSIAgent-Brook-Stage1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/RSIArena/RSIAgent-Brook-Stage1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

RSIAgent-Brook (Nemotron-3.5-Lightning-30B-A3B chat model)

Model

This model is a chat / instruction-tuned variant of nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16 (base revision 434456c9a6753f29d24e23c95d622aaf17111b3b), produced by a two-stage post-training recipe: supervised fine-tuning (SFT, LoRA) followed by Direct Preference Optimization (DPO, LoRA on top of the merged SFT model).

  • Architecture: Nemotron-3.5-Lightning, 30B total parameters, ~3B active (MoE), bfloat16 weights, shipped as a full merged model (2 safetensors shards).
  • Format: standard transformers AutoModelForCausalLM with the Nemotron chat template (chat_template.jinja, tokenizer.json, tokenizer_config.json).
  • Intended use: single-turn and multi-turn English assistant dialogue, instruction following, math and code help. The model is research-quality and not certified for production or safety-critical use.

How to use

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "RSIArena/RSIAgent-Brook-Submission"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="bfloat16",
                                             device_map="auto")

messages = [
    {"role": "system", "content": "You are a helpful, respectful and honest "
                                  "assistant. Always answer as helpfully as "
                                  "possible, while being safe."},
    {"role": "user", "content": "Solve 3x + 7 = 22 for x."},
]
prompt = tok.apply_chat_template(messages, tokenize=False,
                                 add_generation_prompt=True)
ids = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**ids, max_new_tokens=2048,
                     eos_token_id=[11, 2], pad_token_id=11)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True))

Serving metadata shipped in the bundle (serving_config.json): max_input_tokens 8192, add_generation_prompt true, enable_thinking false, system_prompt_file system_prompt.txt ("You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe."). generation_config.json sets max_new_tokens 2048, eos_token_id [11, 2], pad_token_id 11, bos_token_id 1.## Training

Post-training ran on 4-8 NVIDIA H100 GPUs (Slurm cluster) with PyTorch + PEFT LoRA. All trainable parameters were LoRA adapters; both stages save a merged full model. The full model is a LoRA-SFT + LoRA-DPO finetune of the Nemotron base — base_model_relation: finetune.

Stage 1 — Supervised fine-tuning (SFT)

  • Script: train_sft.py --lora (Slurm job 4472).
  • Method: LoRA, rank r=64, alpha=128, dropout 0.05, applied to attention and MLP projection layers of the base model.
  • Data: full_mix_c, 976,297 examples, 1 epoch, max sequence length 4096.
  • Optimizer: AdamW, learning rate 1e-4, cosine schedule with warmup.
  • Batch size: 2 per GPU x gradient accumulation 8 x 8 GPUs = effective 128; 7,628 optimizer steps.
  • Output: lora_v5 adapter, merged into the full model (lora_v5_full, Slurm merge job 4475).

Stage 2 — Direct Preference Optimization (DPO)

  • Script: train_dpo_nll.py (Slurm job 5060 for the submitted model).
  • Method: LoRA (r=64, alpha=128) on top of the merged SFT full model; the frozen SFT model serves as the DPO reference. The trained model is saved merged.
  • Data: uf_plus_comp_c.parquet, 59,982 preference pairs (see below), max sequence length 2048.
  • DPO hyperparameters: beta=0.1, learning rate 5e-6 (AdamW), no NLL regularization term in the submitted run.
  • Batch size: 1 per GPU x gradient accumulation 24 x 4 ranks = effective 96; 4,512 optimizer steps = 0.3 epoch over the preference set.
  • Evidence file (training_evidence.json in the bundle) records dpo_beta 0.1, dpo_pairs 59982, init_ckpt lora_v5_full and the Slurm job id.

We also ran ablations not included in this model: shorter/longer DPO budgets (0.06-1.0 epoch), NLL-regularized DPO (nll02/nll06 — worse), and multiple independent replicas of the winning configuration (six fresh LoRA draws) to verify the recipe is not a seed fluke. Replica quality varied by roughly +/-0.01 on our composite score, confirming stability of the configuration.## Training data

SFT mixture (full_mix_c, 976,297 examples)

Source Examples Content
allenai/tulu-3-sft-mixture (train split) 939,343 diverse English instruction / dialogue data
openai/gsm8k (train split) 29,892 grade-school math with chain-of-thought solutions
DigitalLearningGmbH/MATH-lighteval (train split, x3 repeat) 45,000 competition math with worked solutions
synthetic compliance set (self-authored) 30,000 instruction-following prompts covering 10 exact-constraint types (word/letter counts, exact formatting, keyword inclusion, etc.) with verified compliant targets

Preference data (uf_plus_comp_c.parquet, 59,982 pairs)

Source Pairs Content
HuggingFaceH4/ultrafeedback_binarized (train split) ~54,429 chosen/rejected response preferences
synthetic compliance pairs (self-authored) 5,553 chosen = compliant response, rejected = verified minimal violation of the requested constraint

Decontamination

Both sets were decontaminated against all evaluation test sets used in this project and 11 external benchmarks (ARC-C, ARC-E, OpenBookQA, HellaSwag, TruthfulQA, WinoGrande, PIQA, SocialIQA, CommonsenseQA, BoolQ, AGIEval): exact match and normalized-string match at both example and answer level. 113,686 rows were dropped in the second cleaning pass. No benchmark test examples remain in any training set, and no evaluation data was used for training, model selection inputs, or prompt authoring of training targets.

The compliance synthetic data is generated from self-authored constraint templates (not from any benchmark). All training corpora are publicly available Hugging Face datasets plus this self-authored synthetic data.## Evaluation

All evaluations are internal (run by the researcher on held-out test splits of public benchmarks that were excluded from training by decontamination). No human evaluation was performed. Numbers are accuracy (exact / programmatic checkers) unless noted.

Suites:

  • GSM8K test (n=500): grade-school math, final numeric answer match.
  • MMLU test (n=800): 4-choice log-likelihood accuracy.
  • MATH-500 (n=500): competition math, boxed-answer normalized-expression match.
  • IF-80 (n=80): instruction-following with programmatic constraint checkers (30 original + 50 self-authored items), pass rate.
  • Chat-20 (n=20): single-turn chat prompts, correct turn termination rate (stops at turn end, no rambling / no truncation).
  • HumanEval (n=164): code generation, pass@1 (unit tests).
  • ChatX-30 (n=30): multi-turn / extended chat, correct turn termination rate.

Results on the submitted configuration and its independent replicas (same recipe, fresh LoRA draws), plus ablation arms:

Model (arm) GSM8K MMLU MATH-500 IF-80 Chat-20 HumanEval ChatX-30 mean-7
p1r3 (replica) .872 .780 .562 .762 1.00 .817 .900 .813
p1r2 (submitted) .882 .779 .594 .688 1.00 .799 .933 .811
p1r7 (replica) .880 .783 .560 .700 .95 .799 .933 .801
p1 (replica) .882 .774 .560 .750 .95 .781 .900 .800
p1r (replica) .874 .778 .580 .700 .95 .805 .900 .798
p1r4 (replica) .884 .778 .576 .738 .90 .811 .900 .798
p1r8 (replica) .892 .790 .576 .688 .90 .805 .933 .798
e06 (0.06-epoch DPO ablation) .890 .784 .576 .738 .85 .817 .900 .794
p2 (long-DPO ablation) .880 .783 .564 .675 .90 .811 .933 .792

The submitted model is p1r2 (training job 6597): the same configuration as p1 with a fresh LoRA initialization draw. It was selected by a rule pre-registered before its evaluation results arrived: best item-weighted accuracy over the 2,094 scored items (.762, first among all arms, led by MATH-500 .594) with top-tier mean-7 (.811) and the best chat turn-termination (1.00 on both chat suites). Per-item paired comparisons place p1r2 ahead of the closest competitor p1r3 on MATH-500 (31 items won vs 15 lost); p1r3's IF-80 lead (+6 items, only 10 discordant) concentrates in two constraint kinds and is within noise.

Key observations:

  • The 0.3-epoch plain-DPO configuration (beta 0.1, lr 5e-6) is stable across eight independent runs (mean-7 range .798-.813); differences between replicas are within one standard error on the large suites (~.015-.03).

  • DPO improves instruction-following and chat turn-termination over the SFT-only model; longer DPO training degrades instruction-following (IF-80 .675 at p2 vs .750 at p1), which is why the shorter budget was chosen.

  • Math (MATH-500, .56-.59) is the weakest capability of this model family in our tests; GSM8K is much stronger (.88), suggesting competition-math generalization is the main remaining gap. Hard IF constraint kinds (line/word-count constraints, forbidden words) fail for every arm (0-2 of 5-6 items) and are a second known weakness.

  • Chat suites have small n (20-30); treat their differences as indicative only.## Limitations

  • Trained only on English data; other languages are unsupported.

  • Math reasoning is uneven: competition-level math (.56 on MATH-500) is much weaker than grade-school math (.88 GSM8K); multi-step proofs and olympiad problems are unreliable.

  • Chat/IF evaluations were small (n=20-80) and internal; no human evaluation, no safety benchmark, and no red-teaming was performed.

  • The model can hallucinate facts, produce incorrect code that appears plausible, and follow harmful instructions if they are phrased persuasively. Apply standard safety filtering for user-facing deployment.

  • Generation is calibrated for short assistant turns (2048 new tokens, turn ends at the chat template's turn boundary); long-form creative writing may be cut short.

  • Knowledge cutoff follows the base model's pretraining corpus (2024-era); the model has no browsing or tool-use ability beyond plain text.

License

This model is a finetune of nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16, released by NVIDIA under the Open Model Distribution Agreement (OpenMDW-1.1). This derivative is distributed under the same OpenMDW-1.1 license (license: other, license_name: OpenMDW-1.1); see the base model repository for the full license text. Training datasets retain their own licenses (Tulu-3 mixture: Apache-2.0 / ODC-BY variants; GSM8K: MIT; MATH-lighteval: MIT; UltraFeedback binarized: MIT / CC-BY-NC for underlying generations).

Downloads last month
29
Safetensors
Model size
32B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for RSIArena/RSIAgent-Brook-Stage1

Datasets used to train RSIArena/RSIAgent-Brook-Stage1