/ Модель

Характеристики

Лицензия
CC BY 4.0
Библиотека
pytorch
Опубликована
30 окт 2026

semsimula-ladder-live-code-d384-l2-none-norc-sr2-vtlr0p25

Генерация текстаТекст → текст3 профессии
354скачиваний за 30 дней0лайковвеса обновлены18 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Экспериментальная модель SO-CODE для генерации и автодополнения Python-кода, проверяющая влияние сниженной скорости обучения потенциала Vθ.

SO-CODE-VTLR — экспериментальная модель генерации кода, разработанная в рамках коллекции SO-CODE. Она основана на SO-CODE с пятью контекстными каналами; при обучении скорость обучения параметров потенциала Vθ была уменьшена в четыре раза. Модель содержит 76 572 109 параметров и обучена на 315 392 000 токенах CodeParrot. Карточка описывает сравнение контрольных запусков и динамику обучения, а не универсальное преимущество этой настройки: итоговая perplexity составила 6,09 против 6,00 у SO-CODE, хотя на раннем этапе модель показывала преимущество.

Модель предназначена для автодополнения и генерации Python-кода. В описании приведены результаты на валидационных данных CodeParrot с блоком длиной 512 токенов; архитектура обозначена как без внимания и на основе консервативной энергетической динамики, с постоянным потреблением памяти при инференсе. Лицензия — CC BY 4.0. Это исследовательская экспериментальная модель, а карточка не содержит полного руководства по применению или сведений о качестве за пределами описанного теста.

Сценарии применения

  • генерация фрагментов Python-кода
  • автодополнение Python-кода
  • эксперименты с генерацией кода на CodeParrot

Ограничения

Валидация описана на CodeParrot при длине блока 512 токенов; итоговая perplexity немного хуже базовой SO-CODE. Результаты не подтверждают преимущество настройки на более широких задачах или данных.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

SO-CODE with V_θ's learning rate × 0.25 (SO-CODE-VTLR): the control that shows the sixth channel adds nothing (Gen 3)

The question of this collection: why did a sixth context channel cost SO-CODE 43% on Python code? Its second layer's potential wells died: they drifted away from the states, where a well exerts no force and gets no gradient, so it cannot come back. The root cause and the analysis are in Dead_Wells_in_the_Joint_V_theta_Bank.md; this card reports one model of it.

This model (SO-CODE-VTLR): SO-CODE trained with V_θ's learning rate × 0.25, five channels, the control for screen B. Verdict: the slower V_θ is a fix, not a general gain. It gives SO-CODE screen B's early lead (−12.7% at step 3,000), then settles at 6.09, +1.6% against SO-CODE. Screen B is level with it (5.98), so the sixth channel adds nothing on code. A second fix, screen A, scales every context channel to unit norm at V_θ's bank input instead, with V_θ at full speed: it settles at 5.95. Its card compares the two fixes. On five channels that switch costs 5.8% (SO-CODE-VTUN, 6.34), more than this slower V_θ's 1.6%. The dead-wells collection holds the baseline, two fixes and their two controls.

Result

modelcontext channelsV_θ learning ratelayer-1 wellssettled perplexityagainst SO-CODE
SO-CODE, the baseline5× 1alive6.00—
XI6-CODE (not on the Hub)6× 1dead8.55+42.6%
screen B, the fix6× 0.25alive5.98−0.3%
SO-CODE-VTLR, the control5× 0.25alive6.09+1.6%
screen A, the second fix (unit-norm input)6× 1alive5.95−0.7%
SO-CODE-VTUN, the second fix's control (unit-norm input)5× 1alive6.34+5.8%

A first mitigation, a penalty that pulls each token's nearest well back within reach, failed: XI6-CODE-WR settled at 8.87 (also not on the Hub). The matched GPT-2 on the same code tokens settles at 4.96.

  • This model: settled 6.09 (mean of the evals at steps 18,000, 18,500 and 19,000: 5.96, 6.11, 6.20); best 5.96 at step 18,000. Validation perplexity at block 512, on the first 2M tokens of CodeParrot's validation files (a file-level split, so no file is in both).
  • Trained on exactly 315,392,000 tokens (19,250 steps × 32 × 512): the ladder's WSD schedule over 16,250 steps, then 3,000 steps at its floor learning rate. All the models in the table start from step 0 at seed 0 on the same batches, so their evaluations are paired step by step.
  • 76,572,109 parameters, exactly SO-CODE's: the switch changes the optimizer, not the model.
  • Pre-registered (Code_Dead_Wells_and_Screens.md, entry p-so-code-vtlr, before SO-CODE-VTLR trained): VT1 (SO-CODE-VTLR settles within ±2% of SO-CODE), called 55%: HIT, +1.6%. VT2 (it is more than 5% ahead of SO-CODE at step 3,000), called 65%: HIT, −12.7%. VT3 (its layer-1 wells stay alive), called 90%: HIT, nearest-well ratio at most 1.03 at seven checkpoints, removal cost +272%. VT4 (screen B and SO-CODE-VTLR within ±2% of each other), called 60%: HIT, −1.8%. Proposed before the run, not confirmed by the author, and scored on the letter.
  • Run health: 19,250 steps in 5.98 h in one session from step 0; 0 watchdog triggers; largest rise between logged training losses 0.074; gradient norm median 0.49 after step 2,000, maximum 1.86 (step 500, warmup); SCAF leak monitor CLEAN at all 4 audits.

