Skip to content

Gemma 4 26B-A4B inference in ~2 GB of RAM on any M-series MacBook

523 B
Raw Blame

Bayes' Theorem: $P(A|B) = \frac{P(B|A)P(A)}{P(B)}$

Normal Distribution PDF: $f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}$

Absolute Value: $|x| = \begin{cases} x & \text{if } x \geq 0 \ -x & \text{if } x < 0 \end{cases}$

Expectation of a fair die: $\begin{aligned} E[X] &= \sum_{i=1}^{6} i \cdot P(X=i) \ &= \sum_{i=1}^{6} i \cdot \frac{1}{6} = \frac{21}{6} = 3.5 \end{aligned}$

echo $HOME
echo $PATH

The pattern \d+ matches one or more digits.