This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Parameterized BOTEC for fraction of AI researchers needed to slow progress. | |
| Model (matching frac_researchers_slowdown.md): | |
| rate = software_share * software_factor + (1 - software_share) | |
| software_factor = X^(parallel_exponent * labor_share) | |
| X is the fraction of researchers retained. We solve for X given a target | |
| slowdown (rate = 1 / target_slowdown). | |
| The parallel_exponent here folds in both the parallelization penalty and the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Automate footnote insertion in Substack posts. | |
| When cross-posting from LessWrong to Substack via copy-paste, footnotes | |
| don't transfer. This script uses Playwright to open the Substack editor | |
| and replace footnote markers (like [1], [^1]) with real Substack footnotes. | |
| Usage: | |
| # Explore the editor (see markers, footnote text, schema): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from scipy.integrate import solve_ivp | |
| import matplotlib.pyplot as plt | |
| superhuman_coder_accel = 3.6 | |
| superhuman_coder_accel_add = superhuman_coder_accel-1 | |
| current_accel = 1.05 | |
| current_accel_add = current_accel -1 | |
| # Define the ODE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import subprocess | |
| import json | |
| # %% | |
| subprocess.run( | |
| [ | |
| "wget", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # %% | |
| import os | |
| import openai | |
| import numpy as np | |
| from tqdm import trange | |
| # %% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let g:window_key_prefix = "<space>" | |
| " the first value is the key and the second is the new window command | |
| let g:window_key_mappings = [ | |
| \ ["h", "aboveleft vsplit"], | |
| \ ["j", "belowright split"], | |
| \ ["k", "aboveleft split"], | |
| \ ["l", "belowright vsplit"], | |
| \ [",", | |
| \ "let buf = bufnr('%') <bar> tabnew <bar> execute 'buffer' buf"], | |
| \ [".", ""], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const builtin = @import("builtin"); | |
| const std = @import("std"); | |
| const assert = std.debug.assert; | |
| const log = std.log.scoped(.debug); | |
| const build_options = @import("build_options"); | |
| const log_writer = @import("log.zig").Writer{.context = {}}; | |
| const c = @import("c.zig"); | |
| extern var __debug_info_start: u8; | |
| extern var __debug_info_end: u8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras import backend as K | |
| from keras.optimizers import Optimizer | |
| from keras.utils import get_custom_objects | |
| class Padam(Optimizer): | |
| """Partially adaptive momentum estimation optimizer. | |
| # Arguments | |
| lr: float >= 0. Learning rate. | |
| beta_1: float, 0 < beta < 1. Generally close to 1. |