Download checkpoints/CANONICAL_MANIFEST.json from yamero999/law2code: direct link, hf CLI and curl.
- Browser
- Download file 7.43 kB
-
https://huggingface.co/spaces/yamero999/law2code/resolve/main/checkpoints/CANONICAL_MANIFEST.json
- Command line
-
hf download hf://spaces/yamero999/law2code/checkpoints/CANONICAL_MANIFEST.json
-
curl -L -o CANONICAL_MANIFEST.json https://huggingface.co/spaces/yamero999/law2code/resolve/main/checkpoints/CANONICAL_MANIFEST.json
7.43 kB
| { | |
| "schema_version": "1.0.0", | |
| "release_version": "v6.1.0-prod", | |
| "spec_id": "MF-SPEC-S1-V6.1.0", | |
| "canonical_status": "LOCKED_CANONICAL", | |
| "updated_at": "2026-11-19T22:55:00+05:30", | |
| "naming_convention": "stage<STAGE_ID>_<SCOPE>_<CORE_METHOD>_<VERSION>.pt", | |
| "invariants": { | |
| "zero_regex": true, | |
| "zero_hardcoded_doc_ids": true, | |
| "is_authorized_to_disburse": false, | |
| "post_ewc_m1_flush_enforced": true | |
| }, | |
| "stages": { | |
| "stage0": { | |
| "name": "Foundational Representation", | |
| "status": "CANONICAL", | |
| "scope": "Pretrained legal syntax & discourse topology", | |
| "method": "Salient MLM (16k steps) + Subword 8192 Hashing + Char-CNN + 28D Discourse Geometry", | |
| "checkpoint": "stage0_backbone_mlm_salient_16k.pt", | |
| "legacy_alias": "backbone_mlm_salient_16k.pt", | |
| "sha256": "3BBC9BAB9A5B6297A2CDC1012488CB2D00690216A535E0B4DC300DE9B2A74002", | |
| "size_bytes": 18111030, | |
| "source_modules": [ | |
| "src/lexical_encoder.py", | |
| "src/core_features.py", | |
| "src/train_backbone_mlm.py" | |
| ] | |
| }, | |
| "stage1": { | |
| "name": "Atomic Non-Operand Parser & Dual-Memory Continual Learner", | |
| "status": "CANONICAL", | |
| "version": "v6.1.0-prod", | |
| "scope": "Strictly Non-Operands (9 classes: MONEY, RATE, DATE, DURATION, COUNT, ACTOR_SCOPE, DEFINED_TERM, OP, XREF; 37 BILOU tags; 0 operands)", | |
| "method": "4-Level Factorized Hierarchical Decision Tree (3-Token Receptive Window Gate + Superfamily + Definition-Gated Leaves + Decoupled BILOU Tensor) + Dual-Memory Continual Learning (M1 Cosine Episodic Memory tau>=0.94 + M2 Diagonal Fisher EWC)", | |
| "checkpoint": "stage1_non_operands_tree_cl_v6_full.pt", | |
| "legacy_alias": "stage1_non_operands_tree_full.pt", | |
| "sha256": "AF36A998085D00BB08E86C431F58FC728E16771E4CD5167344D84ADEEA8AE3A0", | |
| "size_bytes": 19375698, | |
| "fold_checkpoints": [ | |
| "stage1_non_operands_tree_fold1.pt", | |
| "stage1_non_operands_tree_fold2.pt", | |
| "stage1_non_operands_tree_fold3.pt", | |
| "stage1_non_operands_tree_fold4.pt", | |
| "stage1_non_operands_tree_fold5.pt" | |
| ], | |
| "metrics": { | |
| "blind_5fold_oof_exact_f1": 91.97, | |
| "blind_5fold_oof_precision": 90.48, | |
| "blind_5fold_oof_recall": 93.52, | |
| "full_corpus_exact_f1": 99.17, | |
| "full_corpus_relaxed_f1": 99.36, | |
| "full_corpus_precision": 99.26, | |
| "full_corpus_recall": 99.08, | |
| "sara_ood_spans_extracted": 951, | |
| "cl_m1_latency_ms": 28.2, | |
| "cl_ewc_latency_sec": 22.9, | |
| "cl_ewc_anchor_regression_pct": 0.0 | |
| }, | |
| "source_modules": [ | |
| "src/stage1_tree_taxonomy.py", | |
| "src/stage1_hierarchical_model.py", | |
| "src/train_stage1_hierarchical.py", | |
| "src/continual_memory.py", | |
| "src/consolidate_ewc.py", | |
| "src/continual_parser.py", | |
| "src/canonical_registry.py" | |
| ], | |
| "deprecated_legacy": [ | |
| "stage1_atoms_fold1..5.pt", | |
| "stage1_moe_fold1.pt", | |
| "stage1_moe_pack123_v2_fold1..5.pt", | |
| "src/train_stage1_atoms.py", | |
| "src/infer_statute.py (MudraForgeStatuteParser class only; tokenizer remains canonical)" | |
| ] | |
| }, | |
| "stage1_5": { | |
| "name": "Catala Operand Specialist & Dual-Memory Continual Learner", | |
| "status": "CANONICAL", | |
| "version": "v2.1-s1cond-slotmask", | |
| "scope": "Strictly Algebraic Variables & Operands across 4 Root Branches (NUMERIC_METRIC, CATEGORY_FILTER, DOC_POINTER, COMPLIANCE_ATTESTATION; 17 BILOU tags) + REJECT_SPAN", | |
| "method": "Cross-Stage Stage 1 10-Ch Semantic Conditioning (2-Layer Transformer) + 4-Branch Factorized BILOU Tree + Stage 1 Mutual-Exclusion Fence + StatutorySpanPooler & HierarchicalTreeRouter (Conformal Entropy Gate T=1.35, threshold=0.50) + Dual-Memory Continual Learning (M1.5 Cosine Memory tau>=0.94 + M2 Diagonal Fisher EWC)", | |
| "checkpoint": "stage1_5_operands_catala_tree_v2_full.pt", | |
| "legacy_alias": "stage1_5_operands_catala_tree_v1.pt", | |
| "sha256": "7A7804B3B22B5023460ED2C9A797A845F0BF39C42D26270A7A20E52B561EE49D", | |
| "size_bytes": 25991590, | |
| "metrics": { | |
| "blind_fold1_untyped_f1_iou50": 85.41, | |
| "blind_fold1_numeric_metric_f1": 88.2, | |
| "blind_fold1_compliance_attestation_f1": 76.2, | |
| "blind_fold1_router_branch_acc": 94.8, | |
| "blind_fold1_catala_leaf_exact": 97.3, | |
| "full_corpus_exact_f1": 98.52, | |
| "full_corpus_precision": 97.49, | |
| "full_corpus_recall": 99.57, | |
| "full_corpus_catala_leaf_exact": 97.6, | |
| "sara_ood_operands_extracted": 137, | |
| "sara_ood_conformal_custom_fallbacks": 124 | |
| }, | |
| "source_modules": [ | |
| "src/stage1_5_operand_tree_model.py", | |
| "src/train_stage1_5_operands.py", | |
| "src/span_pooler.py", | |
| "src/hierarchical_tree_router.py", | |
| "src/catala_tree_router.py", | |
| "src/continual_memory.py", | |
| "src/consolidate_ewc.py", | |
| "src/continual_parser.py" | |
| ] | |
| }, | |
| "stage2": { | |
| "name": "Clause Scope Specialist", | |
| "status": "CANONICAL", | |
| "version": "v3.0.0-41bridge-prod", | |
| "scope": "4 Gold Clause Scopes (COND, EXCEPTION, RULE_EFFECT, INLINE_DEF; 17 BILOU tags)", | |
| "ingress_contract": "41-Tag Ingress Projection = 37 Stage 1 Non-Operand Tags + 4 Stage 1.5 BILOU Operand Channels via MudraForgeCanonicalPipeline", | |
| "method": "Geometric Clause Span Specialist (Stage2ScopeSpecialistV3, 32D Span Geometry + Invariant Masking + 41-Tag Bridge)", | |
| "checkpoint": "stage2_clauses_v2_full.pt", | |
| "legacy_alias": "stage2_clauses_v2_fold1.pt", | |
| "sha256": "D141346C2EA3732386A3B54AFE1F39F5583BB392C01CEA9EBEAB74A9ABA300AA", | |
| "size_bytes": 18926667, | |
| "metrics": { | |
| "full_corpus_iou50_f1": 97.05, | |
| "full_corpus_exact_f1": 87.73, | |
| "full_corpus_precision": 95.0, | |
| "full_corpus_recall": 99.2, | |
| "peak_cuda_vram_mb": 270.4 | |
| }, | |
| "source_modules": [ | |
| "src/train_stage2_clauses.py" | |
| ] | |
| }, | |
| "stage2b": { | |
| "name": "Boundary & Overlap Refiner", | |
| "status": "CANONICAL", | |
| "version": "v2.0.0-snap-prod", | |
| "scope": "Micro boundary precision, clause overlap resolution, edge ambiguity snapping", | |
| "method": "Clause Boundary Pointer Network (BiGRU Window Pointer Softmax over [s-6..s+6] and [e-6..e+6] + identity prior)", | |
| "checkpoint": "stage2_refiner_noppo_v2_full.pt", | |
| "legacy_alias": "stage2_refiner_noppo_v2_fold1.pt", | |
| "sha256": "EC7D0731103010530E1426B326D4B739A9E241000A4C2C029ED3E903BD835D1D", | |
| "size_bytes": 1887746, | |
| "metrics": { | |
| "base_exact_f1": 87.73, | |
| "refined_exact_f1": 94.93, | |
| "exact_f1_gain": 7.2, | |
| "overlap_f1": 97.05, | |
| "zero_recall_loss": true | |
| }, | |
| "source_modules": [ | |
| "src/train_stage2_refiner.py", | |
| "src/train_stage2_ppo.py" | |
| ] | |
| }, | |
| "stage3": { | |
| "name": "Symbolic AST & Catala Compiler", | |
| "status": "DETERMINISTIC_SYMBOLIC", | |
| "scope": "Executable Catala code & JSON-LD AST generation", | |
| "method": "Deterministic AST Decompiler + Statutory Disbursal Invariant (isAuthorizedToDisburse: false)", | |
| "checkpoint": null, | |
| "source_modules": [ | |
| "src/decompile_to_catala.py" | |
| ] | |
| } | |
| } | |
| } | |