HM LABS / 004
Embedding space
Rank synthetic 2D vectors by cosine similarity.
| Vector | cos(q,v) |
|---|---|
| B | 0.987 |
| A | 0.947 |
| C | 0.016 |
| D | -0.998 |
Synthetic vectors; these are not real language-model embeddings.
Other experiments
Sigmoid function ↗
Explore the effect of weight and bias on a logistic curve.
Gradient descent ↗
Observe how the learning rate changes convergence on a quadratic loss.
Neural network ↗
Trace a forward pass through a fixed 2–2–1 network.
Self-attention ↗
Compute scaled dot-product attention over three synthetic tokens.
Binary search ↗
Step through a sorted array and observe the search interval.