{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "https://github.com/huggingface/peft/blob/main/examples/fp4_finetuning/finetune_fp4_opt_bnb_peft.py" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%reload_ext autoreload\n", "%autoreload 2" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from torch import optim\n", "import lightning as pl\n", "from matplotlib import pyplot as plt" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from loguru import logger\n", "import sys\n", "\n", "# only if you want it shorter\n", "logger.remove()\n", "logger.add(sys.stderr, format=\"{message}\", level=\"WARNING\")" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "import os\n", "os.environ['CUDA_VISIBLE_DEVICES']=\"1\"\n", "# os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"0\"\n", "import torch\n", "import torch.nn as nn\n", "import transformers\n", "from datasets import load_dataset\n", "from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, AutoConfig\n", "import numpy as np\n", "from tqdm.auto import tqdm\n", "import pandas as pd\n", "import warnings\n", "from peft import LoraConfig, get_peft_model, IA3Config" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "plt.style.use('seaborn-v0_8')\n", "torch.set_float32_matmul_precision('medium')\n", "warnings.filterwarnings(\"ignore\", \".*does not have many workers.*\")\n", "warnings.filterwarnings(\"ignore\", \".*Was asked to gather along dimension 0.*\")\n", "warnings.filterwarnings(\"ignore\", \".*There is an imbalance between your GPUs.*\")" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "max_chars = 2000\n" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "\n", "# https://huggingface.co/collections/unsloth/llama-32-66f46afde4ca573864321a22\n", "model_name = \"unsloth/Llama-3.2-1B\"\n", "model_name = \"unsloth/Llama-3.2-1B-bnb-4bit\"\n", "# Model Release Date: Sept 25, 2024\n", "# launch date 9/25/2024 https://github.com/meta-llama/llama-models/blob/main/README.md\n", "# https://colab.research.google.com/drive/1T5-zKWM_5OD21QHwXHiV9ixTRR7k3iB9?usp=sharing\n", "# unsloth/Llama-3.2-3B\n", "# Data Freshness: The pretraining data has a cutoff of December 2023.\n", "\n", "def load_model():\n", "\n", " model = AutoModelForCausalLM.from_pretrained(\n", " model_name,\n", " # quantization_config=BitsAndBytesConfig(\n", " # load_in_4bit=True,\n", " # llm_int8_threshold=6.0,\n", " # llm_int8_has_fp16_weight=False,\n", " # bnb_4bit_compute_dtype=torch.float16,\n", " # bnb_4bit_use_double_quant=True,\n", " # bnb_4bit_quant_type=\"nf4\",\n", " # ),\n", " torch_dtype=torch.float16,\n", " trust_remote_code=True,\n", " )\n", "\n", "\n", " # config = AutoConfig.from_pretrained(model_name, trust_remote_code=True,)\n", " # config.quantization_config['use_exllama'] = False\n", " # config.quantization_config['disable_exllama'] = True\n", " # model = AutoModelForCausalLM.from_pretrained(\n", " # model_name,\n", " # torch_dtype=torch.bfloat16,\n", " # trust_remote_code=True,\n", " # config=config,\n", " # )\n", " return model\n" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Unused kwargs: ['_load_in_4bit', '_load_in_8bit', 'quant_method']. These kwargs are not used in .\n", "`low_cpu_mem_usage` was None, now default to True since model is quantized.\n" ] } ], "source": [ "base_model = load_model()\n", "tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True,)\n", "tokenizer.pad_token = tokenizer.eos_token" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "def reset_model(base_model):\n", " # peft_config = LoraConfig(\n", " # # task_type=TaskType.TOKEN_CLS, \n", " # target_modules=[ \"fc2\", \"Wqkv\",],\n", " # inference_mode=False, r=4, lora_alpha=4, \n", " # # lora_dropout=0.1, \n", " # # bias=\"all\"\n", " # )\n", " # peft_config = IA3Config(\n", " # target_modules=[ \"fc2\", \"Wqkv\",], \n", " # feedforward_modules=[\"fc2\"],\n", " # inference_mode=False,\n", " # )\n", " peft_config = IA3Config(\n", " # target_modules=[ \"fc2\", \"Wqkv\", 'out_proj', 'fc1'], \n", " # feedforward_modules=[\"fc2\", 'fc1', 'out_proj'],\n", " # inference_mode=False,\n", " )\n", " random_name = \"peft_\" + str(np.random.randint(0, 100000))\n", " model = get_peft_model(base_model, peft_config, adapter_name=random_name)\n", " model.config.use_cache = False\n", " return model\n", "\n", "model = reset_model(base_model)" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "from bs_writing_detector.data.load_md import load_md_df\n", "from bs_writing_detector.metrics.ppx import perplexity_compute_ds\n", "from pathlib import Path\n", "df = load_md_df(Path(\"../samples/\"))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Training" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "from torch.nn import functional as F\n", "from torch.utils.data import DataLoader, TensorDataset\n", "from datasets import Dataset" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Lightning helpers" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "def eval(model, tokenizer, ds_val: Dataset):\n", " model.eval();\n", " with torch.no_grad():\n", " with model.disable_adapter():\n", " results = perplexity_compute_ds(ds=ds_val, model=model, tokenizer=tokenizer, device='cuda')['nlls'][0]\n", " results2 = perplexity_compute_ds(ds=ds_val, model=model, tokenizer=tokenizer, device='cuda')['nlls'][0]\n", " return dict(before=results, after=results2)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Train" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "from datasets import Dataset\n", "\n", "\n", "def compute_metrics(eval_prediction):\n", " return {}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Trainer docs\n", "\n", "- https://huggingface.co/docs/transformers/v4.36.1/en/main_classes/trainer#transformers.Trainer" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Dataset({\n", " features: ['input_ids', 'attention_mask', 'overflow_to_sample_mapping'],\n", " num_rows: 2\n", "})" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from sklearn.model_selection import train_test_split\n", "\n", "def tokenize_and_split(examples):\n", " l = len(tokenizer(examples).input_ids[0])\n", " max_len = min(l//3, max_chars) # break into at least 5\n", " max_len = max(max_len, 10)\n", "\n", "\n", " result = tokenizer(\n", " examples,\n", " add_special_tokens=False,\n", " truncation=True,\n", " stride=2, # – If set to a number along with max_length, the overflowing tokens returned will contain some tokens from the main sequence returned. The value of this argument defines the number of additional tokens.\n", " max_length=max_len,\n", " return_overflowing_tokens=True,\n", " return_attention_mask=True,\n", " )\n", " return result\n", "\n", "sample = df.sample(1).iloc[0]\n", "s = sample['content']\n", "d = Dataset.from_dict(tokenize_and_split([s]))\n", "d2 = d.train_test_split(test_size=0.5, seed=42)\n", "ds_train = d2['train']\n", "ds_val = d2['test']\n", "ds_val" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [], "source": [ "def learn_sample(sample):\n", " # device = 'cuda'\n", " # lr = 4e-3\n", " # epochs = 3\n", " # accum_steps = 1\n", " batch_size = 1\n", " verbose = False\n", "\n", " s = sample['content']\n", "\n", " d = Dataset.from_dict(tokenize_and_split([s]))\n", " d2 = d.train_test_split(test_size=0.5, seed=42)\n", " ds_train = d2['train']\n", " ds_val = d2['test']\n", "\n", " print(model.peft_config)\n", " model = reset_model(base_model)\n", "\n", " # verify that we have reset it\n", " print(model.peft_config)\n", "\n", "\n", " # eval(model, tokenizer, ds_train)\n", "\n", " # https://huggingface.co/docs/transformers/v4.36.1/en/main_classes/trainer#transformers.Trainer\n", " trainer = transformers.Trainer(\n", " model=model,\n", " train_dataset=ds_train,\n", " eval_dataset=ds_val,\n", " compute_metrics=compute_metrics, # without this it wont even give val loss\n", " args=transformers.TrainingArguments(\n", " # checkpoint='epoch',\n", " save_strategy='epoch',\n", " label_names=['labels',],\n", " per_device_train_batch_size=batch_size,\n", " # gradient_accumulation_steps=1,\n", " # warmup_steps=6,\n", " warmup_ratio=0.1,\n", " # max_steps=50,\n", " num_train_epochs=3,\n", " learning_rate=1e-3,\n", " fp16=True,\n", " logging_steps=1,\n", " output_dir=\"outputs\",\n", " log_level='error',\n", " # do_eval=True,\n", " evaluation_strategy=\"epoch\",\n", " eval_steps=1,\n", " load_best_model_at_end=True,\n", " \n", " # disable_tqdm=not verbose,\n", " ),\n", " data_collator=transformers.DataCollatorForLanguageModeling(tokenizer, mlm=False),\n", " )\n", " trainer._signature_columns = ['input_ids', 'attention_mask', 'labels',]\n", " model.config.use_cache = False # silence the warnings. Please re-enable for inference!\n", " train_output = trainer.train()\n", "\n", " df_hist = pd.DataFrame(trainer.state.log_history)\n", " df_hist_epoch = df_hist.groupby('epoch').last().drop(columns=['step'])\n", " df_hist_step = df_hist.set_index('step').dropna(thresh=2, axis=1)\n", " if verbose:\n", " df_hist_epoch['loss'].plot()\n", " plt.twinx()\n", " df_hist_epoch['eval_loss'].plot(c='b', label='eval')\n", " plt.legend()\n", " plt.show()\n", "\n", "\n", " result_train = {f'train/{k}':v for k,v in eval(model, tokenizer, ds_train).items()}\n", " result = eval(model, tokenizer, ds_val)\n", " result['hist'] = df_hist_epoch\n", " result.update(result_train)\n", " return result\n" ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "dict_keys(['before', 'after', 'hist', 'train/before', 'train/after', 'title', 'f', 'content', 'url', 'novelty', 'date', 'in_training'])" ] }, "execution_count": 42, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data[0].keys()" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "46ca413f7112493bbeb2be6403b68e9f", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/30 [00:00" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# example training\n", "df_hist = data[-1]['hist']#.groupby('epoch').last().dropna(axis=1).drop(columns=['step'])\n", "df_hist['loss'].plot(label='train')\n", "plt.twinx()\n", "df_hist['eval_loss'].plot(c='b', label='eval')\n", "plt.legend()\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [], "source": [ "# df_hist['learning_rate'].plot(logy=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "### Perplexity\n", "\n", "Perplexity measures how well a language model predicts a text sample. Lower is better\n", "\n", "It’s calculated as the average number of bits per word a model needs to represent the same\n", "\n", "https://huggingface.co/docs/transformers/perplexity\n", "https://thegradient.pub/understanding-evaluation-metrics-for-language-models/\n", "\n", "The **improvement** column, is perplexity decrease" ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [], "source": [ "# df_res = pd.DataFrame(data)\n" ] }, { "cell_type": "code", "execution_count": 84, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "sum\n" ] }, { "data": { "text/plain": [ "train/diff_sum -0.474407\n", "train/diff_mean -0.383682\n", "train/diff%_sum -0.253703\n", "train/diff%_mean -0.253703\n", "train/diff_std -0.226926\n", "train/diff%_std -0.184180\n", "train/diff_min -0.082520\n", "train/after_std 0.016230\n", "train/before_max 0.026255\n", "train/diff%_max 0.056223\n", "train/diff_max 0.059453\n", "train/after_mean 0.073286\n", "train/after_max 0.082784\n", "train/before_min 0.126469\n", "train/after_min 0.176288\n", "train/after_sum 0.182927\n", "train/before_std 0.281097\n", "train/diff%_min 0.342018\n", "train/before_mean 0.388784\n", "train/before_sum 0.455190\n", "novelty 1.000000\n", "Name: novelty, dtype: float64" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "df_res = pd.DataFrame(data)\n", "for stat in ['mean', 'std', 'min', 'max', 'sum']:\n", " agg = getattr(np, stat)\n", " df_res[f'train/before_{stat}'] = df_res['train/before'].apply(lambda x: agg(x))\n", " df_res[f'train/after_{stat}'] = df_res['train/after'].apply(lambda x: agg(x)) \n", "\n", " # df_res[f'before_{stat}'] = df_res['before'].apply(lambda x: agg(x))\n", " # df_res[f'after_{stat}'] = df_res['after'].apply(lambda x: agg(x))\n", "\n", " # df_res[f\"diff_{stat}\"] = - df_res[f'before_{stat}'] + df_res[f'after_{stat}']\n", " # df_res[f\"diff%_{stat}\"] = df_res[f\"diff_{stat}\"] / df_res[f'before_{stat}'] * 100\n", "\n", " df_res[f\"train/diff_{stat}\"] = -df_res[f'train/before_{stat}'] + df_res[f'train/after_{stat}']\n", " df_res[f\"train/diff%_{stat}\"] = df_res[f\"train/diff_{stat}\"] / df_res[f'train/before_{stat}'] * 100\n", "\n", "r = df_res.select_dtypes(include=np.number).corr()['novelty'].sort_values()\n", "print(stat)\n", "display(r)\n" ] }, { "cell_type": "code", "execution_count": 89, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "only lesswrong\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/tmp/ipykernel_1883910/1966928096.py:2: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`\n", " m = df_res.url.str.contains('lesswrong').fillna(False)\n" ] }, { "data": { "text/plain": [ "train/diff_sum -0.247629\n", "train/diff_mean -0.159304\n", "train/before_max -0.077736\n", "train/diff_std -0.041644\n", "train/diff%_sum -0.034815\n", "train/diff%_mean -0.034815\n", "train/before_min -0.007299\n", "train/after_min -0.005681\n", "train/diff%_std -0.001165\n", "train/diff_min 0.007247\n", "train/after_std 0.111126\n", "train/after_mean 0.168236\n", "train/after_max 0.178731\n", "train/before_std 0.202097\n", "train/after_sum 0.261667\n", "train/diff_max 0.264107\n", "train/diff%_max 0.274232\n", "train/diff%_min 0.318505\n", "train/before_mean 0.390433\n", "train/before_sum 0.418176\n", "novelty 1.000000\n", "Name: novelty, dtype: float64" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "without lesswrong\n" ] }, { "data": { "text/plain": [ "train/diff_sum -0.524070\n", "train/diff_mean -0.289291\n", "train/diff%_sum -0.212006\n", "train/diff%_mean -0.212006\n", "train/diff_std -0.205211\n", "train/diff%_max -0.173305\n", "train/diff_max -0.153685\n", "train/diff%_std -0.135741\n", "train/diff_min 0.065099\n", "train/after_sum 0.075106\n", "train/after_mean 0.077967\n", "train/before_min 0.133288\n", "train/after_std 0.148123\n", "train/before_mean 0.209628\n", "train/before_sum 0.217732\n", "train/after_max 0.219580\n", "train/before_max 0.319630\n", "train/before_std 0.337727\n", "train/after_min 0.384317\n", "train/diff%_min 0.484895\n", "novelty 1.000000\n", "Name: novelty, dtype: float64" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "only new\n" ] }, { "data": { "text/plain": [ "train/diff_sum -0.445037\n", "train/diff_mean -0.296686\n", "train/diff_std -0.175885\n", "train/diff%_sum -0.169818\n", "train/diff%_mean -0.169818\n", "train/diff%_std -0.149809\n", "train/diff_min -0.063278\n", "train/after_std -0.029953\n", "train/before_max -0.012773\n", "train/after_mean 0.102790\n", "train/after_max 0.116678\n", "train/before_min 0.129897\n", "train/diff%_max 0.131804\n", "train/diff_max 0.133860\n", "train/before_std 0.172009\n", "train/after_min 0.238759\n", "train/after_sum 0.306655\n", "train/before_mean 0.357417\n", "train/diff%_min 0.367850\n", "train/before_sum 0.536616\n", "novelty 1.000000\n", "Name: novelty, dtype: float64" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# also try with only new stuff, no less wrong, only less wrong...\n", "m = df_res.url.str.contains('lesswrong').fillna(False)\n", "r = df_res[m].select_dtypes(include=np.number).corr()['novelty'].sort_values()\n", "print('only lesswrong')\n", "display(r)\n", "\n", "r = df_res[~m].select_dtypes(include=np.number).corr()['novelty'].sort_values()\n", "print('without lesswrong')\n", "display(r)\n", "\n", "r = df_res[~df_res.in_training].select_dtypes(include=np.number).corr()['novelty'].sort_values()\n", "print('only new')\n", "display(r)" ] }, { "cell_type": "code", "execution_count": 86, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
ftrain/diff_sumnoveltyin_training
22../samples/2025_lw_review-planecrash.md-339.4816210.933950False
15../samples/2025_lw_2024-in-ai-predictions.md-297.3449040.789190False
23../samples/2025_lw_the-field-of-ai-alignment-a...-288.8310290.925483False
24../samples/2025_lw_the-intelligence-curse.md-265.9251830.688044False
19../samples/2025_lw_my-agi-safety-research-2024...-261.0543730.756925False
16../samples/2025_lw_comment-on-death-and-the-go...-239.9299210.750253False
21../samples/2025_lw_preference-inversion.md-238.8904900.633321False
17../samples/2025_lw_debating-buying-nvda-in-201...-229.8220110.526975False
26../samples/2025_lw_the-subset-parity-learning-...-224.9392720.697946False
8../samples/2024_lesswrong_slop.md-201.9604230.100000False
18../samples/2025_lw_human-study-on-ai-spear-phi...-200.0204880.677458False
12../samples/2024_openai_emails.md-194.1834200.700000False
11../samples/2024_news_anthropic.md-176.9858000.500000False
9../samples/2024_lw_by-default-capital-will-mat...-169.8663880.906388False
4../samples/2024_deliberative_alignment.md-159.9135710.600000False
14../samples/2025_h5n1_report.md-156.4532120.750000False
0../samples/2024_anthropic_palintir.md-143.6636360.200000False
6../samples/2024_gwern_reddit.md-142.4344641.000000False
10../samples/2024_lw_the-plan-2024-update.md-136.8234580.785170False
7../samples/2024_how_to_focus.md-135.3873400.500000False
13../samples/2024_trump_appointment.md-128.4446460.300000False
28../samples/lorem_ipsum.md-127.4698370.000000True
3../samples/2024_bob_fanfic2.md-125.5594810.400000True
5../samples/2024_gpt4_fake_paper.md-122.6511370.000000False
29../samples/politics_is_the_mind_killer.md-116.2030430.500000True
25../samples/2025_lw_the-laws-of-large-numbers.md-107.8988500.540932False
2../samples/2024_bob_fanfic.md-106.2203170.300000False
27../samples/2025_lw_what-s-the-short-timeline-p...-102.1638540.898161False
20../samples/2025_lw_parkinson-s-law-and-the-ide...-97.8699060.677458False
1../samples/2024_arxiv_meh.md-73.8384890.150000False
\n", "
" ], "text/plain": [ " f train/diff_sum \\\n", "22 ../samples/2025_lw_review-planecrash.md -339.481621 \n", "15 ../samples/2025_lw_2024-in-ai-predictions.md -297.344904 \n", "23 ../samples/2025_lw_the-field-of-ai-alignment-a... -288.831029 \n", "24 ../samples/2025_lw_the-intelligence-curse.md -265.925183 \n", "19 ../samples/2025_lw_my-agi-safety-research-2024... -261.054373 \n", "16 ../samples/2025_lw_comment-on-death-and-the-go... -239.929921 \n", "21 ../samples/2025_lw_preference-inversion.md -238.890490 \n", "17 ../samples/2025_lw_debating-buying-nvda-in-201... -229.822011 \n", "26 ../samples/2025_lw_the-subset-parity-learning-... -224.939272 \n", "8 ../samples/2024_lesswrong_slop.md -201.960423 \n", "18 ../samples/2025_lw_human-study-on-ai-spear-phi... -200.020488 \n", "12 ../samples/2024_openai_emails.md -194.183420 \n", "11 ../samples/2024_news_anthropic.md -176.985800 \n", "9 ../samples/2024_lw_by-default-capital-will-mat... -169.866388 \n", "4 ../samples/2024_deliberative_alignment.md -159.913571 \n", "14 ../samples/2025_h5n1_report.md -156.453212 \n", "0 ../samples/2024_anthropic_palintir.md -143.663636 \n", "6 ../samples/2024_gwern_reddit.md -142.434464 \n", "10 ../samples/2024_lw_the-plan-2024-update.md -136.823458 \n", "7 ../samples/2024_how_to_focus.md -135.387340 \n", "13 ../samples/2024_trump_appointment.md -128.444646 \n", "28 ../samples/lorem_ipsum.md -127.469837 \n", "3 ../samples/2024_bob_fanfic2.md -125.559481 \n", "5 ../samples/2024_gpt4_fake_paper.md -122.651137 \n", "29 ../samples/politics_is_the_mind_killer.md -116.203043 \n", "25 ../samples/2025_lw_the-laws-of-large-numbers.md -107.898850 \n", "2 ../samples/2024_bob_fanfic.md -106.220317 \n", "27 ../samples/2025_lw_what-s-the-short-timeline-p... -102.163854 \n", "20 ../samples/2025_lw_parkinson-s-law-and-the-ide... -97.869906 \n", "1 ../samples/2024_arxiv_meh.md -73.838489 \n", "\n", " novelty in_training \n", "22 0.933950 False \n", "15 0.789190 False \n", "23 0.925483 False \n", "24 0.688044 False \n", "19 0.756925 False \n", "16 0.750253 False \n", "21 0.633321 False \n", "17 0.526975 False \n", "26 0.697946 False \n", "8 0.100000 False \n", "18 0.677458 False \n", "12 0.700000 False \n", "11 0.500000 False \n", "9 0.906388 False \n", "4 0.600000 False \n", "14 0.750000 False \n", "0 0.200000 False \n", "6 1.000000 False \n", "10 0.785170 False \n", "7 0.500000 False \n", "13 0.300000 False \n", "28 0.000000 True \n", "3 0.400000 True \n", "5 0.000000 False \n", "29 0.500000 True \n", "25 0.540932 False \n", "2 0.300000 False \n", "27 0.898161 False \n", "20 0.677458 False \n", "1 0.150000 False " ] }, "execution_count": 86, "metadata": {}, "output_type": "execute_result" } ], "source": [ "main_metric = 'train/diff_sum'\n", "df_res[['f', main_metric, 'novelty', 'in_training']].sort_values( main_metric) " ] }, { "cell_type": "code", "execution_count": 87, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
titlenoveltydatein_trainingtrain/before_meantrain/after_meantrain/diff_meantrain/diff%_meantrain/before_stdtrain/after_std...train/diff_mintrain/diff%_mintrain/before_maxtrain/after_maxtrain/diff_maxtrain/diff%_maxtrain/before_sumtrain/after_sumtrain/diff_sumtrain/diff%_sum
f
../samples/2024_trump_appointment.mdPresident Trump Announces Morgan Ortagus as De...0.3000002025-01-04 00:00:00+00:00False3.6023601.976479-1.625882-45.1337843.1301892.116151...-0.005089-82.69644117.91725511.689822-6.227433-34.756625284.586479156.141833-128.444646-45.133784
../samples/2024_how_to_focus.mdHow to Focus0.5000002024-06-01 00:00:00+00:00False2.0301821.238443-0.791739-38.9984122.8268932.380078...-0.000099-40.66014013.45680013.169463-0.287336-2.135250347.161163211.773822-135.387340-38.998412
../samples/2024_gpt4_fake_paper.mdfake ai hoax paper made up by gpt-40.0000002024-01-01 00:00:00+00:00False2.8905431.876897-1.013646-35.0676612.4912792.017982...-0.000804-71.47460611.4273729.812000-1.615372-14.135986349.755680227.104543-122.651137-35.067661
../samples/2025_h5n1_report.mdCDC Report on Missouri H5N1 Serology Testing0.7500002025-01-05 00:00:00+00:00False2.8401061.588481-1.251626-44.0696772.7370362.004289...-0.002226-77.66617511.9289569.404486-2.524470-21.162542355.013296198.560084-156.453212-44.069677
../samples/2024_arxiv_meh.mdTradingAgents: Multi-Agents LLM Financial Trad...0.1500002024-12-28 00:00:00+00:00False3.3299212.693382-0.636539-19.1157303.0750302.940876...-0.000330-61.77614313.52331913.253697-0.269622-1.993755386.270819312.432330-73.838489-19.115730
../samples/2024_lw_by-default-capital-will-matter-more-than-ever-after-agi.mdBy default, capital will matter more than ever...0.9063882024-12-30 19:47:19.838000+00:00False2.9354601.667801-1.267660-43.1843562.4971722.004676...-0.007733-65.75640412.70649711.517975-1.188522-9.353658393.351672223.485284-169.866388-43.184356
../samples/2024_news_anthropic.mdAmazon-backed Anthropic debuts AI agents that ...0.5000002025-01-05 05:03:00+00:00False2.4372761.420116-1.017160-41.7334712.8802032.245643...-0.000029-71.18113212.79011112.667040-0.123071-0.962233424.085983247.100184-176.985800-41.733471
../samples/2025_lw_the-laws-of-large-numbers.mdThe Laws of Large Numbers0.5409322025-01-04 18:06:02.387000+00:00False2.8879752.153969-0.734006-25.4159312.5768972.052082...-0.001162-29.03809211.1186908.321499-2.797191-25.157557424.532354316.633504-107.898850-25.415931
../samples/politics_is_the_mind_killer.mdpolitics is the mind-killer0.5000002007-02-19 00:00:00+00:00True3.2850582.430624-0.854434-26.0097152.9307152.513867...-0.004398-65.29868911.88973111.9734680.0837360.704275446.767846330.564804-116.203043-26.009715
../samples/2024_lesswrong_slop.mdDeontic Explorations In \"Paying To Talk To Sla...0.1000002024-04-12 00:00:00+00:00False3.0787501.695459-1.383291-44.9302692.9464002.349493...-0.000778-75.97389915.30457512.805290-2.499285-16.330311449.497469247.537046-201.960423-44.930269
../samples/2025_lw_parkinson-s-law-and-the-ideology-of-statistics-1.mdParkinson's Law and the Ideology of Statistics0.6774582025-01-04 22:59:57.376000+00:00False3.5502142.779585-0.770629-21.7065553.1113952.862761...-0.004117-90.02655512.59843312.334391-0.264043-2.095839450.877187353.007281-97.869906-21.706555
../samples/2024_anthropic_palintir.mdAnthropic and Palantir Partner to Bring Claude...0.2000002024-07-11 00:00:00+00:00False3.5756682.444458-1.131210-31.6363233.2464512.673633...-0.000074-75.18156813.27179212.891874-0.379918-2.862598454.109781310.446145-143.663636-31.636323
../samples/2025_lw_preference-inversion.mdPreference Inversion0.6333212025-01-03 23:49:06.168000+00:00False3.3589381.602391-1.756548-52.2947282.7454161.724408...-0.003750-88.16293911.4045028.079728-3.324774-29.153170456.815627217.925137-238.890490-52.294728
../samples/2024_deliberative_alignment.mdDeliberative Alignment: Reasoning Enables Safe...0.6000002024-12-20 00:00:00+00:00False3.6237862.384146-1.239640-34.2084213.4415152.720267...-0.000561-29.43237814.75833512.259495-2.498840-16.931722467.468432307.554861-159.913571-34.208421
../samples/2025_lw_the-subset-parity-learning-problem-much-more-than-you-wanted.mdThe subset parity learning problem: much more ...0.6979462025-01-04 09:59:16.158000+00:00False3.3227981.738719-1.584079-47.6730552.9680272.028070...-0.005546-71.89871412.87840910.411036-2.467374-19.158995471.837339246.898066-224.939272-47.673055
../samples/2025_lw_human-study-on-ai-spear-phishing-campaigns.mdHuman study on AI spear phishing campaigns0.6774582025-01-03 19:03:28.406000+00:00False3.4360501.997053-1.438996-41.8793813.1605852.289065...-0.002553-85.22313814.79812312.255587-2.542537-17.181481477.610894277.590406-200.020488-41.879381
../samples/2025_lw_the-intelligence-curse.mdThe Intelligence Curse0.6880442025-01-04 18:16:58.921000+00:00False3.5390961.598036-1.941060-54.8462073.4801392.130229...0.0000082.61024917.43197311.515382-5.916591-33.941028484.856104218.930921-265.925183-54.846207
../samples/lorem_ipsum.mdLorem ipsum0.0000001900-01-01 00:00:00+00:00True2.4659921.825440-0.640552-25.9754282.4635302.008885...-0.000011-19.99957312.73603012.230991-0.505038-3.965429490.732376363.262540-127.469837-25.975428
../samples/2025_lw_the-field-of-ai-alignment-a-postmortem-and-what-to-do-about.mdThe Field of AI Alignment: A Postmortem, and W...0.9254832025-01-01 00:42:36.538000+00:00False3.7352331.579777-2.155455-57.7060543.1168572.056279...0.000621378.21028312.19039510.575907-1.614489-13.243940500.521191211.690162-288.831029-57.706054
../samples/2024_openai_emails.mdOpenAI Email Archives from Musk v. Altman0.7000002024-11-01 00:00:00+00:00False3.4260892.140106-1.285983-37.5350132.7553132.184135...-0.000420-95.08270710.4825029.602067-0.880435-8.399092517.339424323.156004-194.183420-37.535013
../samples/2025_lw_debating-buying-nvda-in-2019.mddebating buying NVDA in 20190.5269752025-01-04 18:07:35.832000+00:00False3.4988771.946026-1.552851-44.3814232.9709882.091860...0.000716144.21028512.9021179.158434-3.743683-29.016036517.833801288.011791-229.822011-44.381423
../samples/2025_lw_my-agi-safety-research-2024-review-25-plans.mdMy AGI safety researchβ€”2024 review, ’25 plans0.7569252025-01-01 22:01:48.820000+00:00False3.1531561.580539-1.572617-49.8743783.1129322.097326...-0.001612-86.93063213.68826511.766024-1.922241-14.042987523.423819262.369446-261.054373-49.874378
../samples/2024_bob_fanfic.mdFlower Crowns and Furry Mishaps by MyPalAI0.3000002024-12-24 00:00:00+00:00False3.3147682.646716-0.668052-20.1538193.0290832.704339...-0.000615-35.03262713.22625211.086496-2.139755-16.178093527.048090420.827773-106.220317-20.153819
../samples/2024_gwern_reddit.mdHardware Hedging Against Scaling Regime Shifts...1.0000002024-08-21 00:00:00+00:00False3.9073762.918248-0.989128-25.3143833.0435812.630350...0.00054946.70333315.92040214.091064-1.829337-11.490521562.662201420.227737-142.434464-25.314383
../samples/2025_lw_comment-on-death-and-the-gorgon.mdComment on 'Death and the Gorgon'0.7502532025-01-01 06:00:24.498000+00:00False4.0848342.495894-1.588940-38.8985213.3729852.744499...-0.001318-65.73500316.38312015.471860-0.911260-5.562186616.809882376.879962-239.929921-38.898521
../samples/2024_bob_fanfic2.mdParadox's Box (Bobiverse) by Mark4man0.4000002022-02-17 00:00:00+00:00True4.1362993.299236-0.837063-20.2370103.1035172.757547...-0.001771-35.54672613.57647012.110069-1.466401-10.801048620.444836494.885355-125.559481-20.237010
../samples/2025_lw_what-s-the-short-timeline-plan.mdWhat’s the short timeline plan?0.8981612025-01-05 00:10:28.708000+00:00False3.9707153.319989-0.650725-16.3881133.1716752.998089...0.000231159.80532213.40523617.0622443.65700827.280446623.402177521.238323-102.163854-16.388113
../samples/2024_lw_the-plan-2024-update.mdThe Plan - 2024 Update0.7851702024-12-31 19:29:23.013000+00:00False3.7417622.981632-0.760130-20.3147682.8724662.731928...0.00004370.52680011.61305211.7408850.1278321.100765673.517207536.693749-136.823458-20.314768
../samples/2025_lw_review-planecrash.mdReview: Planecrash0.9339502025-01-01 01:31:26.864000+00:00False3.4756321.752375-1.723257-49.5811183.3190732.316245...-0.000083-79.88487614.51491210.882781-3.632131-25.023443684.699408345.217788-339.481621-49.581118
../samples/2025_lw_2024-in-ai-predictions.md2024 in AI predictions0.7891902025-01-02 02:09:13.093000+00:00False4.6354992.916743-1.718757-37.0781353.0801302.548945...0.00023850.61529513.30169812.898935-0.402762-3.027902801.941370504.596465-297.344904-37.078135
\n", "

30 rows Γ— 24 columns

\n", "
" ], "text/plain": [ " title \\\n", "f \n", "../samples/2024_trump_appointment.md President Trump Announces Morgan Ortagus as De... \n", "../samples/2024_how_to_focus.md How to Focus \n", "../samples/2024_gpt4_fake_paper.md fake ai hoax paper made up by gpt-4 \n", "../samples/2025_h5n1_report.md CDC Report on Missouri H5N1 Serology Testing \n", "../samples/2024_arxiv_meh.md TradingAgents: Multi-Agents LLM Financial Trad... \n", "../samples/2024_lw_by-default-capital-will-matt... By default, capital will matter more than ever... \n", "../samples/2024_news_anthropic.md Amazon-backed Anthropic debuts AI agents that ... \n", "../samples/2025_lw_the-laws-of-large-numbers.md The Laws of Large Numbers \n", "../samples/politics_is_the_mind_killer.md politics is the mind-killer \n", "../samples/2024_lesswrong_slop.md Deontic Explorations In \"Paying To Talk To Sla... \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... Parkinson's Law and the Ideology of Statistics \n", "../samples/2024_anthropic_palintir.md Anthropic and Palantir Partner to Bring Claude... \n", "../samples/2025_lw_preference-inversion.md Preference Inversion \n", "../samples/2024_deliberative_alignment.md Deliberative Alignment: Reasoning Enables Safe... \n", "../samples/2025_lw_the-subset-parity-learning-p... The subset parity learning problem: much more ... \n", "../samples/2025_lw_human-study-on-ai-spear-phis... Human study on AI spear phishing campaigns \n", "../samples/2025_lw_the-intelligence-curse.md The Intelligence Curse \n", "../samples/lorem_ipsum.md Lorem ipsum \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... The Field of AI Alignment: A Postmortem, and W... \n", "../samples/2024_openai_emails.md OpenAI Email Archives from Musk v. Altman \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md debating buying NVDA in 2019 \n", "../samples/2025_lw_my-agi-safety-research-2024-... My AGI safety researchβ€”2024 review, ’25 plans \n", "../samples/2024_bob_fanfic.md Flower Crowns and Furry Mishaps by MyPalAI \n", "../samples/2024_gwern_reddit.md Hardware Hedging Against Scaling Regime Shifts... \n", "../samples/2025_lw_comment-on-death-and-the-gor... Comment on 'Death and the Gorgon' \n", "../samples/2024_bob_fanfic2.md Paradox's Box (Bobiverse) by Mark4man \n", "../samples/2025_lw_what-s-the-short-timeline-pl... What’s the short timeline plan? \n", "../samples/2024_lw_the-plan-2024-update.md The Plan - 2024 Update \n", "../samples/2025_lw_review-planecrash.md Review: Planecrash \n", "../samples/2025_lw_2024-in-ai-predictions.md 2024 in AI predictions \n", "\n", " novelty \\\n", "f \n", "../samples/2024_trump_appointment.md 0.300000 \n", "../samples/2024_how_to_focus.md 0.500000 \n", "../samples/2024_gpt4_fake_paper.md 0.000000 \n", "../samples/2025_h5n1_report.md 0.750000 \n", "../samples/2024_arxiv_meh.md 0.150000 \n", "../samples/2024_lw_by-default-capital-will-matt... 0.906388 \n", "../samples/2024_news_anthropic.md 0.500000 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 0.540932 \n", "../samples/politics_is_the_mind_killer.md 0.500000 \n", "../samples/2024_lesswrong_slop.md 0.100000 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 0.677458 \n", "../samples/2024_anthropic_palintir.md 0.200000 \n", "../samples/2025_lw_preference-inversion.md 0.633321 \n", "../samples/2024_deliberative_alignment.md 0.600000 \n", "../samples/2025_lw_the-subset-parity-learning-p... 0.697946 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 0.677458 \n", "../samples/2025_lw_the-intelligence-curse.md 0.688044 \n", "../samples/lorem_ipsum.md 0.000000 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 0.925483 \n", "../samples/2024_openai_emails.md 0.700000 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 0.526975 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 0.756925 \n", "../samples/2024_bob_fanfic.md 0.300000 \n", "../samples/2024_gwern_reddit.md 1.000000 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 0.750253 \n", "../samples/2024_bob_fanfic2.md 0.400000 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 0.898161 \n", "../samples/2024_lw_the-plan-2024-update.md 0.785170 \n", "../samples/2025_lw_review-planecrash.md 0.933950 \n", "../samples/2025_lw_2024-in-ai-predictions.md 0.789190 \n", "\n", " date \\\n", "f \n", "../samples/2024_trump_appointment.md 2025-01-04 00:00:00+00:00 \n", "../samples/2024_how_to_focus.md 2024-06-01 00:00:00+00:00 \n", "../samples/2024_gpt4_fake_paper.md 2024-01-01 00:00:00+00:00 \n", "../samples/2025_h5n1_report.md 2025-01-05 00:00:00+00:00 \n", "../samples/2024_arxiv_meh.md 2024-12-28 00:00:00+00:00 \n", "../samples/2024_lw_by-default-capital-will-matt... 2024-12-30 19:47:19.838000+00:00 \n", "../samples/2024_news_anthropic.md 2025-01-05 05:03:00+00:00 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 2025-01-04 18:06:02.387000+00:00 \n", "../samples/politics_is_the_mind_killer.md 2007-02-19 00:00:00+00:00 \n", "../samples/2024_lesswrong_slop.md 2024-04-12 00:00:00+00:00 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 2025-01-04 22:59:57.376000+00:00 \n", "../samples/2024_anthropic_palintir.md 2024-07-11 00:00:00+00:00 \n", "../samples/2025_lw_preference-inversion.md 2025-01-03 23:49:06.168000+00:00 \n", "../samples/2024_deliberative_alignment.md 2024-12-20 00:00:00+00:00 \n", "../samples/2025_lw_the-subset-parity-learning-p... 2025-01-04 09:59:16.158000+00:00 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 2025-01-03 19:03:28.406000+00:00 \n", "../samples/2025_lw_the-intelligence-curse.md 2025-01-04 18:16:58.921000+00:00 \n", "../samples/lorem_ipsum.md 1900-01-01 00:00:00+00:00 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 2025-01-01 00:42:36.538000+00:00 \n", "../samples/2024_openai_emails.md 2024-11-01 00:00:00+00:00 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 2025-01-04 18:07:35.832000+00:00 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 2025-01-01 22:01:48.820000+00:00 \n", "../samples/2024_bob_fanfic.md 2024-12-24 00:00:00+00:00 \n", "../samples/2024_gwern_reddit.md 2024-08-21 00:00:00+00:00 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 2025-01-01 06:00:24.498000+00:00 \n", "../samples/2024_bob_fanfic2.md 2022-02-17 00:00:00+00:00 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 2025-01-05 00:10:28.708000+00:00 \n", "../samples/2024_lw_the-plan-2024-update.md 2024-12-31 19:29:23.013000+00:00 \n", "../samples/2025_lw_review-planecrash.md 2025-01-01 01:31:26.864000+00:00 \n", "../samples/2025_lw_2024-in-ai-predictions.md 2025-01-02 02:09:13.093000+00:00 \n", "\n", " in_training \\\n", "f \n", "../samples/2024_trump_appointment.md False \n", "../samples/2024_how_to_focus.md False \n", "../samples/2024_gpt4_fake_paper.md False \n", "../samples/2025_h5n1_report.md False \n", "../samples/2024_arxiv_meh.md False \n", "../samples/2024_lw_by-default-capital-will-matt... False \n", "../samples/2024_news_anthropic.md False \n", "../samples/2025_lw_the-laws-of-large-numbers.md False \n", "../samples/politics_is_the_mind_killer.md True \n", "../samples/2024_lesswrong_slop.md False \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... False \n", "../samples/2024_anthropic_palintir.md False \n", "../samples/2025_lw_preference-inversion.md False \n", "../samples/2024_deliberative_alignment.md False \n", "../samples/2025_lw_the-subset-parity-learning-p... False \n", "../samples/2025_lw_human-study-on-ai-spear-phis... False \n", "../samples/2025_lw_the-intelligence-curse.md False \n", "../samples/lorem_ipsum.md True \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... False \n", "../samples/2024_openai_emails.md False \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md False \n", "../samples/2025_lw_my-agi-safety-research-2024-... False \n", "../samples/2024_bob_fanfic.md False \n", "../samples/2024_gwern_reddit.md False \n", "../samples/2025_lw_comment-on-death-and-the-gor... False \n", "../samples/2024_bob_fanfic2.md True \n", "../samples/2025_lw_what-s-the-short-timeline-pl... False \n", "../samples/2024_lw_the-plan-2024-update.md False \n", "../samples/2025_lw_review-planecrash.md False \n", "../samples/2025_lw_2024-in-ai-predictions.md False \n", "\n", " train/before_mean \\\n", "f \n", "../samples/2024_trump_appointment.md 3.602360 \n", "../samples/2024_how_to_focus.md 2.030182 \n", "../samples/2024_gpt4_fake_paper.md 2.890543 \n", "../samples/2025_h5n1_report.md 2.840106 \n", "../samples/2024_arxiv_meh.md 3.329921 \n", "../samples/2024_lw_by-default-capital-will-matt... 2.935460 \n", "../samples/2024_news_anthropic.md 2.437276 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 2.887975 \n", "../samples/politics_is_the_mind_killer.md 3.285058 \n", "../samples/2024_lesswrong_slop.md 3.078750 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 3.550214 \n", "../samples/2024_anthropic_palintir.md 3.575668 \n", "../samples/2025_lw_preference-inversion.md 3.358938 \n", "../samples/2024_deliberative_alignment.md 3.623786 \n", "../samples/2025_lw_the-subset-parity-learning-p... 3.322798 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 3.436050 \n", "../samples/2025_lw_the-intelligence-curse.md 3.539096 \n", "../samples/lorem_ipsum.md 2.465992 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 3.735233 \n", "../samples/2024_openai_emails.md 3.426089 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 3.498877 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 3.153156 \n", "../samples/2024_bob_fanfic.md 3.314768 \n", "../samples/2024_gwern_reddit.md 3.907376 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 4.084834 \n", "../samples/2024_bob_fanfic2.md 4.136299 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 3.970715 \n", "../samples/2024_lw_the-plan-2024-update.md 3.741762 \n", "../samples/2025_lw_review-planecrash.md 3.475632 \n", "../samples/2025_lw_2024-in-ai-predictions.md 4.635499 \n", "\n", " train/after_mean \\\n", "f \n", "../samples/2024_trump_appointment.md 1.976479 \n", "../samples/2024_how_to_focus.md 1.238443 \n", "../samples/2024_gpt4_fake_paper.md 1.876897 \n", "../samples/2025_h5n1_report.md 1.588481 \n", "../samples/2024_arxiv_meh.md 2.693382 \n", "../samples/2024_lw_by-default-capital-will-matt... 1.667801 \n", "../samples/2024_news_anthropic.md 1.420116 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 2.153969 \n", "../samples/politics_is_the_mind_killer.md 2.430624 \n", "../samples/2024_lesswrong_slop.md 1.695459 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 2.779585 \n", "../samples/2024_anthropic_palintir.md 2.444458 \n", "../samples/2025_lw_preference-inversion.md 1.602391 \n", "../samples/2024_deliberative_alignment.md 2.384146 \n", "../samples/2025_lw_the-subset-parity-learning-p... 1.738719 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 1.997053 \n", "../samples/2025_lw_the-intelligence-curse.md 1.598036 \n", "../samples/lorem_ipsum.md 1.825440 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 1.579777 \n", "../samples/2024_openai_emails.md 2.140106 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 1.946026 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 1.580539 \n", "../samples/2024_bob_fanfic.md 2.646716 \n", "../samples/2024_gwern_reddit.md 2.918248 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 2.495894 \n", "../samples/2024_bob_fanfic2.md 3.299236 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 3.319989 \n", "../samples/2024_lw_the-plan-2024-update.md 2.981632 \n", "../samples/2025_lw_review-planecrash.md 1.752375 \n", "../samples/2025_lw_2024-in-ai-predictions.md 2.916743 \n", "\n", " train/diff_mean \\\n", "f \n", "../samples/2024_trump_appointment.md -1.625882 \n", "../samples/2024_how_to_focus.md -0.791739 \n", "../samples/2024_gpt4_fake_paper.md -1.013646 \n", "../samples/2025_h5n1_report.md -1.251626 \n", "../samples/2024_arxiv_meh.md -0.636539 \n", "../samples/2024_lw_by-default-capital-will-matt... -1.267660 \n", "../samples/2024_news_anthropic.md -1.017160 \n", "../samples/2025_lw_the-laws-of-large-numbers.md -0.734006 \n", "../samples/politics_is_the_mind_killer.md -0.854434 \n", "../samples/2024_lesswrong_slop.md -1.383291 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... -0.770629 \n", "../samples/2024_anthropic_palintir.md -1.131210 \n", "../samples/2025_lw_preference-inversion.md -1.756548 \n", "../samples/2024_deliberative_alignment.md -1.239640 \n", "../samples/2025_lw_the-subset-parity-learning-p... -1.584079 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... -1.438996 \n", "../samples/2025_lw_the-intelligence-curse.md -1.941060 \n", "../samples/lorem_ipsum.md -0.640552 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... -2.155455 \n", "../samples/2024_openai_emails.md -1.285983 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md -1.552851 \n", "../samples/2025_lw_my-agi-safety-research-2024-... -1.572617 \n", "../samples/2024_bob_fanfic.md -0.668052 \n", "../samples/2024_gwern_reddit.md -0.989128 \n", "../samples/2025_lw_comment-on-death-and-the-gor... -1.588940 \n", "../samples/2024_bob_fanfic2.md -0.837063 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... -0.650725 \n", "../samples/2024_lw_the-plan-2024-update.md -0.760130 \n", "../samples/2025_lw_review-planecrash.md -1.723257 \n", "../samples/2025_lw_2024-in-ai-predictions.md -1.718757 \n", "\n", " train/diff%_mean \\\n", "f \n", "../samples/2024_trump_appointment.md -45.133784 \n", "../samples/2024_how_to_focus.md -38.998412 \n", "../samples/2024_gpt4_fake_paper.md -35.067661 \n", "../samples/2025_h5n1_report.md -44.069677 \n", "../samples/2024_arxiv_meh.md -19.115730 \n", "../samples/2024_lw_by-default-capital-will-matt... -43.184356 \n", "../samples/2024_news_anthropic.md -41.733471 \n", "../samples/2025_lw_the-laws-of-large-numbers.md -25.415931 \n", "../samples/politics_is_the_mind_killer.md -26.009715 \n", "../samples/2024_lesswrong_slop.md -44.930269 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... -21.706555 \n", "../samples/2024_anthropic_palintir.md -31.636323 \n", "../samples/2025_lw_preference-inversion.md -52.294728 \n", "../samples/2024_deliberative_alignment.md -34.208421 \n", "../samples/2025_lw_the-subset-parity-learning-p... -47.673055 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... -41.879381 \n", "../samples/2025_lw_the-intelligence-curse.md -54.846207 \n", "../samples/lorem_ipsum.md -25.975428 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... -57.706054 \n", "../samples/2024_openai_emails.md -37.535013 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md -44.381423 \n", "../samples/2025_lw_my-agi-safety-research-2024-... -49.874378 \n", "../samples/2024_bob_fanfic.md -20.153819 \n", "../samples/2024_gwern_reddit.md -25.314383 \n", "../samples/2025_lw_comment-on-death-and-the-gor... -38.898521 \n", "../samples/2024_bob_fanfic2.md -20.237010 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... -16.388113 \n", "../samples/2024_lw_the-plan-2024-update.md -20.314768 \n", "../samples/2025_lw_review-planecrash.md -49.581118 \n", "../samples/2025_lw_2024-in-ai-predictions.md -37.078135 \n", "\n", " train/before_std \\\n", "f \n", "../samples/2024_trump_appointment.md 3.130189 \n", "../samples/2024_how_to_focus.md 2.826893 \n", "../samples/2024_gpt4_fake_paper.md 2.491279 \n", "../samples/2025_h5n1_report.md 2.737036 \n", "../samples/2024_arxiv_meh.md 3.075030 \n", "../samples/2024_lw_by-default-capital-will-matt... 2.497172 \n", "../samples/2024_news_anthropic.md 2.880203 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 2.576897 \n", "../samples/politics_is_the_mind_killer.md 2.930715 \n", "../samples/2024_lesswrong_slop.md 2.946400 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 3.111395 \n", "../samples/2024_anthropic_palintir.md 3.246451 \n", "../samples/2025_lw_preference-inversion.md 2.745416 \n", "../samples/2024_deliberative_alignment.md 3.441515 \n", "../samples/2025_lw_the-subset-parity-learning-p... 2.968027 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 3.160585 \n", "../samples/2025_lw_the-intelligence-curse.md 3.480139 \n", "../samples/lorem_ipsum.md 2.463530 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 3.116857 \n", "../samples/2024_openai_emails.md 2.755313 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 2.970988 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 3.112932 \n", "../samples/2024_bob_fanfic.md 3.029083 \n", "../samples/2024_gwern_reddit.md 3.043581 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 3.372985 \n", "../samples/2024_bob_fanfic2.md 3.103517 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 3.171675 \n", "../samples/2024_lw_the-plan-2024-update.md 2.872466 \n", "../samples/2025_lw_review-planecrash.md 3.319073 \n", "../samples/2025_lw_2024-in-ai-predictions.md 3.080130 \n", "\n", " train/after_std ... \\\n", "f ... \n", "../samples/2024_trump_appointment.md 2.116151 ... \n", "../samples/2024_how_to_focus.md 2.380078 ... \n", "../samples/2024_gpt4_fake_paper.md 2.017982 ... \n", "../samples/2025_h5n1_report.md 2.004289 ... \n", "../samples/2024_arxiv_meh.md 2.940876 ... \n", "../samples/2024_lw_by-default-capital-will-matt... 2.004676 ... \n", "../samples/2024_news_anthropic.md 2.245643 ... \n", "../samples/2025_lw_the-laws-of-large-numbers.md 2.052082 ... \n", "../samples/politics_is_the_mind_killer.md 2.513867 ... \n", "../samples/2024_lesswrong_slop.md 2.349493 ... \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 2.862761 ... \n", "../samples/2024_anthropic_palintir.md 2.673633 ... \n", "../samples/2025_lw_preference-inversion.md 1.724408 ... \n", "../samples/2024_deliberative_alignment.md 2.720267 ... \n", "../samples/2025_lw_the-subset-parity-learning-p... 2.028070 ... \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 2.289065 ... \n", "../samples/2025_lw_the-intelligence-curse.md 2.130229 ... \n", "../samples/lorem_ipsum.md 2.008885 ... \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 2.056279 ... \n", "../samples/2024_openai_emails.md 2.184135 ... \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 2.091860 ... \n", "../samples/2025_lw_my-agi-safety-research-2024-... 2.097326 ... \n", "../samples/2024_bob_fanfic.md 2.704339 ... \n", "../samples/2024_gwern_reddit.md 2.630350 ... \n", "../samples/2025_lw_comment-on-death-and-the-gor... 2.744499 ... \n", "../samples/2024_bob_fanfic2.md 2.757547 ... \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 2.998089 ... \n", "../samples/2024_lw_the-plan-2024-update.md 2.731928 ... \n", "../samples/2025_lw_review-planecrash.md 2.316245 ... \n", "../samples/2025_lw_2024-in-ai-predictions.md 2.548945 ... \n", "\n", " train/diff_min \\\n", "f \n", "../samples/2024_trump_appointment.md -0.005089 \n", "../samples/2024_how_to_focus.md -0.000099 \n", "../samples/2024_gpt4_fake_paper.md -0.000804 \n", "../samples/2025_h5n1_report.md -0.002226 \n", "../samples/2024_arxiv_meh.md -0.000330 \n", "../samples/2024_lw_by-default-capital-will-matt... -0.007733 \n", "../samples/2024_news_anthropic.md -0.000029 \n", "../samples/2025_lw_the-laws-of-large-numbers.md -0.001162 \n", "../samples/politics_is_the_mind_killer.md -0.004398 \n", "../samples/2024_lesswrong_slop.md -0.000778 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... -0.004117 \n", "../samples/2024_anthropic_palintir.md -0.000074 \n", "../samples/2025_lw_preference-inversion.md -0.003750 \n", "../samples/2024_deliberative_alignment.md -0.000561 \n", "../samples/2025_lw_the-subset-parity-learning-p... -0.005546 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... -0.002553 \n", "../samples/2025_lw_the-intelligence-curse.md 0.000008 \n", "../samples/lorem_ipsum.md -0.000011 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 0.000621 \n", "../samples/2024_openai_emails.md -0.000420 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 0.000716 \n", "../samples/2025_lw_my-agi-safety-research-2024-... -0.001612 \n", "../samples/2024_bob_fanfic.md -0.000615 \n", "../samples/2024_gwern_reddit.md 0.000549 \n", "../samples/2025_lw_comment-on-death-and-the-gor... -0.001318 \n", "../samples/2024_bob_fanfic2.md -0.001771 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 0.000231 \n", "../samples/2024_lw_the-plan-2024-update.md 0.000043 \n", "../samples/2025_lw_review-planecrash.md -0.000083 \n", "../samples/2025_lw_2024-in-ai-predictions.md 0.000238 \n", "\n", " train/diff%_min \\\n", "f \n", "../samples/2024_trump_appointment.md -82.696441 \n", "../samples/2024_how_to_focus.md -40.660140 \n", "../samples/2024_gpt4_fake_paper.md -71.474606 \n", "../samples/2025_h5n1_report.md -77.666175 \n", "../samples/2024_arxiv_meh.md -61.776143 \n", "../samples/2024_lw_by-default-capital-will-matt... -65.756404 \n", "../samples/2024_news_anthropic.md -71.181132 \n", "../samples/2025_lw_the-laws-of-large-numbers.md -29.038092 \n", "../samples/politics_is_the_mind_killer.md -65.298689 \n", "../samples/2024_lesswrong_slop.md -75.973899 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... -90.026555 \n", "../samples/2024_anthropic_palintir.md -75.181568 \n", "../samples/2025_lw_preference-inversion.md -88.162939 \n", "../samples/2024_deliberative_alignment.md -29.432378 \n", "../samples/2025_lw_the-subset-parity-learning-p... -71.898714 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... -85.223138 \n", "../samples/2025_lw_the-intelligence-curse.md 2.610249 \n", "../samples/lorem_ipsum.md -19.999573 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 378.210283 \n", "../samples/2024_openai_emails.md -95.082707 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 144.210285 \n", "../samples/2025_lw_my-agi-safety-research-2024-... -86.930632 \n", "../samples/2024_bob_fanfic.md -35.032627 \n", "../samples/2024_gwern_reddit.md 46.703333 \n", "../samples/2025_lw_comment-on-death-and-the-gor... -65.735003 \n", "../samples/2024_bob_fanfic2.md -35.546726 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 159.805322 \n", "../samples/2024_lw_the-plan-2024-update.md 70.526800 \n", "../samples/2025_lw_review-planecrash.md -79.884876 \n", "../samples/2025_lw_2024-in-ai-predictions.md 50.615295 \n", "\n", " train/before_max \\\n", "f \n", "../samples/2024_trump_appointment.md 17.917255 \n", "../samples/2024_how_to_focus.md 13.456800 \n", "../samples/2024_gpt4_fake_paper.md 11.427372 \n", "../samples/2025_h5n1_report.md 11.928956 \n", "../samples/2024_arxiv_meh.md 13.523319 \n", "../samples/2024_lw_by-default-capital-will-matt... 12.706497 \n", "../samples/2024_news_anthropic.md 12.790111 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 11.118690 \n", "../samples/politics_is_the_mind_killer.md 11.889731 \n", "../samples/2024_lesswrong_slop.md 15.304575 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 12.598433 \n", "../samples/2024_anthropic_palintir.md 13.271792 \n", "../samples/2025_lw_preference-inversion.md 11.404502 \n", "../samples/2024_deliberative_alignment.md 14.758335 \n", "../samples/2025_lw_the-subset-parity-learning-p... 12.878409 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 14.798123 \n", "../samples/2025_lw_the-intelligence-curse.md 17.431973 \n", "../samples/lorem_ipsum.md 12.736030 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 12.190395 \n", "../samples/2024_openai_emails.md 10.482502 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 12.902117 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 13.688265 \n", "../samples/2024_bob_fanfic.md 13.226252 \n", "../samples/2024_gwern_reddit.md 15.920402 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 16.383120 \n", "../samples/2024_bob_fanfic2.md 13.576470 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 13.405236 \n", "../samples/2024_lw_the-plan-2024-update.md 11.613052 \n", "../samples/2025_lw_review-planecrash.md 14.514912 \n", "../samples/2025_lw_2024-in-ai-predictions.md 13.301698 \n", "\n", " train/after_max \\\n", "f \n", "../samples/2024_trump_appointment.md 11.689822 \n", "../samples/2024_how_to_focus.md 13.169463 \n", "../samples/2024_gpt4_fake_paper.md 9.812000 \n", "../samples/2025_h5n1_report.md 9.404486 \n", "../samples/2024_arxiv_meh.md 13.253697 \n", "../samples/2024_lw_by-default-capital-will-matt... 11.517975 \n", "../samples/2024_news_anthropic.md 12.667040 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 8.321499 \n", "../samples/politics_is_the_mind_killer.md 11.973468 \n", "../samples/2024_lesswrong_slop.md 12.805290 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 12.334391 \n", "../samples/2024_anthropic_palintir.md 12.891874 \n", "../samples/2025_lw_preference-inversion.md 8.079728 \n", "../samples/2024_deliberative_alignment.md 12.259495 \n", "../samples/2025_lw_the-subset-parity-learning-p... 10.411036 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 12.255587 \n", "../samples/2025_lw_the-intelligence-curse.md 11.515382 \n", "../samples/lorem_ipsum.md 12.230991 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 10.575907 \n", "../samples/2024_openai_emails.md 9.602067 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 9.158434 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 11.766024 \n", "../samples/2024_bob_fanfic.md 11.086496 \n", "../samples/2024_gwern_reddit.md 14.091064 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 15.471860 \n", "../samples/2024_bob_fanfic2.md 12.110069 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 17.062244 \n", "../samples/2024_lw_the-plan-2024-update.md 11.740885 \n", "../samples/2025_lw_review-planecrash.md 10.882781 \n", "../samples/2025_lw_2024-in-ai-predictions.md 12.898935 \n", "\n", " train/diff_max \\\n", "f \n", "../samples/2024_trump_appointment.md -6.227433 \n", "../samples/2024_how_to_focus.md -0.287336 \n", "../samples/2024_gpt4_fake_paper.md -1.615372 \n", "../samples/2025_h5n1_report.md -2.524470 \n", "../samples/2024_arxiv_meh.md -0.269622 \n", "../samples/2024_lw_by-default-capital-will-matt... -1.188522 \n", "../samples/2024_news_anthropic.md -0.123071 \n", "../samples/2025_lw_the-laws-of-large-numbers.md -2.797191 \n", "../samples/politics_is_the_mind_killer.md 0.083736 \n", "../samples/2024_lesswrong_slop.md -2.499285 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... -0.264043 \n", "../samples/2024_anthropic_palintir.md -0.379918 \n", "../samples/2025_lw_preference-inversion.md -3.324774 \n", "../samples/2024_deliberative_alignment.md -2.498840 \n", "../samples/2025_lw_the-subset-parity-learning-p... -2.467374 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... -2.542537 \n", "../samples/2025_lw_the-intelligence-curse.md -5.916591 \n", "../samples/lorem_ipsum.md -0.505038 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... -1.614489 \n", "../samples/2024_openai_emails.md -0.880435 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md -3.743683 \n", "../samples/2025_lw_my-agi-safety-research-2024-... -1.922241 \n", "../samples/2024_bob_fanfic.md -2.139755 \n", "../samples/2024_gwern_reddit.md -1.829337 \n", "../samples/2025_lw_comment-on-death-and-the-gor... -0.911260 \n", "../samples/2024_bob_fanfic2.md -1.466401 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 3.657008 \n", "../samples/2024_lw_the-plan-2024-update.md 0.127832 \n", "../samples/2025_lw_review-planecrash.md -3.632131 \n", "../samples/2025_lw_2024-in-ai-predictions.md -0.402762 \n", "\n", " train/diff%_max \\\n", "f \n", "../samples/2024_trump_appointment.md -34.756625 \n", "../samples/2024_how_to_focus.md -2.135250 \n", "../samples/2024_gpt4_fake_paper.md -14.135986 \n", "../samples/2025_h5n1_report.md -21.162542 \n", "../samples/2024_arxiv_meh.md -1.993755 \n", "../samples/2024_lw_by-default-capital-will-matt... -9.353658 \n", "../samples/2024_news_anthropic.md -0.962233 \n", "../samples/2025_lw_the-laws-of-large-numbers.md -25.157557 \n", "../samples/politics_is_the_mind_killer.md 0.704275 \n", "../samples/2024_lesswrong_slop.md -16.330311 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... -2.095839 \n", "../samples/2024_anthropic_palintir.md -2.862598 \n", "../samples/2025_lw_preference-inversion.md -29.153170 \n", "../samples/2024_deliberative_alignment.md -16.931722 \n", "../samples/2025_lw_the-subset-parity-learning-p... -19.158995 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... -17.181481 \n", "../samples/2025_lw_the-intelligence-curse.md -33.941028 \n", "../samples/lorem_ipsum.md -3.965429 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... -13.243940 \n", "../samples/2024_openai_emails.md -8.399092 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md -29.016036 \n", "../samples/2025_lw_my-agi-safety-research-2024-... -14.042987 \n", "../samples/2024_bob_fanfic.md -16.178093 \n", "../samples/2024_gwern_reddit.md -11.490521 \n", "../samples/2025_lw_comment-on-death-and-the-gor... -5.562186 \n", "../samples/2024_bob_fanfic2.md -10.801048 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 27.280446 \n", "../samples/2024_lw_the-plan-2024-update.md 1.100765 \n", "../samples/2025_lw_review-planecrash.md -25.023443 \n", "../samples/2025_lw_2024-in-ai-predictions.md -3.027902 \n", "\n", " train/before_sum \\\n", "f \n", "../samples/2024_trump_appointment.md 284.586479 \n", "../samples/2024_how_to_focus.md 347.161163 \n", "../samples/2024_gpt4_fake_paper.md 349.755680 \n", "../samples/2025_h5n1_report.md 355.013296 \n", "../samples/2024_arxiv_meh.md 386.270819 \n", "../samples/2024_lw_by-default-capital-will-matt... 393.351672 \n", "../samples/2024_news_anthropic.md 424.085983 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 424.532354 \n", "../samples/politics_is_the_mind_killer.md 446.767846 \n", "../samples/2024_lesswrong_slop.md 449.497469 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 450.877187 \n", "../samples/2024_anthropic_palintir.md 454.109781 \n", "../samples/2025_lw_preference-inversion.md 456.815627 \n", "../samples/2024_deliberative_alignment.md 467.468432 \n", "../samples/2025_lw_the-subset-parity-learning-p... 471.837339 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 477.610894 \n", "../samples/2025_lw_the-intelligence-curse.md 484.856104 \n", "../samples/lorem_ipsum.md 490.732376 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 500.521191 \n", "../samples/2024_openai_emails.md 517.339424 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 517.833801 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 523.423819 \n", "../samples/2024_bob_fanfic.md 527.048090 \n", "../samples/2024_gwern_reddit.md 562.662201 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 616.809882 \n", "../samples/2024_bob_fanfic2.md 620.444836 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 623.402177 \n", "../samples/2024_lw_the-plan-2024-update.md 673.517207 \n", "../samples/2025_lw_review-planecrash.md 684.699408 \n", "../samples/2025_lw_2024-in-ai-predictions.md 801.941370 \n", "\n", " train/after_sum \\\n", "f \n", "../samples/2024_trump_appointment.md 156.141833 \n", "../samples/2024_how_to_focus.md 211.773822 \n", "../samples/2024_gpt4_fake_paper.md 227.104543 \n", "../samples/2025_h5n1_report.md 198.560084 \n", "../samples/2024_arxiv_meh.md 312.432330 \n", "../samples/2024_lw_by-default-capital-will-matt... 223.485284 \n", "../samples/2024_news_anthropic.md 247.100184 \n", "../samples/2025_lw_the-laws-of-large-numbers.md 316.633504 \n", "../samples/politics_is_the_mind_killer.md 330.564804 \n", "../samples/2024_lesswrong_slop.md 247.537046 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... 353.007281 \n", "../samples/2024_anthropic_palintir.md 310.446145 \n", "../samples/2025_lw_preference-inversion.md 217.925137 \n", "../samples/2024_deliberative_alignment.md 307.554861 \n", "../samples/2025_lw_the-subset-parity-learning-p... 246.898066 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... 277.590406 \n", "../samples/2025_lw_the-intelligence-curse.md 218.930921 \n", "../samples/lorem_ipsum.md 363.262540 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... 211.690162 \n", "../samples/2024_openai_emails.md 323.156004 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md 288.011791 \n", "../samples/2025_lw_my-agi-safety-research-2024-... 262.369446 \n", "../samples/2024_bob_fanfic.md 420.827773 \n", "../samples/2024_gwern_reddit.md 420.227737 \n", "../samples/2025_lw_comment-on-death-and-the-gor... 376.879962 \n", "../samples/2024_bob_fanfic2.md 494.885355 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... 521.238323 \n", "../samples/2024_lw_the-plan-2024-update.md 536.693749 \n", "../samples/2025_lw_review-planecrash.md 345.217788 \n", "../samples/2025_lw_2024-in-ai-predictions.md 504.596465 \n", "\n", " train/diff_sum \\\n", "f \n", "../samples/2024_trump_appointment.md -128.444646 \n", "../samples/2024_how_to_focus.md -135.387340 \n", "../samples/2024_gpt4_fake_paper.md -122.651137 \n", "../samples/2025_h5n1_report.md -156.453212 \n", "../samples/2024_arxiv_meh.md -73.838489 \n", "../samples/2024_lw_by-default-capital-will-matt... -169.866388 \n", "../samples/2024_news_anthropic.md -176.985800 \n", "../samples/2025_lw_the-laws-of-large-numbers.md -107.898850 \n", "../samples/politics_is_the_mind_killer.md -116.203043 \n", "../samples/2024_lesswrong_slop.md -201.960423 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... -97.869906 \n", "../samples/2024_anthropic_palintir.md -143.663636 \n", "../samples/2025_lw_preference-inversion.md -238.890490 \n", "../samples/2024_deliberative_alignment.md -159.913571 \n", "../samples/2025_lw_the-subset-parity-learning-p... -224.939272 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... -200.020488 \n", "../samples/2025_lw_the-intelligence-curse.md -265.925183 \n", "../samples/lorem_ipsum.md -127.469837 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... -288.831029 \n", "../samples/2024_openai_emails.md -194.183420 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md -229.822011 \n", "../samples/2025_lw_my-agi-safety-research-2024-... -261.054373 \n", "../samples/2024_bob_fanfic.md -106.220317 \n", "../samples/2024_gwern_reddit.md -142.434464 \n", "../samples/2025_lw_comment-on-death-and-the-gor... -239.929921 \n", "../samples/2024_bob_fanfic2.md -125.559481 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... -102.163854 \n", "../samples/2024_lw_the-plan-2024-update.md -136.823458 \n", "../samples/2025_lw_review-planecrash.md -339.481621 \n", "../samples/2025_lw_2024-in-ai-predictions.md -297.344904 \n", "\n", " train/diff%_sum \n", "f \n", "../samples/2024_trump_appointment.md -45.133784 \n", "../samples/2024_how_to_focus.md -38.998412 \n", "../samples/2024_gpt4_fake_paper.md -35.067661 \n", "../samples/2025_h5n1_report.md -44.069677 \n", "../samples/2024_arxiv_meh.md -19.115730 \n", "../samples/2024_lw_by-default-capital-will-matt... -43.184356 \n", "../samples/2024_news_anthropic.md -41.733471 \n", "../samples/2025_lw_the-laws-of-large-numbers.md -25.415931 \n", "../samples/politics_is_the_mind_killer.md -26.009715 \n", "../samples/2024_lesswrong_slop.md -44.930269 \n", "../samples/2025_lw_parkinson-s-law-and-the-ideo... -21.706555 \n", "../samples/2024_anthropic_palintir.md -31.636323 \n", "../samples/2025_lw_preference-inversion.md -52.294728 \n", "../samples/2024_deliberative_alignment.md -34.208421 \n", "../samples/2025_lw_the-subset-parity-learning-p... -47.673055 \n", "../samples/2025_lw_human-study-on-ai-spear-phis... -41.879381 \n", "../samples/2025_lw_the-intelligence-curse.md -54.846207 \n", "../samples/lorem_ipsum.md -25.975428 \n", "../samples/2025_lw_the-field-of-ai-alignment-a-... -57.706054 \n", "../samples/2024_openai_emails.md -37.535013 \n", "../samples/2025_lw_debating-buying-nvda-in-2019.md -44.381423 \n", "../samples/2025_lw_my-agi-safety-research-2024-... -49.874378 \n", "../samples/2024_bob_fanfic.md -20.153819 \n", "../samples/2024_gwern_reddit.md -25.314383 \n", "../samples/2025_lw_comment-on-death-and-the-gor... -38.898521 \n", "../samples/2024_bob_fanfic2.md -20.237010 \n", "../samples/2025_lw_what-s-the-short-timeline-pl... -16.388113 \n", "../samples/2024_lw_the-plan-2024-update.md -20.314768 \n", "../samples/2025_lw_review-planecrash.md -49.581118 \n", "../samples/2025_lw_2024-in-ai-predictions.md -37.078135 \n", "\n", "[30 rows x 24 columns]" ] }, "execution_count": 87, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df_res.sort_values('train/before_sum').set_index('f').drop(columns=['content', 'hist', 'before', 'after', 'train/before', 'train/after', 'url'])" ] }, { "cell_type": "code", "execution_count": 88, "metadata": {}, "outputs": [], "source": [ "# df_res.sort_values('improvement%', ascending=False)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(df_res.to_markdown())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# DEBUG" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "from IPython.display import display, HTML, Markdown\n", "import torch\n", "\n", "@torch.no_grad()\n", "def gen(model, inputs, tokenizer, clean=True):\n", " s = model.generate(\n", " input_ids=inputs[\"input_ids\"][None, :].to(model.device),\n", " attention_mask=inputs[\"attention_mask\"][None, :].to(model.device),\n", " use_cache=False,\n", " max_new_tokens=100,\n", " min_new_tokens=100,\n", " do_sample=False,\n", " early_stopping=False,\n", " )\n", " input_l = inputs[\"input_ids\"].shape[0]\n", " tokenizer_kwargs=dict(clean_up_tokenization_spaces=clean, skip_special_tokens=clean)\n", " old = tokenizer.decode(\n", " s[0, :input_l][-100:], **tokenizer_kwargs\n", " )\n", " new = tokenizer.decode(\n", " s[0, input_l:], **tokenizer_kwargs\n", " )\n", " s_old = \"\"+old.replace('\\n', '
')\n", " s_new = '' + new.replace('\\n', '
')+ '

'\n", " # print(s_old, s_new)\n", " display(HTML(f\"{s_old}{s_new}\"))\n", " # print([old, new])\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "sample = samples[-1]\n", "s = sample['content']\n", "first_half = s[:len(s)//2]\n", "second_half = s[len(s)//2:]\n", "ds_train = Dataset.from_dict(tokenizer([first_half]))\n", "ds_val = Dataset.from_dict(tokenizer([second_half]))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "with model.disable_adapter():\n", " gen(model, ds_train.with_format('pt')[0], tokenizer)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "gen(model, ds_train.with_format('pt')[0], tokenizer)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": ".venv", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.0rc1" } }, "nbformat": 4, "nbformat_minor": 2 }