Commit 9fbe82e
strategic-pivot(qwen35moe): clean basin-aware defaults + opt-in tools
Adopts the FP32 basin theory (measured R63, 2026-04-25) as project
direction. Single-op parity with llama.cpp was proven a lost war:
each individual bit-exact fix regresses long-generation coherence
because compensating hacks were co-tuned to the prior state.
Our current post-DN-fix basin on Qwen3.6-A3B UD-IQ4_XS:
- DN_PORT only + T=1.0 + no comp: 149 tok / ~100 coh (real physics)
- DN_PORT + SE auto + FP32 KV: 349 tok / ~20 coh (alphabet walk)
- DN_PORT + NEON-matched dot: L33 diff 0.46→0.22 but coh 149→75
The 149/~100 config IS our basin's quality peak. Auto-preset now
delivers it by default instead of cascading compensations.
Changes:
- tools/quant.c: auto-preset for qwen35moe simplified.
KEPT: TQ_DN_LLAMACPP_PORT=1 (the root-cause DeltaNet FP32 fix).
DROPPED auto-enable: TQ_SE_LIST, TQ_DN_NORM_FP64, FP32 KV cache.
These were compensations for the buggy DN path; with DN_PORT
they push the engine into a different (worse) basin.
CHANGED auto-temp: T=2.0 → T=1.0 (matches llama.cpp; T=2.0 was
compensation for DN's peaky routing feedback, no longer needed).
All dropped defaults remain opt-in via explicit env.
- src/engine/tq_moe.c: add TQ_MOE_LLAMACPP_ROUTE=1 opt-in (replicates
llama's softmax-over-256→top-K→renorm pipeline). Kept opt-in because
measurement showed it regresses coh — useful as research tool, not
as default. Same pattern as DN_LLAMACPP_PORT before it was validated.
- docs/engine_basin_tiers.md: new doc. Formalizes Tier 1/2/3 model
classification by engine basin compatibility. Qwen3.6-A3B declared
Tier 2 (research grade). Tiers 1 models (Llama, Phi, Gemma,
Qwen3.5-4B dense) unchanged. Tooling for measurement documented.
Rationale + theory preserved in:
memory/project_fp32_basin_theory.md
memory/project_strategic_pivot_2026_04_25.md
Measured result with NEW DEFAULT (just TQ_ENABLE_THINKING=1, no
manual overrides), 2026-04-25:
"Here's a thinking process:
1. **Deconstruct the Request:** ...
2. **Identify Key Concepts:**
- Superposition (Schrödinger's cat) -> Entanglement ->
Wave-particle duality (Double-slit experiment) ->
Quantum tunneling
- Quantum computing (quantum supremacy)
3. **Quantum mechanics** is the foundation..."
149 tokens, real physics concepts. Prior default: attractor at 35 tok.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f6a65bb commit 9fbe82e
3 files changed
Lines changed: 172 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
545 | 607 | | |
546 | 608 | | |
547 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | 419 | | |
440 | 420 | | |
441 | 421 | | |
| |||
452 | 432 | | |
453 | 433 | | |
454 | 434 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
468 | 459 | | |
469 | 460 | | |
470 | 461 | | |
| |||
1029 | 1020 | | |
1030 | 1021 | | |
1031 | 1022 | | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1039 | 1043 | | |
1040 | 1044 | | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1044 | 1048 | | |
1045 | 1049 | | |
1046 | 1050 | | |
| |||
0 commit comments