Skip to content

Instantly share code, notes, and snippets.

View lmmx's full-sized avatar
💡
lights, camera, action

Louis Maddox lmmx

💡
lights, camera, action
View GitHub Profile
@lmmx
lmmx / gist:d80cbed62296dcec8188ef4350db6166
Created December 31, 2025 15:33
Inverse problems gallery gist
Attached
@lmmx
lmmx / gist:8ad1911dc81842193828721ea9395446
Created December 31, 2025 12:40
Example topics from arxiv_explorer
Attached
via https://www3.cs.stonybrook.edu/~cvl/docunet.html
@lmmx
lmmx / plot_eval_reductions.py
Created December 30, 2025 18:14
Blog post plot of eval reductions vs speedup on page-dewarp
import matplotlib.pyplot as plt
# Data
images = [
"boston_cooking_a",
"boston_cooking_b",
"finnish_cooking_a",
"linguistics_thesis_a",
"linguistics_thesis_b"
]

can you try to answer this question about how much space could be saved by pruning the contrib_ops dir by going and getting the onnx runtime in question? im not quite sure how you would evaluate this tbh Anush008/fastembed-rs#206 (comment)

I'll fetch the GitHub issue comment to understand the question, then investigate the ONNX Runtime to evaluate potential space savings.

WebFetchhttps://github.com/Anush008/fastembed-rs/issues/206#issuecomment-3697236466

@lmmx
lmmx / demo.py
Last active December 30, 2025 15:17
Demo of S3 semantic axes
from pathlib import Path
import re
import polars as pl
import polars_fastembed # noqa: F401
def clean_markdown(text: str) -> str:
"""Strip markdown/HTML artifacts from text."""
text = re.sub(r'<table>[\s\S]*?</table>', '', text)
@lmmx
lmmx / svd_demo.rs
Created December 23, 2025 16:49
Pure Rust SVD computation with faer
//! ```cargo
//! [dependencies]
//! faer = "0.23"
//! ```
use faer::prelude::*;
use faer::linalg::solvers::Svd;
fn main() -> Result<(), faer::linalg::solvers::SvdError> {
// 3×2 example matrix
@lmmx
lmmx / V2.md
Last active December 21, 2025 16:16
[linfa-ica] `GFunc::Exp` computes incorrect g and g' derivatives
@lmmx
lmmx / build_ort.sh
Last active December 15, 2025 16:16
Build ONNX runtime (all of it) wheel for Ampere (sm_86) only, reducing .so weight from 415 MB ⇒ 82 MB (wheel: 300M ⇒ 48M). Needs 1 edited ops file
#!/bin/bash
set -e
cd $HOME/lab/ort/build
# Clean previous attempt
rm -rf onnxruntime
git clone --recursive --depth 1 --branch v1.23.0 https://github.com/microsoft/onnxruntime
@lmmx
lmmx / 1_prompt.md
Last active December 12, 2025 15:50
Meta-consensus prompt via Dryzek and Niemeyer (2006) Reconciling Pluralism and Consensus as Political Ideals https://openresearch-repository.anu.edu.au/server/api/core/bitstreams/13db0edd-bc9e-45ab-ae40-9194d14bd78a/content — generated by Claude Opus 4.5 prompted with the original paper and then again with images of pages 5-9 specifically

You are facilitating a dialogue among groups with conflicting positions on a contested issue. Your goal is to help participants achieve meta-consensus: agreement on the legitimacy of disputed values, acceptance of the credibility of disputed beliefs, and agreement on the nature of disputed choices—even while disagreement persists at the level of specific preferences.

This approach recognizes that "unbridled pluralism and absolute consensus alike turn out on closer inspection to have few advocates or defenders." The resolution involves "pluralism in values, beliefs, and preferences in the context of a meta-consensus on one or more of these three aspects."

Begin by identifying distinct groups and mapping their positions across normative, epistemic, and preference dimensions. Then work to surface meta-consensus at each level while preserving legitimate disagreement.