prathmeshadsod commited on
Commit
31e01dc
·
verified ·
1 Parent(s): 188a5d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +150 -84
README.md CHANGED
@@ -1,7 +1,12 @@
1
  ---
 
 
2
  language:
3
  - en
 
4
  pipeline_tag: text-generation
 
 
5
  tags:
6
  - chemistry
7
  - organic-chemistry
@@ -12,53 +17,55 @@ tags:
12
  - adaption-autoscientist
13
  ---
14
 
15
- <style>
16
- .bondshift-hero {
17
- text-align: center;
18
- padding: 28px 18px;
19
- margin: 8px 0 24px;
20
- border: 1px solid rgba(127,127,127,.22);
21
- border-radius: 18px;
22
- background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(16,185,129,.07));
23
- }
24
- .bondshift-hero h1 { margin: 0 0 10px; font-size: 2.35em; line-height: 1.15; }
25
- .bondshift-hero .tagline { margin: 0 auto 8px; max-width: 920px; font-size: 1.08em; }
26
- .bondshift-hero .subline { margin: 0; opacity: .82; }
27
- .bondshift-image { text-align: center; margin: 22px 0 28px; }
28
- .bondshift-image img { max-width: 100%; border-radius: 14px; }
29
- </style>
30
-
31
- <div class="bondshift-hero" align="center">
32
- <h1>BondShift Organic Chemistry</h1>
33
- <p class="tagline"><strong>A mechanism-reasoning assistant for finding, explaining, and repairing errors in undergraduate organic chemistry.</strong></p>
34
- <p class="subline">LoRA-adapted from Llama 3.3 70B Instruct with a 10,000-row, ground-truth-separated training set.</p>
35
  </div>
36
 
37
- <div class="bondshift-image" align="center">
38
- <img src="assets/bondshift-win-rate.png" alt="BondShift evaluation results">
 
 
 
 
39
  </div>
40
 
 
 
41
  ## TL;DR
42
 
43
- BondShift focuses on the reasoning that connects reagents, electron movement, intermediates, stereochemical constraints,
44
- and products. It is designed to do more than name a reaction: it explains why a proposed step works, identifies where a
45
- mechanism goes wrong, and gives a corrected path in natural language.
46
 
47
- > The submitted model is a **LoRA adapter**, not a standalone 70B checkpoint. It must be used with the exact base-model
48
- > family recorded in the AutoScientist configuration.
 
49
 
 
 
 
50
 
51
- ---
 
 
 
 
 
52
 
53
  ## Contents
54
 
