api / backend

Commit History

  1. Backend: ephemeral flag on analyze stream β€” leave no cache trace⁠

    gary-boon +1: Claude Opus 4.7 (1M context)
    88879ce
  2. Backend: add mask_positions intervention for What-if "Test this token"⁠

    gary-boon +1: Claude Opus 4.7 (1M context)
    f578686

  1. Backend: unembedding cosine emission + Devstral tokenizer fallback⁠

    garyboon +1: Claude Opus 4.7 (1M context)
    3a10cf3

  1. Emit per-token embedding L2 norms for RQ1 Step 3⁠

    garyboon +1: Claude Opus 4.7 (1M context)
    336085f
  2. Emit per-layer top-K SwiGLU intermediate activations for RQ1 Step 5⁠

    garyboon +1: Claude Opus 4.7 (1M context)
    019492b

  1. Emit effective_probability and sampling eligibility per alternative⁠

    gary-boon
    6f43bd6
  2. Expose query_position and query_token_id in /attention/row response⁠

    gary-boon
    d2d962d
  3. Derive aggregate-row num_heads from request metadata, not live model⁠

    gary-boon
    3506846

  1. Fix empty text and incorrect is_special for Mistral control tokens⁠

    gary-boon +1: Claude Opus 4.6 (1M context)
    b5e4add

  1. Fix score-all classification in vectorised path⁠

    gary-boon +1: Claude Opus 4.6 (1M context)
    e375e45

  1. Refactor head classification from cascade to score-all-then-rank⁠

    gary-boon +1: Claude Opus 4.6 (1M context)
    10baadf
  2. Add FFN contribution metrics and gate activation stats to research endpoint⁠

    gary-boon +1: Claude Opus 4.6 (1M context)
    82349c1

  1. Add tuned lens as supplementary projection mode for logit lens⁠

    gary-boon +1: Claude Opus 4.6
    6f48db0
  2. Rename 'counterfactual' terminology to 'input ablation' in docstrings⁠

    gary-boon +1: Claude Opus 4.6
    0d76811
  3. Fix margin winner_token in margin_data and extract _classify_stability helper⁠

    gary-boon +1: Claude Opus 4.6
    ecf49a2
  4. Add margin-based decision analysis, interventional counterfactuals, and run comparison (v3.0)⁠

    gary-boon +1: Claude Opus 4.6
    121a2d9

  1. Add deep inspection: data-driven pattern classification, attention/MLP tracking, logit lens⁠

    gary-boon +1: Claude Opus 4.6
    54d9b6e

  1. Change default model to Devstral and optimise attention extraction⁠

    gary-boon +1: Claude Opus 4.6
    d8d197a

  1. Fix MistralTokenizer loading and token section boundaries⁠

    gary-boon +1: Claude Opus 4.5
    76b614d

  1. Fix MistralTokenizer not loaded during model switch⁠

    gary-boon +1: Claude Opus 4.5
    2bdf299

  1. feat: add top-k/top-p sampling and detailed logits/probability tracking⁠

    gary-boon +1: Claude Opus 4.5
    2c6343b

  1. fix: Improve token alternatives numerical stability and temperature control⁠

    gary-boon +1: Claude Opus 4.5
    bc1f0e0

  1. Store matrices as numpy arrays instead of Python lists⁠

    gary-boon +1: Claude Opus 4.5
    f2e89c2
  2. Add per-step memory cleanup for large model support⁠

    gary-boon +1: Claude Opus 4.5
    a94eb19
  3. Fix RAM exhaustion for large token generation⁠

    gary-boon +1: Claude Opus 4.5
    959074d
  4. feat: add auto_complete parameter for token generation⁠

    gary-boon +1: Claude Opus 4.5
    bb689ce
  5. fix: add QKV extraction support for Mistral/Devstral architecture⁠

    gary-boon +1: Claude Opus 4.5
    d1d37a8
  6. feat: implement lazy-loading for attention matrices⁠

    gary-boon +1: Claude Opus 4.5
    929ba88

  1. Add avg_entropy calculation for attention heads⁠

    gary-boon +1: Claude Opus 4.5
    66a46b6

  1. Revert QKV visualization fixes - need better approach for data streaming⁠

    gary-boon +1: Claude Opus 4.5
    d0b7e29
  2. Add safety checks for missing QKV keys⁠

    gary-boon +1: Claude Opus 4.5
    a79cb83
  3. Limit QKV matrices to top 5 heads per layer to reduce response size⁠

    gary-boon +1: Claude Opus 4.5
    decb5ab
  4. Fix QKV matrix extraction for Mistral/Devstral architecture⁠

    gary-boon +1: Claude Opus 4.5
    9056859
  5. Fix QKV visualization for Mistral/Devstral architecture⁠

    gary-boon +1: Claude Opus 4.5
    4ec134b

  1. Fix: Import time module at top level for SSE events⁠

    gary-boon +1: Claude Opus 4.5
    15a862b
  2. Add SSE streaming endpoint for real-time analysis progress⁠

    gary-boon +1: Claude Opus 4.5
    172a186
  3. feat: Include token metadata in analysis response⁠

    gary-boon +1: Claude Opus 4.5
    ee0f6c9
  4. feat: Implement tier-based model filtering by device type⁠

    gary-boon +1: Claude Opus 4.5
    6bf9f5c
  5. Fix: Add attn_implementation="eager" to model switch function⁠

    gary-boon +1: Claude Opus 4.5
    f94a7ae

  1. Add tokenSections boundaries and update system prompt⁠

    gary-boon +1: Claude Opus 4.5
    c6f4cc5
  2. Fix: Handle MistralCommonTokenizer pad_token setter⁠

    gary-boon +1: Claude Opus 4.5
    e20ccaf
  3. Integrate mistral-common for correct Devstral tokenization⁠

    gary-boon +1: Claude Opus 4.5
    ed06dcb
  4. Remove mistral_common to fix dependency conflict⁠

    gary-boon +1: Claude Opus 4.5
    3d9d9ee
  5. Use mistral_common for proper Devstral prompt formatting⁠

    gary-boon +1: Claude Opus 4.5
    3e80769
  6. Add system prompt support for instruction-tuned models⁠

    gary-boon +1: Claude Opus 4.5
    2860768
  7. fix: Simpler prompt format and temperature=0 for Devstral⁠

    gary-boon +1: Claude Opus 4.5
    76020ee
  8. fix: Sanitize JSON response for NaN/Inf float values⁠

    gary-boon +1: Claude Opus 4.5
    99f6209
  9. fix: Check chat_template is set before using apply_chat_template⁠

    gary-boon +1: Claude Opus 4.5
    474927d
  10. fix: Add chat template support for Devstral instruct model⁠

    gary-boon +1: Claude Opus 4.5
    8d85da8

  1. fix: Convert bfloat16 to float32 for numpy compatibility⁠

    gary-boon +1: Claude Opus 4.5
    cb6f39c