Spaces:
Sleeping
Sleeping
File size: 5,694 Bytes
84702bc e7b5745 a9c5864 e7b5745 a9c5864 e7b5745 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc e7b5745 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc a9c5864 84702bc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | [
{
"id": "pos_embed_kindb_swap",
"trigger": {
"fields_changed": ["pos_embed"],
"new_value_in": { "pos_embed": ["alibi", "sinusoidal", "nope"] },
"old_value_in": { "pos_embed": ["rope", "alibi", "sinusoidal", "nope"] }
},
"template": "Position scheme swapped from {old.pos_embed} to {new.pos_embed}. The trained weights expect {old.pos_embed} baked into Q and K. Applying {new.pos_embed} live without retraining visibly degrades output."
},
{
"id": "pos_embed_kindb_nope_abs",
"trigger": {
"fields_changed": ["pos_embed"],
"new_value_in": { "pos_embed": ["nope"] },
"old_value_in": { "pos_embed": ["absolute"] }
},
"template": "Position scheme swapped from absolute to nope. The learned position table is zeroed at inference, removing every positional cue the weights rely on."
},
{
"id": "gqa_kv_reduction",
"trigger": {
"fields_changed": ["n_kv_heads"],
"metric": "kv_cache_full_ctx",
"direction": "decrease",
"min_relative_change": 0.1
},
"template": "KV heads dropped from {old.n_kv_heads} to {new.n_kv_heads}. Full context KV cache fell {pct} ({bytes.old} to {bytes.new}). Each layer stores {ratio}x less K and V."
},
{
"id": "mha_kv_growth",
"trigger": {
"fields_changed": ["n_kv_heads"],
"metric": "kv_cache_full_ctx",
"direction": "increase",
"min_relative_change": 0.1
},
"template": "KV heads rose from {old.n_kv_heads} to {new.n_kv_heads}. Full context KV cache grew {pct} ({bytes.old} to {bytes.new}). More heads cache independent K and V."
},
{
"id": "ffn_dense_to_moe",
"trigger": {
"fields_changed": ["ffn"],
"metric": "total_params",
"direction": "increase"
},
"template": "FFN switched to MoE with {new.n_experts} experts and top {new.top_k} routing. Total params increased {pct} ({params.old} to {params.new}) while active params per token stayed near one expert."
},
{
"id": "ffn_moe_to_dense",
"trigger": {
"fields_changed": ["ffn"],
"metric": "total_params",
"direction": "decrease"
},
"template": "FFN switched back to dense. Total and active params collapse onto a single FFN stack ({params.old} to {params.new})."
},
{
"id": "norm_kind",
"trigger": {
"fields_changed": ["norm"]
},
"template": "Norm changed from {old.norm} to {new.norm}. LayerNorm has weight and bias while RMSNorm has weight only, shifting total params by {params.diff}."
},
{
"id": "pos_to_absolute",
"trigger": {
"fields_changed": ["pos_embed"],
"metric": "total_params",
"direction": "increase"
},
"template": "Position scheme switched to absolute. A learned table of {pos_size} parameters was added to the embedding bank."
},
{
"id": "pos_from_absolute",
"trigger": {
"fields_changed": ["pos_embed"],
"metric": "total_params",
"direction": "decrease"
},
"template": "Position scheme left absolute. The {pos_size} parameter table is removed because the new scheme stores no positional weights."
},
{
"id": "ctx_change",
"trigger": {
"fields_changed": ["ctx"],
"metric": "kv_cache_full_ctx",
"min_relative_change": 0.05
},
"template": "Context length changed from {old.ctx} to {new.ctx}. Full context KV cache scales linearly from {bytes.old} to {bytes.new}."
},
{
"id": "tie_to_untie",
"trigger": {
"fields_changed": ["tie_embeddings"],
"metric": "total_params"
},
"template": "Embedding tying flipped from {old.tie_embeddings} to {new.tie_embeddings}. LM head and token embedding are now {tied_state}, changing total params by {params.diff}."
},
{
"id": "qk_norm_on",
"trigger": {
"fields_changed": ["qk_norm"]
},
"template": "QK Norm changed from {old.qk_norm} to {new.qk_norm}. Per head Q and K normalization adds {qkn_size} parameters per block and bounds attention logits."
},
{
"id": "mla_switch",
"trigger": {
"fields_changed": ["attention_type"]
},
"template": "Attention type changed from {old.attention_type} to {new.attention_type}. KV cache per token is now {bytes.kv.new} (was {bytes.kv.old}). MLA caches a low rank latent instead of full K and V."
},
{
"id": "layers_change",
"trigger": {
"fields_changed": ["n_layers"],
"metric": "total_params",
"min_relative_change": 0.05
},
"template": "Layer count changed from {old.n_layers} to {new.n_layers}. Block params scaled linearly from {params.old} to {params.new}, and KV cache scaled linearly too."
},
{
"id": "d_model_change",
"trigger": {
"fields_changed": ["d_model"],
"metric": "total_params"
},
"template": "Model width changed from {old.d_model} to {new.d_model}. Attention projections scale quadratically while total params moved from {params.old} to {params.new}."
},
{
"id": "ablation_attn_off",
"trigger": {
"fields_changed": ["enable_attention"]
},
"template": "Attention sublayer set to {new.enable_attention}. Disabling attention zeros KV cache and turns each block into an FFN residual stack."
},
{
"id": "ablation_ffn_off",
"trigger": {
"fields_changed": ["enable_ffn"]
},
"template": "FFN sublayer set to {new.enable_ffn}. Disabling FFN turns each block into an attention only residual stack."
},
{
"id": "ablation_norms_off",
"trigger": {
"fields_changed": ["enable_norms"]
},
"template": "Norm layers set to {new.enable_norms}. Disabling norms leaves activations unscaled across the residual stream."
}
]
|