Text Generation
PEFT
Safetensors
English
Chinese
rsi-arena
lora
instruction-following
rejection-sampling-finetuning
on-policy
conversational
Instructions to use RSIArena/RSIAgent-Islet-Stage2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use RSIArena/RSIAgent-Islet-Stage2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16") model = PeftModel.from_pretrained(base_model, "RSIArena/RSIAgent-Islet-Stage2") - Notebooks
- Google Colab
- Kaggle
sp035X nomination (0.35*rft2+0.65*hb1 soup, job 9402)
Browse files- README.md +0 -176
- adapter_config.json +47 -47
- adapter_model.safetensors +2 -2
- chat_template.jinja +16 -19
- generation_config.json +9 -3
- serving_config.json +3 -3
- tokenizer_config.json +2 -2
- training_evidence.json +5 -5
README.md
DELETED
|
@@ -1,176 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16
|
| 3 |
-
base_model_relation: adapter
|
| 4 |
-
library_name: peft
|
| 5 |
-
license: other
|
| 6 |
-
license_name: openmdw-1.1
|
| 7 |
-
license_link: https://openmdw.ai/license/1-1/
|
| 8 |
-
pipeline_tag: text-generation
|
| 9 |
-
language:
|
| 10 |
-
- en
|
| 11 |
-
tags:
|
| 12 |
-
- rsi-arena
|
| 13 |
-
- lora
|
| 14 |
-
- instruction-following
|
| 15 |
-
- dpo
|
| 16 |
-
- rejection-sampling-finetuning
|
| 17 |
-
---
|
| 18 |
-
|
| 19 |
-
# RSI Arena Stage 2 — nomination 1 (`hb1X`)
|
| 20 |
-
|
| 21 |
-
## Model
|
| 22 |
-
|
| 23 |
-
A **LoRA adapter** (PEFT) for `nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16`
|
| 24 |
-
(revision `434456c9a6753f29d24e23c95d622aaf17111b3b`), produced by an autonomous research agent inside
|
| 25 |
-
RSI Arena Stage 2 (continual training from human feedback).
|
| 26 |
-
|
| 27 |
-
Geometry: `r=768`, `lora_alpha=1536`, `lora_dropout=0.0`, target modules
|
| 28 |
-
`q_proj,k_proj,v_proj,o_proj,in_proj,up_proj,down_proj`, `modules_to_save=["lm_head"]`
|
| 29 |
-
(so the adapter also carries a fine-tuned LM head), `peft_version 0.18.1`. Adapter file:
|
| 30 |
-
`adapter_model.safetensors`, 3.59 GB.
|
| 31 |
-
|
| 32 |
-
It is the Stage 2 champion: Stage 1 checkpoint `v6141` (RFT/SFT on self-generated, verifier-checked
|
| 33 |
-
instruction data) followed by **DPO on 220 real human-arena preference pairs** derived from the arena
|
| 34 |
-
battles this model itself fought in Stage 1.
|
| 35 |
-
|
| 36 |
-
## How to use
|
| 37 |
-
|
| 38 |
-
```python
|
| 39 |
-
import torch
|
| 40 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 41 |
-
from peft import PeftModel
|
| 42 |
-
|
| 43 |
-
BASE = "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16"
|
| 44 |
-
tok = AutoTokenizer.from_pretrained(BASE)
|
| 45 |
-
tok.chat_template = open("chat_template.jinja").read() # ChatML, in this bundle
|
| 46 |
-
|
| 47 |
-
model = AutoModelForCausalLM.from_pretrained(BASE, torch_dtype=torch.bfloat16, device_map="auto")
|
| 48 |
-
model = PeftModel.from_pretrained(model, ".", torch_dtype=torch.bfloat16) # this directory
|
| 49 |
-
model.eval()
|
| 50 |
-
|
| 51 |
-
SYSTEM = open("system_prompt.txt").read().strip()
|
| 52 |
-
messages = [{"role": "system", "content": SYSTEM},
|
| 53 |
-
{"role": "user", "content": "Explain why the sky is blue."}]
|
| 54 |
-
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 55 |
-
enc = tok(text, return_tensors="pt").to(model.device)
|
| 56 |
-
out = model.generate(**enc, max_new_tokens=2048, do_sample=False)
|
| 57 |
-
print(tok.decode(out[0, enc["input_ids"].shape[1]:], skip_special_tokens=True))
|
| 58 |
-
```
|
| 59 |
-
|
| 60 |
-
* **Chat template**: `chat_template.jinja` in this bundle. It is ChatML — it renders
|
| 61 |
-
`{role}\n{content}\n` per turn and, with `add_generation_prompt=True`, appends `assistant\n`.
|
| 62 |
-
It uses only standard jinja2 syntax, so it also compiles in a bare jinja2 environment.
|
| 63 |
-
* **System prompt**: `system_prompt.txt` —
|
| 64 |
-
`You are a helpful AI assistant. Answer the user's request clearly, accurately and concisely.`
|
| 65 |
-
(`serving_config.json` marks it as the intended system prompt; the adapter was trained with it.)
|
| 66 |
-
* **Decoding** (`generation_config.json` / `serving_config.json`): greedy,
|
| 67 |
-
`temperature=0.0`, `top_p=1.0`, `max_new_tokens=2048`, `max_input_tokens=32768`,
|
| 68 |
-
`eos_token_id=[11,2]`, `pad_token_id=11`.
|
| 69 |
-
|
| 70 |
-
## Training
|
| 71 |
-
|
| 72 |
-
Two stages, in order. All training ran on a Slurm GPU partition; job ids are the jobs that produced
|
| 73 |
-
the weights.
|
| 74 |
-
|
| 75 |
-
### Stage 1 — `v6141` (the warm start), Slurm job **6854**
|
| 76 |
-
|
| 77 |
-
* **Method**: LoRA SFT (rejection-sampling fine-tuning, RFT) on the model's *own* samples.
|
| 78 |
-
* **Data**: instruction prompts from the RSI Arena Human Arena and from self-generated
|
| 79 |
-
constraint-following ("IF") and mathematics prompt families. For every prompt the model sampled
|
| 80 |
-
several candidates; a **programmatic verifier** (constraint checker for IF prompts, exact-answer
|
| 81 |
-
checker for maths) kept only candidates that *passed*. No reference answers from any benchmark or
|
| 82 |
-
from another model were used — targets are always the model's own verified output.
|
| 83 |
-
* **Hyperparameters**: `r=768`, `alpha=1536`, lr `16e-6`, 400 optimizer steps, effective batch 48
|
| 84 |
-
examples, warm-started from the previous round's adapter. Training data file
|
| 85 |
-
`data/mix_v6x1/sft.npz` (sha256 recorded in `training_evidence.json`).
|
| 86 |
-
* GPU-hours: ~14 GPU-h (8 GPUs x ~1.8 h).
|
| 87 |
-
|
| 88 |
-
### Stage 2 — `hb1X` (this nomination), Slurm job **7523**
|
| 89 |
-
|
| 90 |
-
* **Method**: Direct Preference Optimization on **human preference pairs mined from the arena**.
|
| 91 |
-
* **Data**: 220 preference pairs built from the RSI Arena Human Arena battles that the Stage 1
|
| 92 |
-
checkpoint `v6141` played. Each pair is (user prompt, answer `v6141` preferred by a human, answer
|
| 93 |
-
`v6141` rejected by that human) — i.e. the *chosen* side is always this model's own answer, and the
|
| 94 |
-
feedback is the human vote itself. This is the arena's own feedback signal, used in full; no
|
| 95 |
-
external or benchmark data.
|
| 96 |
-
* **Hyperparameters**: warm start from `v6141`, lr `3e-6`, beta `0.1`, auxiliary NLL loss weight `0.1`,
|
| 97 |
-
120 optimizer steps, LoRA geometry unchanged from Stage 1.
|
| 98 |
-
* GPU-hours: ~0.15 GPU-h (1 GPU x ~9 min).
|
| 99 |
-
|
| 100 |
-
**Why DPO and not only more RFT?** RFT on ~5k verified self-samples is what moved the rewarded
|
| 101 |
-
answer-length/coverage behaviour; DPO on 220 human pairs then sharpens it toward what arena voters
|
| 102 |
-
actually preferred. A larger-scale alternative under evaluation at the time of this nomination is
|
| 103 |
-
continued RFT on a freshly generated, decontaminated prompt pool (see Limitations).
|
| 104 |
-
|
| 105 |
-
## Training data
|
| 106 |
-
|
| 107 |
-
* **Human arena feedback** — the arena battles of this model in Stage 1 (prompts, both models'
|
| 108 |
-
answers, and each human's vote). Used for the DPO preference pairs only.
|
| 109 |
-
* **Self-generated, verifier-checked instruction data** — prompts written by the agent's own
|
| 110 |
-
generators (general chat / IF-constraint / maths families); completions sampled from the model
|
| 111 |
-
itself and kept only when the programmatic verifier accepted them.
|
| 112 |
-
* **No external Hugging Face dataset** was used to train this checkpoint, which is why the `datasets`
|
| 113 |
-
metadata field is absent. No benchmark training split was used either.
|
| 114 |
-
|
| 115 |
-
### Decontamination
|
| 116 |
-
|
| 117 |
-
Every training prompt was checked against the internal held-out evaluation sets before use:
|
| 118 |
-
* maths prompts were compared by 8-gram shingle overlap with the held-out maths set (148 dropped);
|
| 119 |
-
* IF prompts were compared by **exact normalised task-line equality** and by token-Jaccard >= 0.70 on
|
| 120 |
-
the task line against the held-out IF set (761 dropped as reworded copies), plus 744 duplicate
|
| 121 |
-
prompts dropped;
|
| 122 |
-
* final recheck after filtering reported **0** overlapping rows.
|
| 123 |
-
This holds out the *task instance*; the shared constraint scaffolding that defines an IF family is
|
| 124 |
-
deliberately not treated as contamination, because it is the family definition, not the answer.
|
| 125 |
-
No reference or gold answer from any evaluation set is ever used as a training target.
|
| 126 |
-
|
| 127 |
-
## Evaluation
|
| 128 |
-
|
| 129 |
-
All numbers below are **my own measurements** on internal, non-organizer data, with my own scripts;
|
| 130 |
-
they are not the organizer's evaluation and the sets are not the organizer's.
|
| 131 |
-
|
| 132 |
-
| Measurement | v6141 (Stage 1) | **hb1X (this)** |
|
| 133 |
-
|---|---|---|
|
| 134 |
-
| Maths accuracy, 250 held-out problems, exact-answer match | 0.776 | **0.804** |
|
| 135 |
-
| Instruction-following (strict), held-out constraint set | — | **0.895** |
|
| 136 |
-
| IF prompt-wise compliance | — | 0.860 |
|
| 137 |
-
| IF per-constraint compliance | — | 0.913 |
|
| 138 |
-
| Stop / EOS correctness | 1.000 | **1.000** |
|
| 139 |
-
| Median answer length (chars) | 173 | 235 |
|
| 140 |
-
|
| 141 |
-
Reading of the DPO stage: on the internal arena-style guard set it **raised** median answer length
|
| 142 |
-
(173 -> 235) — the direction human voters rewarded (more coverage, fewer truncated answers) — while
|
| 143 |
-
**not degrading** any capability floor: maths accuracy *improved* by 2.8 points, instruction-following
|
| 144 |
-
stayed high, and EOS/stop behaviour stayed perfect at 1.000. The truncation/"answer cut off" failure
|
| 145 |
-
mode, the dominant complaint in the arena battles, is what this stage targets.
|
| 146 |
-
|
| 147 |
-
**What I did not measure.** I did not evaluate on the organizer's held-out datasets (I cannot see
|
| 148 |
-
them), and I did not run public third-party suites such as MMLU, HumanEval or GSM8K, so I make no
|
| 149 |
-
claim about them. Numbers above come from ~250 maths problems and a few hundred IF prompts; those sets
|
| 150 |
-
are small enough that differences of a couple of points should not be over-read.
|
| 151 |
-
|
| 152 |
-
## Limitations
|
| 153 |
-
|
| 154 |
-
* **Small feedback.** The DPO stage saw only 220 human preference pairs and hit training accuracy 1.0
|
| 155 |
-
by step 30 of 120; on a held-out odd-pair preference check its margin moved only 0.264 -> 0.283.
|
| 156 |
-
220 pairs cannot carry a 30B MoE far, so the Stage 2 DPO is a light nudge on top of Stage 1, not a
|
| 157 |
-
large behavioural change.
|
| 158 |
-
* **Maths remains the weak leg** (0.804 on my internal set). Battles the arena marked "both bad" were
|
| 159 |
-
dominated by hard competition-programming and graduate-level maths, where the gap is a genuine
|
| 160 |
-
capability gap rather than a style or formatting gap; no amount of format-focused training closes
|
| 161 |
-
it, and I did not attempt to.
|
| 162 |
-
* **Length/verbosity is a trade-off, not a free win.** The reward direction the arena showed was
|
| 163 |
-
"longer, more covering answers". Pushing that further risks padding. I measured that a hedging
|
| 164 |
-
(length-echo) post-process is *worse* than plain answers across 5 folds, so I deliberately did not
|
| 165 |
-
add one, but the underlying preference for length is real and a longer model can be more verbose
|
| 166 |
-
without being more useful.
|
| 167 |
-
* **English only**; constrained to the ChatML format this adapter was trained in.
|
| 168 |
-
* **Hard-IF coverage gap.** An attempt to mine hard instruction-following data from the worst-scoring
|
| 169 |
-
families yielded only ~2% usable rows (below the 15-70% acceptance band), so the weakest constraint
|
| 170 |
-
families remain weaker than the rest.
|
| 171 |
-
|
| 172 |
-
## License
|
| 173 |
-
|
| 174 |
-
The Base model `nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16` is distributed under
|
| 175 |
-
**OpenMDW-1.1**, <https://openmdw.ai/license/1-1/>. Those terms apply to this adapter as a derivative
|
| 176 |
-
work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
adapter_config.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 3072.0,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": [
|
| 25 |
+
"lm_head"
|
| 26 |
+
],
|
| 27 |
+
"peft_type": "LORA",
|
| 28 |
+
"peft_version": "0.18.1",
|
| 29 |
+
"qalora_group_size": 16,
|
| 30 |
+
"r": 1536,
|
| 31 |
+
"rank_pattern": {},
|
| 32 |
+
"revision": "434456c9a6753f29d24e23c95d622aaf17111b3b",
|
| 33 |
+
"target_modules": [
|
| 34 |
+
"o_proj",
|
| 35 |
+
"v_proj",
|
| 36 |
+
"up_proj",
|
| 37 |
+
"down_proj",
|
| 38 |
+
"q_proj",
|
| 39 |
+
"k_proj",
|
| 40 |
+
"in_proj"
|
| 41 |
+
],
|
| 42 |
+
"target_parameters": null,
|
| 43 |
+
"task_type": "CAUSAL_LM",
|
| 44 |
+
"trainable_token_indices": null,
|
| 45 |
+
"use_dora": false,
|
| 46 |
+
"use_qalora": false,
|
| 47 |
+
"use_rslora": false
|
| 48 |
+
}
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e6e5a5a7d3606dde9836490239c93c012035b47d0e8ecdbf8c06662647757dd
|
| 3 |
+
size 5771258416
|
chat_template.jinja
CHANGED
|
@@ -1,22 +1,19 @@
|
|
| 1 |
-
{
|
| 2 |
-
|
| 3 |
-
Renders <|im_start|>{role}\n{content}<|im_end|>\n for every turn, byte for
|
| 4 |
-
byte the same strings as scripts/chat_format.py, which is what produced the
|
| 5 |
-
training data and what every evaluation used.
|
| 6 |
-
It uses only standard jinja2 syntax, tests and filters (no raise_exception
|
| 7 |
-
and no other environment-specific global), so it compiles in a bare jinja2
|
| 8 |
-
environment as well as in the sandboxed environment transformers builds.
|
| 9 |
-
add_generation_prompt=True appends "<|im_start|>assistant\n". -#}
|
| 10 |
-
{%- if messages is defined -%}
|
| 11 |
-
{%- for message in messages -%}
|
| 12 |
-
{%- set content = (message['content'] if message['content'] else '') | string -%}
|
| 13 |
-
{%- if message['role'] in ['system', 'user', 'assistant', 'tool'] -%}
|
| 14 |
-
{{- '<|im_start|>' + message['role'] + '\n' + content + '<|im_end|>\n' -}}
|
| 15 |
-
{%- else -%}
|
| 16 |
-
{{- '<|im_start|>user\n' + content + '<|im_end|>\n' -}}
|
| 17 |
{%- endif -%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
{%- endfor -%}
|
| 19 |
-
{%- endif -%}
|
| 20 |
{%- if add_generation_prompt -%}
|
| 21 |
-
{{- '<|im_start|>assistant\n' -}}
|
| 22 |
-
{%- endif -%}
|
|
|
|
| 1 |
+
{%- if not messages is defined -%}
|
| 2 |
+
{%- raise_exception('messages must be defined') -%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
{%- endif -%}
|
| 4 |
+
{%- for message in messages -%}
|
| 5 |
+
{%- if message['role'] == 'system' -%}
|
| 6 |
+
{{- '<|im_start|>system\n' + message['content'] + '<|im_end|>\n' -}}
|
| 7 |
+
{%- elif message['role'] == 'user' -%}
|
| 8 |
+
{{- '<|im_start|>user\n' + message['content'] + '<|im_end|>\n' -}}
|
| 9 |
+
{%- elif message['role'] == 'assistant' -%}
|
| 10 |
+
{{- '<|im_start|>assistant\n' + message['content'] + '<|im_end|>\n' -}}
|
| 11 |
+
{%- elif message['role'] == 'tool' -%}
|
| 12 |
+
{{- '<|im_start|>tool\n' + message['content'] + '<|im_end|>\n' -}}
|
| 13 |
+
{%- else -%}
|
| 14 |
+
{{- raise_exception('unknown role: ' + message['role']) -}}
|
| 15 |
+
{%- endif -%}
|
| 16 |
{%- endfor -%}
|
|
|
|
| 17 |
{%- if add_generation_prompt -%}
|
| 18 |
+
{{- '<|im_start|>assistant\n' -}}
|
| 19 |
+
{%- endif -%}
|
generation_config.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
{
|
| 2 |
-
"eos_token_id": [
|
|
|
|
|
|
|
|
|
|
| 3 |
"pad_token_id": 11,
|
| 4 |
"max_new_tokens": 2048,
|
| 5 |
-
"do_sample":
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{
|
| 2 |
+
"eos_token_id": [
|
| 3 |
+
11,
|
| 4 |
+
2
|
| 5 |
+
],
|
| 6 |
"pad_token_id": 11,
|
| 7 |
"max_new_tokens": 2048,
|
| 8 |
+
"do_sample": true,
|
| 9 |
+
"temperature": 0.7,
|
| 10 |
+
"top_p": 0.95,
|
| 11 |
+
"repetition_penalty": 1.05
|
| 12 |
+
}
|
serving_config.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"system_prompt_file": "system_prompt.txt",
|
| 5 |
"decoding": {
|
| 6 |
"max_new_tokens": 2048,
|
| 7 |
-
"temperature": 0.
|
| 8 |
-
"top_p":
|
| 9 |
}
|
| 10 |
-
}
|
|
|
|
| 4 |
"system_prompt_file": "system_prompt.txt",
|
| 5 |
"decoding": {
|
| 6 |
"max_new_tokens": 2048,
|
| 7 |
+
"temperature": 0.7,
|
| 8 |
+
"top_p": 0.95
|
| 9 |
}
|
| 10 |
+
}
|
tokenizer_config.json
CHANGED
|
@@ -8016,7 +8016,7 @@
|
|
| 8016 |
"pad_token": "<|im_end|>",
|
| 8017 |
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 8018 |
"unk_token": "<unk>",
|
| 8019 |
-
"chat_template": "{
|
| 8020 |
"pad_token_id": 11,
|
| 8021 |
"eos_token_id": 11
|
| 8022 |
-
}
|
|
|
|
| 8016 |
"pad_token": "<|im_end|>",
|
| 8017 |
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 8018 |
"unk_token": "<unk>",
|
| 8019 |
+
"chat_template": "{%- if not messages is defined -%}\n {%- raise_exception('messages must be defined') -%}\n{%- endif -%}\n{%- for message in messages -%}\n {%- if message['role'] == 'system' -%}\n {{- '<|im_start|>system\\n' + message['content'] + '<|im_end|>\\n' -}}\n {%- elif message['role'] == 'user' -%}\n {{- '<|im_start|>user\\n' + message['content'] + '<|im_end|>\\n' -}}\n {%- elif message['role'] == 'assistant' -%}\n {{- '<|im_start|>assistant\\n' + message['content'] + '<|im_end|>\\n' -}}\n {%- elif message['role'] == 'tool' -%}\n {{- '<|im_start|>tool\\n' + message['content'] + '<|im_end|>\\n' -}}\n {%- else -%}\n {{- raise_exception('unknown role: ' + message['role']) -}}\n {%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{- '<|im_start|>assistant\\n' -}}\n{%- endif -%}",
|
| 8020 |
"pad_token_id": 11,
|
| 8021 |
"eos_token_id": 11
|
| 8022 |
+
}
|
training_evidence.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"base_model": "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16",
|
| 3 |
"base_revision": "434456c9a6753f29d24e23c95d622aaf17111b3b",
|
| 4 |
-
"optimizer_steps":
|
| 5 |
-
"dataset_sha256": "
|
| 6 |
-
"slurm_job_id": "
|
| 7 |
-
"adapter_source_dir": "runs/
|
| 8 |
-
"method": "Stage 2
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"base_model": "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16",
|
| 3 |
"base_revision": "434456c9a6753f29d24e23c95d622aaf17111b3b",
|
| 4 |
+
"optimizer_steps": 912,
|
| 5 |
+
"dataset_sha256": "c3b32139282b843a9f7dc76a43b7cdfbcf0752e29cdfad63d0c569a0c8e0cc0a",
|
| 6 |
+
"slurm_job_id": "9402",
|
| 7 |
+
"adapter_source_dir": "runs/sp035/out",
|
| 8 |
+
"method": "Stage 2 rank-1536 LoRA soup: exact dW interpolation 0.35*rft2 + 0.65*hb1. Parents warm-started from a common ancestor so their errors decorrelate; the interior mixture beats BOTH parents on instruction-following (IF strict 0.910 vs 0.887 at w=0 and 0.840 at w=1). guard2 n=400: median chars 988->1126, too-short 0.250->0.160, keyword cover 0.591->0.627, severe-degenerate 0.110->0.052, loop 0.035->0.018 vs incumbent hb1g; IF strict 0.910 (floor 0.870); math 0.788 (floor 0.776, tie with incumbent 0.804 within noise); stop-token accuracy 1.000."
|
| 9 |
}
|