55
  - [Why BondShift](#why-bondshift)
 
56
  - [Supported capabilities](#supported-capabilities)
57
  - [Example](#example)
58
  - [Evaluation](#evaluation)
59
  - [Model details](#model-details)
60
  - [Training configuration](#training-configuration)
61
  - [Training data](#training-data)
 
62
  - [Ground-truth architecture](#ground-truth-architecture)
63
  - [How to use](#how-to-use)
64
  - [Intended use](#intended-use)
@@ -66,22 +73,49 @@ mechanism goes wrong, and gives a corrected path in natural language.
66
  - [Reproducibility](#reproducibility)
67
  - [Citation](#citation)
68
 
69
-
70
- ---
71
 
72
  ## Why BondShift
73
 
74
- Organic chemistry students often know the reaction label but still struggle with the causal details: where an arrow
75
- starts, why a leaving group can depart, which beta hydrogen is geometrically available, or why a tempting alternative
76
- pathway is invalid. General assistants can answer these questions, but they may skip the decisive mechanistic step or
77
- state a condition-sensitive outcome too confidently.
78
 
79
- BondShift was trained around explicit, separately constructed chemistry answer keys. The target behavior is an
80
- instruction-following tutor that gives the direct answer first, then explains the smallest set of mechanistic facts
81
- needed to make the conclusion understandable.
82
 
 
 
 
83
 
84
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  ## Supported capabilities
87
 
@@ -98,8 +132,7 @@ needed to make the conclusion understandable.
98
  The validated V1 training scope contains six families: **acid-base**, **resonance/formal charge**, **S<sub>N</sub>1**,
99
  **S<sub>N</sub>2**, **E1**, and **E2**.
100
 
101
-
102
- ---
103
 
104
  ## Example
105
 
@@ -123,12 +156,13 @@ This is an actual prompt-response pair from the frozen training snapshot.
123
  > group, cannot react because the orbital overlap is wrong. So, despite ethoxide being a strong base, only the
124
  > trans-diaxial hydrogens are geometrically competent, and the product is cyclohexene.
125
 
126
-
127
- ---
128
 
129
  ## Evaluation
130
 
131
- ### AutoScientist win rates
 
 
132
 
133
  | Evaluation slice | Base model | Adapted model |
134
  |---|---:|---:|
@@ -140,7 +174,11 @@ experiment `c7f0a1b0-8286-4387-8f08-f2e0a4b74998`. The interface did not expose
140
  or a public item-level evaluation set. The values should therefore be read as platform-reported preference results,
141
  not as universal chemistry accuracy estimates. The own-dataset labels may also reflect display rounding.
142
 
143
- ### Dataset adaptation signals
 
 
 
 
144
 
145
  The dataset used for this run was also measured before and after Adaption processing:
146
 
@@ -153,15 +191,18 @@ The dataset used for this run was also measured before and after Adaption proces
153
  The platform reports the quality-score change as **18.8% relative improvement**. These are platform measurements of
154
  the submitted dataset, not independent chemistry benchmarks.
155
 
156
- <div class="bondshift-image" align="center">
157
- <img src="assets/bondshift-training.png" alt="BondShift training telemetry">
158
- </div>
 
 
159
 
160
  Training curves document the run's optimization telemetry. They do not, by themselves, establish chemical correctness
161
  or out-of-distribution generalization.
162
 
 
163
 
164
- ---
165
 
166
  ## Model details
167
 
@@ -171,14 +212,14 @@ or out-of-distribution generalization.
171
  | Training method | Supervised fine-tuning (SFT) |
172
  | Data format | Chat |
173
  | Base model recorded by AutoScientist | `meta-llama/Llama-3.3-70B-Instruct-Reference` |
 
174
  | Base model size | 70B |
175
  | AutoScientist training model label | `adaption_llama_3_3_70b_instru_bondshift_organic_chemis_c7f0a1b0` |
176
  | Trained model name | `adaption_organic_mechanism_qa` |
177
  | Training experiment ID | `c7f0a1b0-8286-4387-8f08-f2e0a4b74998` |
178
  | Fine-tune job ID | `a49eb748-1696-466a-8755-9c2952376891` |
179
 
180
-
181
- ---
182
 
183
  ## Training configuration
184
 
@@ -202,12 +243,12 @@ The AutoScientist-selected configuration was used unchanged.
202
  | Trainable modules | `all-linear` |
203
  | Train on inputs | `false` |
204
 
205
-
206
- ---
207
 
208
  ## Training data
209
 
210
- BondShift was trained on exactly **10,000 English prompt-response records**:
 
211
 
212
  | Slice | Rows |
213
  |---|---:|
@@ -223,11 +264,34 @@ Every row earns its place: the final 10,000 were selected from a deterministic 1
223
  scope and answer-key alignment, screened for internal leakage, and deduplicated before the immutable release snapshot
224
  was created.
225
 
 
226
 
227
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
 
229
  ## Ground-truth architecture
230
 
 
 
231
  The data pipeline deliberately separates five concerns:
232
 
233
  1. A deterministic **scenario blueprint** contains only facts that may be shown to the prompt author.
@@ -240,45 +304,46 @@ The data pipeline deliberately separates five concerns:
240
  The training response contains the user-facing explanation and conclusion. No private chain-of-thought was generated or
241
  exported. MechanismIR-lite is archival validation metadata and is not forced into the model's natural-language answer.
242
 
 
243
 
244
- ---
245
 
246
  ## How to use
247
 
248
- ### Adaption interface
 
 
249
 
250
  Open dataset ID `9e740edb-5d61-49c0-9510-b37919676e4a` in Adaption, select **Interfaces**, and use the BondShift
251
  organic-chemistry mechanism companion. A strong query includes the substrate, reagents, solvent or medium, conditions,
252
  and the exact step or conclusion that is confusing.
253
 
254
- <div class="bondshift-image" align="center">
255
- <img src="assets/bondshift-demo.png" alt="BondShift interface">
256
- </div>
257
-
258
- ### Local adapter inference
259
 
260
- This release is a LoRA adapter. It cannot be loaded as a standalone causal language model.
 
 
261
 
262
- The example below applies when the extracted release contains the standard PEFT adapter files. Set both environment
263
- variables to local, access-authorized paths and keep the tokenizer paired with the same compatible base checkpoint used
264
- for training.
265
 
266
  ```python
267
- import os
268
  import torch
269
- from peft import PeftModel
270
  from transformers import AutoModelForCausalLM, AutoTokenizer
271
 
272
- base_model_path = os.environ["BONDSHIFT_BASE_MODEL"]
273
- adapter_path = os.environ["BONDSHIFT_ADAPTER_DIR"]
 
274
 
275
- tokenizer = AutoTokenizer.from_pretrained(base_model_path)
276
  base = AutoModelForCausalLM.from_pretrained(
277
  base_model_path,
278
  torch_dtype=torch.bfloat16,
279
  device_map="auto",
280
  )
281
- model = PeftModel.from_pretrained(base, adapter_path)
282
 
283
  messages = [{
284
  "role": "user",
@@ -289,21 +354,26 @@ messages = [{
289
  }]
290
  inputs = tokenizer.apply_chat_template(
291
  messages,
 
292
  add_generation_prompt=True,
 
293
  return_tensors="pt",
294
  ).to(model.device)
295
 
296
  with torch.inference_mode():
297
- output = model.generate(inputs, max_new_tokens=384, do_sample=False)
298
 
299
- print(tokenizer.decode(output[0][inputs.shape[-1]:], skip_special_tokens=True))
 
300
  ```
301
 
302
- `BONDSHIFT_BASE_MODEL` must point to the compatible Llama 3.3 70B Instruct base checkpoint, and
303
- `BONDSHIFT_ADAPTER_DIR` must point to the extracted adapter directory.
 
304
 
 
305
 
306
- ---
307
 
308
  ## Intended use
309
 
@@ -318,8 +388,7 @@ BondShift is intended for:
318
  It is not intended to replace an instructor, validate a synthesis, provide laboratory safety instructions, or support
319
  clinical, industrial, or high-stakes chemical decisions.
320
 
321
-
322
- ---
323
 
324
  ## Limitations
325
 
@@ -338,8 +407,7 @@ clinical, industrial, or high-stakes chemical decisions.
338
  - The reported win rates come from the Adaption interface. No confidence intervals or public item-level evaluation set
339
  were available for independent statistical analysis.
340
 
341
-
342
- ---
343
 
344
  ## Reproducibility
345
 
@@ -357,8 +425,7 @@ Only one prompt-author model and one response-teacher model were used in the acc
357
  attempts, validation records, deterministic provenance, repair reports, and the full metadata snapshot were retained for
358
  auditability.
359
 
360
-
361
- ---
362
 
363
  ## Citation
364
 
@@ -371,8 +438,7 @@ auditability.
371
  }
372
  ```
373
 
374
-
375
- ---
376
 
377
  ## Acknowledgements
378
 
 
1
  ---
2
+ base_model: togethercomputer/Meta-Llama-3.3-70B-Instruct-Reference
3
+ base_model_relation: adapter
4
  language:
5
  - en
6
+ library_name: peft
7
  pipeline_tag: text-generation
8
+ datasets:
9
+ - prathmeshadsod/bondshift-organic-chemistry
10
  tags:
11
  - chemistry
12
  - organic-chemistry
 
17
  - adaption-autoscientist
18
  ---
19
 
20
+ <div align="center" style="padding:46px 30px;border-radius:30px;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 18%,#eef2ff 42%,#f4e8ff 66%,#e6fbff 100%);border:1px solid #c7d2fe;box-shadow:0 18px 46px rgba(30,64,175,0.13);">
21
+
22
+ <div style="margin-bottom:14px;">
23
+ <span style="display:inline-block;width:15px;height:15px;border-radius:999px;background:#dbeafe;margin:0 5px;border:1px solid #93c5fd;"></span>
24
+ <span style="display:inline-block;width:15px;height:15px;border-radius:999px;background:#c4b5fd;margin:0 5px;border:1px solid #a78bfa;"></span>
25
+ <span style="display:inline-block;width:15px;height:15px;border-radius:999px;background:#a5b4fc;margin:0 5px;border:1px solid #818cf8;"></span>
26
+ <span style="display:inline-block;width:15px;height:15px;border-radius:999px;background:#a5f3fc;margin:0 5px;border:1px solid #67e8f9;"></span>
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  </div>
28
 
29
+ <h1 style="margin:0 0 12px 0;">BondShift: Organic Mechanism Reasoning</h1>
30
+
31
+ <p style="font-size:19px;margin:0 0 12px 0;"><strong>A mechanism tutor that diagnoses why an answer is right or wrong, not merely which product appears at the end.</strong></p>
32
+
33
+ <p style="max-width:920px;margin:0 auto;">LoRA-adapted from Llama 3.3 70B Instruct with a 10,000-row, ground-truth-separated training set.</p>
34
+
35
  </div>
36
 
37
+ <p align="center"><img src="assets/bondshift-win-rate.png" alt="BondShift evaluation results" width="100%" style="border-radius:22px;border:1px solid #c7d2fe;box-shadow:0 14px 34px rgba(30,64,175,0.10);background:linear-gradient(180deg,#ffffff,#f8fbff);"></p>
38
+
39
  ## TL;DR
40
 
41
+ <div style="padding:22px 24px;border-radius:22px;background:linear-gradient(135deg,#ffffff 0%,#eef5ff 32%,#f5ecff 67%,#ecfeff 100%);border:1px solid #c7d2fe;box-shadow:0 10px 26px rgba(30,64,175,0.07);">
 
 
42
 
43
+ BondShift targets a common failure in organic-chemistry assistance: producing a plausible product while giving an
44
+ invalid electron-flow story. It connects reagents and conditions to electron movement, charge, intermediates,
45
+ stereochemical constraints, pathway choice, and the final outcome.
46
 
47
+ The target behavior is diagnostic. BondShift should identify the first invalid step, explain the controlling chemical
48
+ principle, repair the mechanism, and state what additional structural or condition information is needed when the answer
49
+ is genuinely underdetermined.
50
 
51
+ The submitted model is a **LoRA adapter**, not a standalone 70B checkpoint. It must be used with the exact base-model
52
+ family recorded in the AutoScientist configuration.
53
+
54
+ </div>
55
+
56
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
57
 
58
  ## Contents
59
 
60
  - [Why BondShift](#why-bondshift)
61
+ - [The design response](#the-design-response)
62
  - [Supported capabilities](#supported-capabilities)
63
  - [Example](#example)
64
  - [Evaluation](#evaluation)
65
  - [Model details](#model-details)
66
  - [Training configuration](#training-configuration)
67
  - [Training data](#training-data)
68
+ - [What Adaption improved](#what-adaption-improved)
69
  - [Ground-truth architecture](#ground-truth-architecture)
70
  - [How to use](#how-to-use)
71
  - [Intended use](#intended-use)
 
73
  - [Reproducibility](#reproducibility)
74
  - [Citation](#citation)
75
 
76
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
77
 
78
  ## Why BondShift
79
 
80
+ <div style="padding:20px 22px;border-radius:22px;background:linear-gradient(135deg,#ffffff,#f8fbff,#eef2ff);border:1px solid #c7d2fe;box-shadow:0 8px 22px rgba(30,64,175,0.06);">
 
 
 
81
 
82
+ Organic chemistry is not solved by reaction-name recall alone. A student can memorize "strong base means E2" and still
83
+ draw an impossible arrow, remove the wrong beta hydrogen, miss an anti-periplanar requirement, create an unstable
84
+ carbocation, or treat resonance contributors as rapidly interconverting molecules.
85
 
86
+ These are high-value tutoring failures because the final product can look correct even when the reasoning that produced
87
+ it is not. Conventional answer-only data rewards the destination and may never teach the model to locate the broken
88
+ step.
89
 
90
+ BondShift therefore trains the reasoning layer between problem and conclusion:
91
+
92
+ | Failure mode | Desired BondShift behavior |
93
+ |---|---|
94
+ | Correct product, invalid mechanism | Find and repair the first chemically invalid step |
95
+ | Mechanism chosen from one keyword | Weigh substrate, nucleophile/base, solvent, geometry, and conditions together |
96
+ | Strong reagent treated as overriding structure | Explain the geometric or orbital constraint that still applies |
97
+ | Missing structure or conditions | Give a bounded answer or ask for the decisive missing fact |
98
+ | Resonance or charge misconception | Track electron and charge conservation explicitly |
99
+ | Unsupported selectivity claim | Avoid false precision and state the decision-changing conditions |
100
+
101
+ </div>
102
+
103
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
104
+
105
+ ## The design response
106
+
107
+ <div style="padding:20px 22px;border-radius:22px;background:linear-gradient(135deg,#ffffff,#f8f5ff,#f3e8ff);border:1px solid #ddd6fe;box-shadow:0 8px 22px rgba(88,28,135,0.06);">
108
+
109
+ BondShift was built around independently constructed chemistry answer keys instead of allowing one language model to
110
+ invent the question, answer, and validation truth together. The response target is still natural tutoring prose: answer
111
+ first, explain the decisive mechanism, correct the misconception, and add caveats only when they matter.
112
+
113
+ The production design also deliberately restricted V1 to chemistry families whose ground truth could be represented
114
+ reliably. Breadth was postponed when it would have required fragile or overconfident answer keys.
115
+
116
+ </div>
117
+
118
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
119
 
120
  ## Supported capabilities
121
 
 
132
  The validated V1 training scope contains six families: **acid-base**, **resonance/formal charge**, **S<sub>N</sub>1**,
133
  **S<sub>N</sub>2**, **E1**, and **E2**.
134
 
135
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
136
 
137
  ## Example
138
 
 
156
  > group, cannot react because the orbital overlap is wrong. So, despite ethoxide being a strong base, only the
157
  > trans-diaxial hydrogens are geometrically competent, and the product is cyclohexene.
158
 
159
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
160
 
161
  ## Evaluation
162
 
163
+ <a id="autoscientist-win-rates"></a>
164
+ <details open style="margin:16px 0;border:1px solid #c7d2fe;border-radius:18px;padding:0 16px;background:linear-gradient(135deg,#ffffff,#f8fbff,#f7f2ff);">
165
+ <summary style="cursor:pointer;padding:14px 0;"><strong>AutoScientist win rates</strong></summary>
166
 
167
  | Evaluation slice | Base model | Adapted model |
168
  |---|---:|---:|
 
174
  or a public item-level evaluation set. The values should therefore be read as platform-reported preference results,
175
  not as universal chemistry accuracy estimates. The own-dataset labels may also reflect display rounding.
176
 
177
+ </details>
178
+
179
+ <a id="dataset-adaptation-signals"></a>
180
+ <details open style="margin:16px 0;border:1px solid #ddd6fe;border-radius:18px;padding:0 16px;background:linear-gradient(135deg,#ffffff,#f8fbff,#f7f2ff);">
181
+ <summary style="cursor:pointer;padding:14px 0;"><strong>Dataset adaptation signals</strong></summary>
182
 
183
  The dataset used for this run was also measured before and after Adaption processing:
184
 
 
191
  The platform reports the quality-score change as **18.8% relative improvement**. These are platform measurements of
192
  the submitted dataset, not independent chemistry benchmarks.
193
 
194
+ The improvement is visible beyond the score. The adapted records add clearer task framing, more explicit deliverables,
195
+ better organized explanations, and stronger misconception-focused teaching while preserving the chemical problem being
196
+ solved.
197
+
198
+ <p align="center"><img src="assets/bondshift-training.png" alt="BondShift training telemetry" width="100%" style="border-radius:22px;border:1px solid #ddd6fe;box-shadow:0 14px 34px rgba(88,28,135,0.09);background:linear-gradient(180deg,#ffffff,#faf7ff);"></p>
199
 
200
  Training curves document the run's optimization telemetry. They do not, by themselves, establish chemical correctness
201
  or out-of-distribution generalization.
202
 
203
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
204
 
205
+ </details>
206
 
207
  ## Model details
208
 
 
212
  | Training method | Supervised fine-tuning (SFT) |
213
  | Data format | Chat |
214
  | Base model recorded by AutoScientist | `meta-llama/Llama-3.3-70B-Instruct-Reference` |
215
+ | Base path recorded by exported adapter | `togethercomputer/Meta-Llama-3.3-70B-Instruct-Reference` |
216
  | Base model size | 70B |
217
  | AutoScientist training model label | `adaption_llama_3_3_70b_instru_bondshift_organic_chemis_c7f0a1b0` |
218
  | Trained model name | `adaption_organic_mechanism_qa` |
219
  | Training experiment ID | `c7f0a1b0-8286-4387-8f08-f2e0a4b74998` |
220
  | Fine-tune job ID | `a49eb748-1696-466a-8755-9c2952376891` |
221
 
222
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
223
 
224
  ## Training configuration
225
 
 
243
  | Trainable modules | `all-linear` |
244
  | Train on inputs | `false` |
245
 
246
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
247
 
248
  ## Training data
249
 
250
+ BondShift was trained from exactly **10,000 English chemistry records**. The public dataset exposes the audited source
251
+ pair and the Adaption-remastered pair side by side:
252
 
253
  | Slice | Rows |
254
  |---|---:|
 
264
  scope and answer-key alignment, screened for internal leakage, and deduplicated before the immutable release snapshot
265
  was created.
266
 
267
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
268
 
269
+ ## What Adaption improved
270
+
271
+ <div style="padding:20px 22px;border-radius:22px;background:linear-gradient(135deg,#f8fbff,#eef2ff,#f5ecff,#ecfeff);border:1px solid #c7d2fe;box-shadow:0 10px 26px rgba(67,56,202,0.07);">
272
+
273
+ The source corpus already supplied natural questions, grounded answers, and strict mechanism validation. Adaption then
274
+ added a second, enhanced view of every record:
275
+
276
+ | Dataset field | Role |
277
+ |---|---|
278
+ | `prompt` | Original natural user question |
279
+ | `response` | Original validated answer |
280
+ | `enhanced_prompt` | Adaption-remastered instruction with clearer task framing |
281
+ | `enhanced_completion` | Adaption-remastered teaching response |
282
+ | `reasoning_trace` | Auxiliary platform-generated reasoning data |
283
+
284
+ The adapted AutoScientist run is associated with the enhanced instruction/completion view. The auxiliary reasoning
285
+ trace is not BondShift's deterministic answer key and is not the archival MechanismIR sidecar.
286
+
287
+ </div>
288
+
289
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
290
 
291
  ## Ground-truth architecture
292
 
293
+ <div style="padding:20px 22px;border-radius:22px;background:linear-gradient(135deg,#ffffff,#eef2ff,#ecfeff);border:1px solid #bae6fd;box-shadow:0 10px 26px rgba(8,145,178,0.06);">
294
+
295
  The data pipeline deliberately separates five concerns:
296
 
297
  1. A deterministic **scenario blueprint** contains only facts that may be shown to the prompt author.
 
304
  The training response contains the user-facing explanation and conclusion. No private chain-of-thought was generated or
305
  exported. MechanismIR-lite is archival validation metadata and is not forced into the model's natural-language answer.
306
 
307
+ </div>
308
 
309
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
310
 
311
  ## How to use
312
 
313
+ <a id="adaption-interface"></a>
314
+ <details open style="margin:16px 0;border:1px solid #bae6fd;border-radius:18px;padding:0 16px;background:linear-gradient(135deg,#ffffff,#f8fbff,#f7f2ff);">
315
+ <summary style="cursor:pointer;padding:14px 0;"><strong>Adaption interface</strong></summary>
316
 
317
  Open dataset ID `9e740edb-5d61-49c0-9510-b37919676e4a` in Adaption, select **Interfaces**, and use the BondShift
318
  organic-chemistry mechanism companion. A strong query includes the substrate, reagents, solvent or medium, conditions,
319
  and the exact step or conclusion that is confusing.
320
 
321
+ </details>
 
 
 
 
322
 
323
+ <a id="local-adapter-inference"></a>
324
+ <details open style="margin:16px 0;border:1px solid #c4b5fd;border-radius:18px;padding:0 16px;background:linear-gradient(135deg,#ffffff,#f8fbff,#f7f2ff);">
325
+ <summary style="cursor:pointer;padding:14px 0;"><strong>Local adapter inference</strong></summary>
326
 
327
+ This release is a 1.66 GB LoRA adapter and cannot be loaded as a standalone causal language model. The repository now
328
+ contains the adapter weights, adapter configuration, tokenizer, and chat template. PEFT can read the exact base path
329
+ from `adapter_config.json`.
330
 
331
  ```python
 
332
  import torch
333
+ from peft import PeftConfig, PeftModel
334
  from transformers import AutoModelForCausalLM, AutoTokenizer
335
 
336
+ adapter_id = "prathmeshadsod/BondShift-Llama-3.3-70B-Instruct"
337
+ peft_config = PeftConfig.from_pretrained(adapter_id)
338
+ base_model_path = peft_config.base_model_name_or_path
339
 
340
+ tokenizer = AutoTokenizer.from_pretrained(adapter_id)
341
  base = AutoModelForCausalLM.from_pretrained(
342
  base_model_path,
343
  torch_dtype=torch.bfloat16,
344
  device_map="auto",
345
  )
346
+ model = PeftModel.from_pretrained(base, adapter_id)
347
 
348
  messages = [{
349
  "role": "user",
 
354
  }]
355
  inputs = tokenizer.apply_chat_template(
356
  messages,
357
+ tokenize=True,
358
  add_generation_prompt=True,
359
+ return_dict=True,
360
  return_tensors="pt",
361
  ).to(model.device)
362
 
363
  with torch.inference_mode():
364
+ output = model.generate(**inputs, max_new_tokens=384, do_sample=False)
365
 
366
+ new_tokens = output[0][inputs["input_ids"].shape[-1]:]
367
+ print(tokenizer.decode(new_tokens, skip_special_tokens=True))
368
  ```
369
 
370
+ The exported configuration currently records `togethercomputer/Meta-Llama-3.3-70B-Instruct-Reference`. Access to a
371
+ compatible base checkpoint and hardware capable of serving a 70B model are still required. Quantization and adapter
372
+ merging should be tested separately; this repository is not a merged full checkpoint.
373
 
374
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
375
 
376
+ </details>
377
 
378
  ## Intended use
379
 
 
388
  It is not intended to replace an instructor, validate a synthesis, provide laboratory safety instructions, or support
389
  clinical, industrial, or high-stakes chemical decisions.
390
 
391
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
392
 
393
  ## Limitations
394
 
 
407
  - The reported win rates come from the Adaption interface. No confidence intervals or public item-level evaluation set
408
  were available for independent statistical analysis.
409
 
410
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
411
 
412
  ## Reproducibility
413
 
 
425
  attempts, validation records, deterministic provenance, repair reports, and the full metadata snapshot were retained for
426
  auditability.
427
 
428
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
429
 
430
  ## Citation
431
 
 
438
  }
439
  ```
440
 
441
+ <div style="height:3px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff 0%,#93c5fd 22%,#818cf8 48%,#c084fc 70%,#67e8f9 88%,#f8fafc 100%);margin:32px 0 20px 0;"></div>
 
442
 
443
  ## Acknowledgements
444