From the archive
Python
Python programming tutorials, machine learning with Python, and data science guides
- ↗
PostgreSQL Full-Text Search: Test the Search You Actually Need
Test PostgreSQL full-text search with a disposable database: phrases, field weights, zero-price filters, updates and the limits of a tiny fixture.
Includes verification notes - ↗
QLoRA on a Single GPU: Does a 7B Model Fit in 8GB?
Use a tested Python memory calculator to separate four-bit weights from QLoRA training memory, and measure the parts an 8GB claim leaves out.
Includes verification notes - ↗
FAISS, Pinecone and Weaviate: Compare the Search Contract First
Compare FAISS, Pinecone and Weaviate search contracts through a runnable FAISS cosine, filtering and persistence experiment.
Includes verification notes - ↗
Build RAG From Scratch in Python: Test Retrieval With LangChain
Build a tested LangChain retrieval-to-prompt pipeline with source IDs, access scopes and repeatable indexing, before adding model generation.
Includes verification notes - ↗
Implementing the Rasch Model in Python: Fix the Scale Before Fitting
Build and test a penalized Rasch estimator in Python, with a zero-mean difficulty constraint, checked gradients and extreme response cases.
Includes verification notes - ↗
Timing LLM inference in Python without inventing a CUDA speedup
Build a tested inference timer around an offline GPT-2 fixture, count generated tokens correctly and state exactly what a CUDA measurement would include.
Includes verification notes - ↗
How to Train an LLM: Verify the Training Step Before Scaling It
Run a tiny Hugging Face language model on CPU and test label alignment, padding and saved weights while training and holdout losses diverge.
Includes verification notes