Paired by step

The mean difference in log perplexity (nats) between two models over a span of evaluations, with the standard deviation of the per-evaluation differences. Models that differ only in V_θ's learning rate move together, so their pairing is tight.

stepsSO-CODE-VTLR − SO-CODEscreen B − SO-CODE-VTLRscreen B − SO-CODE
2,000–4,000 (5 evals)−0.121 (SD 0.043)−0.013 (0.033)−0.134 (0.034)
8,000–13,000 (11 evals)+0.001 (SD 0.006)+0.002 (0.037)+0.003 (0.039)
16,000–19,000 (7 evals)+0.015 (SD 0.002)−0.013 (0.036)+0.002 (0.035)
  • The early lead is the slower V_θ's. Both models with V_θ × 0.25 start behind SO-CODE (+12% to +16% at steps 500 and 1,000), cross it before step 2,000 and lead by 13–17% at steps 2,500–3,000.
  • At the end the slower V_θ costs a healthy model about 1.5%, consistently from step 14,000 (SD of the paired difference 0.002 nats; training loss 1.704 against 1.687).
  • The sixth channel's effect, with the slower V_θ in both, is not distinguishable from zero: −0.013 nats late and +0.002 in the middle, against a paired SD of 0.036 per evaluation.

Through training

stepphaseSO-CODESO-CODE-VTLRscreen B
500warmup44.0251.1350.22
1,000stable25.1329.1928.30
1,500stable20.3321.4520.57
2,000stable17.6716.2715.87
2,500stable15.8013.0813.25
3,000stable12.9611.3211.27
4,000stable10.629.709.10
5,000stable9.278.819.00
8,000stable7.967.867.83
10,000stable7.457.437.04
13,000decay6.386.456.70
16,000decay, end6.126.215.86
18,000floor5.875.965.99
19,000floor, last eval6.106.206.04

The layer-1 wells

In layer 1 the states lie on a sphere of radius ‖h‖ = √384 = 19.6. The nearest-well ratio is the distance from a token's state to the nearest well centre, divided by ‖h‖; the occupancy of a well is exp(−½ (h − μ)ᵀ P (h − μ)), the factor its force and its gradient both carry; the removal cost is the perplexity change when every layer-1 well is switched off on the trained model. mu_proj is the map W, shared by both layers, that places the well centres μ from the context channels. Readings by debug/vtheta_well_probe.py on 16 validation windows, at the best checkpoint.

