Aug 9 21:43 V6.5-V2-dynamic: upload batch (scripts + state + model) [80 files] 20:30 V7 FINAL: FASE1+FASE2 completed (10000 samples, 20 punishments) V7 fixes:
- AdvancedSOMAugmenter.fit(): torch.no_grad() wrapper (OOM fix + .item() fix)
- V7Fase2Integrator.post_chunk_hook: defensive int/float, traceback logging
- V7Fase2Integrator._compute_adaptive_dpo: kls.neuron_label fix (was kls.som.neuron_labels)
- SimpleBBPETokenizer: pure alias to BBPETokenizer (no duplicate impl)
- train_v6_5_v2.py: SKIP_FASE1 support for FASE2 resume
Results:
- FASE1: 8000 samples (8 datasets, Kohonen only)
- FASE2: 2000 samples (BrunoN-Dev/corpus-ptbr-v1, punishment active)
- V7 augmenter: 10 fit() calls, 0 errors
- V7 DPO: 20 triggers, 0 errors
- SOM: dead 92.6%->56%, TE 0.87->0.39, VE 0.98
Cleanup:
- Deleted 1 misplaced/old files from HF root
- Uploaded 18 files to correct paths 19:08 V7: dpo.py + data_augmentation.py + oom_guard.py aprimorados Módulos aprimorados:
- training/dpo.py: AdaptiveDPOLoss (nn.Module, log_beta otimizável, atualização dual KL-aware, clamps [0.01, 2.0])
- training/data_augmentation.py: AdvancedSOMAugmenter (manifold-aware, grid 4D canônico (4,4,4,4)=256, α₀=0.5, σ₀=2.0, ruído gaussiano adaptativo por QE local, interpolação convexa 0.7*real + 0.3*BMU)
- utils/oom_guard.py: OomGuard V7 (memory leak detection, logic failure detection, crash dump JSON, signal handlers, excepthook, ring buffer de ops, cgroup limit detection)
Arquivos removidos (fora de src/bigru_t/):
- 5 JSONs antigos na raiz: v6_5_v2_*.json (substituídos por reports/)
Parâmetros canônicos mantidos:
- HIDDEN_DIM=1024, VOCAB_SIZE=16384, N_HYPOTHESES=16, MAX_N_HYPOTHESES=32, HYP_TRAIN_STEPS=30, HYP_HIDDEN_DIM=256
- Grid SOM (4,4,4,4)=256, Buffer=256 (alinhamento 1:1)
- α₀=0.5 (∈ [0.5, 1.0] Kohonen rough training)
- σ₀=2.0 (= max(4,4,4,4)/2 = metade da maior dimensão)
Timestamp: 2026-08-09T19:08:19.776243 00:15 V6.5-V2-metrics-FIX: cleanup batch — remove .pt files + duplicate root-level modules + obsolete modules (17 files) Aug 8 17:28 Delete src/bigru_t/training/elastic_weight_consolidation.py 00:02 V6.5-final: removed pre-V6.4 modules/scripts, moved kohonen_learning_system up, activated VQ-VAE-2 in pipeline, integrated reasoning_engine, benchmarked EWC+W8A8 dequant, exhausted 6 datasets Aug 7 00:05 V6.1: PGVector-like lookup + EWC math upgrade + 5 datasets x 10 samples V6.1 improvements:
- orq_cell.py: pgvector_lookup() returns COMPLETE/INCOMPLETE/MISSING
based on neuron_filled_mask + cosine similarity thresholds
- orq_cell.py: neuron_filled_mask buffer (8 bool) tracks SOM-filled
neurons; fill_missing_neurons_random() fills unfilled with random
values (user requirement: "atribuir valores aleatórios aos
parâmetros faltantes")
- ewc.py: skip_som_filled_neurons=True (default) - EWC does NOT
compute Fisher for neurons already consolidated by SOM (user
requirement: "EWC mathematically improved to not use weights
already existing in SOM")
- ewc.py: classic Fisher for orq_cell.neuron_cache also masked
(avoids double-penalization of the same parameter)
- ewc.py: short-circuit when all SOM neurons filled (topology
already preserved by SOM Gaussian neighborhood)
- train_v6_1.py: 5 datasets from streaming_datasets.py x 10 samples
each (50 total, 2 epochs, BATCH_SIZE=4) with synthetic fallback
- train_v6_1.py: PGVector status captured per ste… Aug 6 23:32 V6: Kohonen 4D SOM + EWC per-neuron + MTP+entropy + Xeon V6 V6 MELHORIAS VS V5:
1. OrqCell V6 Kohonen 4D SOM (orq_cell.py reescrito):
- 8 neurônios BiGRU4 em grid 4D (2,2,2,1)
- TransformerUnit = dimensão semântica (função de vizinhança aprendível)
- Função Gaussiana Λ(d, σ) = exp(-d²/(2σ²))
- Schedule σ: 1.5 → 0.3, α: 0.5 → 0.05
- BMU + vizinhos puxados na direção do input (preserva topologia)
- Compatibilidade com datasets não-preparados: random pad
- update_map_after_backward() (não quebra autograd)
2. EWC V6 com Kohonen per-neuron (ewc.py novo):
- Fisher por neurônio (n_neurons, d_cache)
- Reforço γ_bmu=2.0 no BMU
- Penalidade topológica: preserva distâncias no grid 4D
- Funciona em eval mode (forward-only penalty)
3. MTP V6 com entropia + ativo em val (mtp.py novo):
- L_mtp = Σ α_k L_k - β H(α), β=0.01
- MTP ativo em val (métrica adicional val_mtp_loss)
- mtp_alphas aprendíveis (K=4)
4. Window Context 2M tokens (window_context.py):
- SequenceCompressor + ChunkIndexer
- Adaptive attention:… 20:36 V6: KohonenSOM4D 4D em orq_cell (8 BiGRU × 4 sem × 4x4 grid = 512 protótipos) + WindowContext 2M (ToMe + KNN IVF) + MTP (K=4) + MTPAdaptiveAttention + DynamicRepetitionPenalty + ElasticWeightConsolidation + data_augmentation + RLHF Possibility Mapping (Φ = Θ + η·r·σ(trust·τ_T)·Σwᵢgᵢ) + ReasoningEngine 8-fase + Tools (cache + mutation + agent) + optimized_pipeline + langchain_adapter 20:14 V5: W8A8 aprimorado (α aprendível via STE) + bug fix apply_w8a8_to_model + 4 hiperparâmetros auto-ajustáveis (T, τ, λ_ent, init_gate) + OOM-Killer fixes + num_layers_hyp=8 fixo 11:42 V3.2: corrigir 6 bugs + meta_T_moved (T_tracking_loss) + re-teste com Xeon IPEX 2.8 + AMX 10:43 V3.2: corrigir 6 bugs + meta_T_moved (T_tracking_loss) + re-teste com Xeon IPEX 2.8 + AMX 00:03 V2: 12.97M params, HW optimizer, parallel BBPE, DPO, reasoning, inference, 10 bugs fixed Aug 5 22:47 Upload folder using huggingface_hub