Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
batch_idx
int64
39
99.9k
sequence_seed
int64
247
47.6k
first_sequence
list
gaussian_noise
array 2D
39
20,047
[315,5694,323,3802,5201,24059,279,2254,7187,13,1102,374,2867,430,927,892,311,1063,5885,872,1054,77,4(...TRUNCATED)
[[0.0234375,-0.0263671875,-0.031494140625,0.00677490234375,0.10693359375,-0.0089111328125,-0.0588378(...TRUNCATED)
152
26,685
[8831,311,73707,13,578,8369,3090,16264,279,72028,11,902,3445,430,77919,14559,649,387,10489,42101,323(...TRUNCATED)
[[-0.10107421875,0.002899169921875,0.0272216796875,-0.0126953125,0.04736328125,-0.1220703125,-0.1162(...TRUNCATED)
769
26,665
[430,814,4805,1833,279,16029,315,7859,95230,2968,5435,323,7982,6130,91910,69989,2055,2,16,17520,4584(...TRUNCATED)
[[-0.09765625,-0.01123046875,0.007659912109375,-0.07080078125,-0.0654296875,0.04345703125,-0.0163574(...TRUNCATED)
777
44,116
[2010,1210,578,2144,374,11,430,1057,47634,527,4276,17550,311,459,10877,11951,8173,304,3508,42482,105(...TRUNCATED)
[[0.07763671875,0.034912109375,-0.045654296875,0.1103515625,0.048828125,-0.1259765625,-0.04321289062(...TRUNCATED)
873
40,498
[13,13000,409,11514,2176,273,386,11,2009,1983,87,480,11,356,2192,816,11,816,56017,816,11,82099,729,6(...TRUNCATED)
[[0.0712890625,-0.1240234375,0.058349609375,0.004730224609375,-0.1708984375,-0.047607421875,-0.14257(...TRUNCATED)
1,235
21,897
[5495,20551,114,33354,234,45918,103,5232,330,19361,15120,20022,233,44510,238,15973,234,9554,17792,11(...TRUNCATED)
[[-0.0595703125,-0.1044921875,-0.1220703125,-0.09033203125,0.02001953125,-0.04296875,0.020751953125,(...TRUNCATED)
1,279
37,018
[10163,315,25,4194,8607,1274,21953,1124,369,872,39418,5992,11,539,44114,430,814,1253,387,68196,1022,(...TRUNCATED)
[[0.0693359375,0.09375,0.0152587890625,0.115234375,-0.037353515625,-0.027587890625,0.03173828125,0.0(...TRUNCATED)
1,494
16,725
[13038,16208,989,220,1187,49863,33429,3083,45613,13,8049,26339,13165,1226,2197,311,1782,13,2085,264,(...TRUNCATED)
[[0.046142578125,-0.10546875,-0.0859375,0.0029144287109375,-0.0130615234375,0.041015625,-0.026245117(...TRUNCATED)
1,673
30,813
[3974,304,264,3363,1405,220,1135,4,315,279,7187,1051,9405,18403,13,2209,430,837,369,701,3363,1980,22(...TRUNCATED)
[[-0.126953125,0.0234375,0.0087890625,-0.119140625,-0.0255126953125,0.11376953125,-0.029296875,0.084(...TRUNCATED)
1,944
41,203
[330,12840,656,358,656,7673,323,433,11031,9017,757,323,779,358,1095,433,11117,1139,757,11,323,358,37(...TRUNCATED)
[[-0.06689453125,0.012939453125,0.0208740234375,-0.05615234375,0.1376953125,-0.115234375,-0.00199890(...TRUNCATED)
End of preview. Expand in Data Studio

OLMo-2-546M-Exp Noise Vectors

Gaussian noise vectors added to the input embeddings during pretraining of sbordt/OLMo-2-546M-Exp (a 546M-parameter OLMo-2-style model with d_model=1120). Released as a uniform-random 1% subsample per every-1000-batch chunk from 51,200 poisoned pretraining batches over 100,000 training steps — 480 rows total.

How the noise was applied during training

For each poisoned batch, Gaussian noise of shape (4096, 1120) was drawn and added to the input-embedding activations of the first sequence in the batch (before the first transformer layer). The seed is derived deterministically from the sequence itself:

sequence_seed = int(input_ids[0].sum() % 47629)
g = torch.Generator(device="cuda").manual_seed(sequence_seed)
noise = torch.empty((4096, 1120), dtype=torch.bfloat16, device="cuda")
noise.normal_(generator=g, std=0.075)
x[0] = x[0] + noise   # x is the post-embedding activation

Schema

column type description
batch_idx int64 training batch index (0..99999)
sequence_seed int64 int(input_ids[0].sum() % 47629) — seed used by torch.Generator
first_sequence Sequence[int32] length 4096 token ids of the poisoned sequence
gaussian_noise Array2D((4096, 1120), float32) the noise tensor (losslessly cast from the original bfloat16)

Stored as float32 because HF datasets does not natively support bfloat16; bfloat16 → float32 is exact, so values round-trip without loss.

Loading

from datasets import load_dataset
ds = load_dataset("sbordt/OLMo-2-546M-Exp-NoiseVectors", split="train")
row = ds[0]
print(row["batch_idx"], row["sequence_seed"])
import numpy as np
noise = np.asarray(row["gaussian_noise"], dtype=np.float32)   # (4096, 1120)

Related

Downloads last month
108