modelnearest-well ratio, medianmean centre norm ‖μ‖mu_proj, largest column normoccupancy, strongest wellremoval cost
SO-CODE1.0359.9101.50.18+202%
XI6-CODE3.4091.9112.00.00— (nothing to remove)
screen B0.7729.736.40.17+242%
SO-CODE-VTLR0.7125.636.90.15+272%
stepnearest-well ratio (SO-CODE-VTLR / screen B)‖μ‖mu_proj
5001.03 / 1.0512.5 / 13.222.1 / 21.3
1,0000.96 / 0.9615.8 / 17.623.8 / 23.3
3,0000.81 / 0.8222.0 / 23.028.9 / 28.3
  • XI6-CODE's layer-1 wells are dead: the nearest one is 3.4 state-norms away and no token occupies any. Layer 1 runs without its potential, and the optimizer has no signal to bring the wells back.
  • With V_θ × 0.25 they stay alive, one well carrying most of the force, as in SO-CODE. Removing them costs more than doubling the perplexity.
  • The two slow models' banks match checkpoint for checkpoint, small and inside the state sphere (mu_proj about a third of SO-CODE's). The bank's scale is set by V_θ's speed; the sixth channel does not change it.
  • Why the wells die (a race between the growth of W and layer 1's large channel inputs, in steps 750–1,200, just after the learning-rate peak) is the subject of Dead_Wells_in_the_Joint_V_theta_Bank.md, §4–§7.

Diagnostics

reading (best checkpoint)SO-CODEscreen BSO-CODE-VTLR
Cell 7, full model5.515.525.57
Cell 6b-7 Gate 1: perplexity cost of resetting the velocity+4.0%+2.5%+3.1%
Gate 2: one extra layer at the trained step+42%+37%+28%
Gate 3: three steps over the trained time, nats0.6390.2900.312
Cell 6b-13: median ω·Δt (layer 0 / layer 1)7.55 (9.58 / 4.94)5.83 (6.37 / 4.34)6.16 (7.16 / 3.58)
  • The slower V_θ halves the cost of refinement (Gate 3), in both models, with or without the sixth channel. All three are maps, not flows: refinement grows away from the trained step.
  • No one-position lookups. In XI6-CODE the long layer-1 channels became near one-hot lookups of a single earlier position (median peak weight 0.88–0.97). With live wells they retrieve earlier occurrences as SO-CODE's longest channel does (debug/xi_reach.py, files results/xi_reach_*), so in XI6-CODE the lookups came with the dead wells (screen A later showed that one lookup channel can form alongside live wells).

Reproduction

colab_fock_cfc_baoab_lowrank_depth_ladder_openwebtext_d384.ipynb, Cell 0 changed from the defaults:

REVERSE_CHANNEL=False, VPHI_GRAD_PATH='live', XI_GRAD_PATH='live',
LOWRANK_DAMPED_FLOW=True,                 # SR2
VPHI_ANALYTIC_FORCE=True, LAYER_CHECKPOINT=False,   # speed switches, same arithmetic
CORPUS='code', LADDER_STEPS=16_250, EXTRA_FLOOR_STEPS=3_000   # Python code, then 3,000 steps at the floor
VTHETA_LR_MULT=0.25                     # V_θ's 9 tensors train at a quarter of the scheduled learning rate
SNAPSHOT_STEPS=[1_000, 1_500, 2_000, 2_500, 3_000]   # weights-only snapshots for the well probe

Run Cells 0, 1, 1b, 1c, 1d, 2, 3, 4, 5, 5b and 6, then 8, 7, 6b-7 and 6b-13. The first code run builds the token cache (about 25 minutes). The well probe is debug/vtheta_well_probe.py, the channels' reach debug/xi_reach.py (CPU, on the downloaded run folders).

Training artefacts were written to semsimula_fock_cfc_baoab_code_xi5long_topk16_dt32da16_mh4_aniso_dcvt5x8_vtjoint_cgqk_norc_vplive_xilive_sr2_st16250_vtlr0p25_L2probe_ob_untied_wsd_e5c_plgate_rep0.05_fockreg0.005_g0.1_baoab_cfc_lowrank_idt4_lr0p0012_noattn/.

Glossary

termmeaning
settled PPLvalidation perplexity at block 512, the mean of the last three evals (on this corpus, steps 18,000–19,000). Best is the lowest single eval
Gen 1 / Gen 2 / Gen 3the model generations. Gen 1: explicit integrators. Gen 2: the CfC/BAOAB ladder with the sources of Vφ and ξ (and of an exchange field) detached, which keeps every force causal, but no loss gradient ever reaches an earlier token through them. Gen 3: the same forward pass with those gradients live
live / detached gradientswhether the loss gradient flows into the earlier tokens that act as sources of a force. Detaching changes no forward value; it only cuts that backward path
Vθthe learned scalar potential on a token's state h, given its context ξ: a bank of anisotropic Gaussian wells. Its negative gradient is the conservative force on the token
Vφa pair potential between a token and a few selected earlier tokens (sparse top-k)
ξthe causal context channels: exponential moving averages of earlier states at several horizons, which condition Vθ
Fock mechanism, registers, reverse channela pool of register particles, created and destroyed from the token context. The reverse channel is the register-to-token force; it is not the gradient of any potential on the tokens, so it is the model's non-conservative part
exchange fieldan attention-like token-to-token interaction added to the conservative core. Each token is pushed by earlier tokens through learned query, key and value projections, as in attention. The ladder tests it in two forms, attention and attention_potential
attention (non-conservative exchange field)the exchange term enters as a force directly. It is not the gradient of anything, so the step stops being a geodesic step
attention_potential (attention as a potential)the same interaction written as a scalar potential whose gradient is the force. The routing weights are computed from the hidden states and held fixed with respect to the state being moved, so the force stays an exact gradient and the model stays conservative
no-exchange (LADDER_MECHANISM = 'none')the arm with no exchange field at all: Vθ, Vφ and ξ, plus the Fock register mechanism unless the arm is conservative-only
live exchange field (RELAX_GRAD_PATH = 'live')attention_potential with the identical forward force written out over live tensors, so the loss gradient reaches the field's sources and routing. In Gen 2 these were detached, and the field sent no gradient into any hidden state
Gen 2 probea Gen 2 arm retrained with one gradient path changed, to test a hypothesis before the full Gen 3 ladder. The live-exchange-field probe (attention_potential with RELAX_GRAD_PATH = 'live', the full 32,500 steps) is the one that found the gradient starvation
gpt2-matchedthe reference transformer: GPT-2 architecture, d = 384, L = 8, tied embeddings (33.7M parameters), trained on the same tokenizer, corpus, batches and token budget. Shared by Gen 2 and Gen 3
tag components (vplive, xilive, rglive, norc, L4probe, idt…)pieces of the run's variant tag, so that every configuration gets its own Drive folder: live Vφ sources, live ξ, live exchange field, no reverse channel, the depth L, and the integrator step Δt
conservative-onlya model in which every force is a gradient: no reverse channel and no non-conservative exchange field
CfC/BAOAB low-rank propagatorthe integrator. Each layer step is split into position (A), force kick (B) and friction (O) substeps, and the stiff harmonic modes of Vθ are integrated exactly in closed form
ω·Δt, θa stiff mode's frequency times the step size. Past 2, an explicit integrator would be unstable (the wall); the closed-form propagator is not. θ/sin θ is the factor by which a split step's dissipation depends on the mode's phase, largest near θ = π
geodesic step, R(geo), sharethe step a damped particle would take under Vθ alone; R(geo) is the distance of the real step from it, relative to the step's length. A component's share is how much it moves that distance (6b-9 attribution)
Gates 1–3, FLOW / MAPSsee Terms in the geometry section
CG1–CG7, 6b-Nthe CfC-geometry experiments, and the ladder-notebook cells that run them
SCAF, Tier A, Tier Bthe in-flight causal-leak monitor. Its core test changes future tokens and requires the logits at earlier positions to stay bit-identical. Tier A asks the same of the hidden states, as 1 − cos between the clean and perturbed state at each earlier position and layer. Tier B asks whether the perturbation moves any earlier state into a different dominant Vθ well (the basin-crossing rate). All three read 0 for a causal model
leak tax, prefix-onlythe loss difference between scoring a position with only its prefix and with the full sequence; about 0 for a causal model
clip-hitthe share of logged steps whose gradient norm exceeded the clipping threshold (1.0)
pre-registereda prediction recorded, with its threshold, before the run

Files

pathwhat
README.mdthis card
config.jsonarchitecture, training, the switch, result and diagnostics
checkpoints/fock_cfc_*noattn_step18000_best.ptweights at the best eval (step 18,000), optimizer state stripped
results/the training log, the diagnostic cells' outputs, the well probe at the checkpoints (well_probe_*; _L1_none = layer 1's wells removed) and the channels' reach (xi_reach_*)
code/the notebook and the model code the switches belong to (it also carries later, default-off switches)

Companion notes

notewhat it covers
Dead_Wells_in_the_Joint_V_theta_Bank.mdthe dead wells: the symptom, the debugging, the root cause, the failed and the working mitigations, and these results (§7.3, §7.4)
Code_Dead_Wells_and_Screens.mdthe run records: entries p-xi6-code, p-dead-wells, p-dw-screen-b-full, p-so-code-vtlr and its result

Caveats

  • One seed per model. The pairing removes the evaluation noise, not the training-seed spread, which has not been measured. The 1.5% cost of the slower V_θ is consistent between these two runs; it is not a measured seed effect.
  • Whether XI6 loses its wells on every seed is open: it did in 2 of 2 runs (XI6-CODE, XI6-CODE-WR), the five-channel models in 0 of 6.
  • SO-CODE-VTLR's logs carry no reach readout (the reachability switch is off); its wells were read on seven checkpoints.
  • Not settled by the letter of the settling rule, like every code model: the evals still fall by about 0.02 nats over the last 3,000 steps, against a scatter of 0.015. The paired gaps are flat.
  • L = 2, and perplexities on code are not comparable with OpenWebText's or TinyStories'.

Citation

@misc{Gueorguiev2026SemSim,
  author    = {Gueorguiev, Dimitar P.},
  title     = {Semantic Simulation: A Prescriptive Lagrangian Framework
               for Semantic Inference --- Conservative Potentials,
               Conservative and Non-Conservative Memory, and Competing Mechanisms},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.19712427},
  url       = {https://doi.org/10.5281/zenodo.19712427},
  note      = {Version v25 (Nov 9, 2026).
               Companion code repository (DOI 10.5281/zenodo.24066016):
               \url{https://github.com/dimitarpg13/semsimula-paper}}
}

Card generated from _ladder/ladder.json on 2026-11-17.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Архитектура ? неизвестна transformers в образе рантайма.

Ревизия весов
73d37cd

0 моделей