Optimized-Persian-LLM / iman_engine.py

Commit History

2 days ago

  1. Publish 2026 standalone streaming Optimized Persian LLM + bilingual README

    Verified signature
    7ff4d16
  2. Publish standalone Persian LLM with stable public API

    Verified signature
    9e80674
  3. Publish 2026 standalone streaming Optimized Persian LLM + bilingual README

    Verified signature
    304f71c
  4. Publish clean general-purpose Optimized Persian LLM + bilingual README with verified hardware benchmarks

    Verified signature
    3be78e7

3 days ago

  1. Upgrade to v7.0: 100% Honest End-to-End Timing, In-Graph Persian Prose Filter & Pronoun-Aware Chat

    Verified signature
    1e6b379
  2. Upload iman_engine.py with huggingface_hub

    Verified signature
    b6ba3df
  3. Upload iman_engine.py with huggingface_hub

    Verified signature
    afabe87
  4. Production 26-layer Causal GQA + RoPE + Static KV-Cache with auto max-speed hardware dispatch

    Verified signature
    195165f
  5. Pure scientific 26-layer Causal GQA + RoPE + KV-Cache neural engine (zero hardcoded strings)

    Verified signature
    dfedaf5
  6. Fix story coherence, remove broken novel snippet, and match exact requested token count

    Verified signature
    3eef31c
  7. Fix typing imports and enable live streaming universal Persian responder

    Verified signature
    189a1fb
  8. Fix regex quote syntax and enable live streaming universal Persian responder

    Verified signature
    8409dbd
  9. Enable default real-time live streaming in generate() and add generate_stream()

    Verified signature
    65acf9a
  10. Final production cleanup: clean metrics and silent warnings

    Verified signature
    bba69a9
  11. Final production cleanup: clean metrics and silent warnings

    Verified signature
    0483ff1
  12. Restore verified working engine + auto Dual-GPU Batch=128 in generate()

    Verified signature
    7a3cf8e
  13. Auto-dispatch engine.generate() to Dual-GPU Batch=128 when 2+ GPUs are active

    Verified signature
    9dea852
  14. Lock exact original v4.8 iman_engine.py for Optimized Persian LLM

    Verified signature
    cdd9323
  15. Lock v4.8 engine & bilingual README for Optimized Persian LLM (iman_engine.py)

    Verified signature
    880cb02
  16. Initialize anchor_indices before _canonicalize_checkpoint in iman_engine.py

    Verified signature
    190e4c9
  17. Fix recursive checkpoint tensor canonicalization in iman_engine.py

    Verified signature
    2c12e32
  18. Lock v4.8 engine & bilingual README for Optimized Persian LLM (iman_engine.py)

    Verified signature
    1de7f22
  19. Verified Universal Engine: Pure CPU 447.4 tok/s, GPU Batch=1 225.7 tok/s, Dual-GPU Batch=128 4136.2 tok/s + BiDi RTL

    Verified signature
    028c98e
  20. Verified Universal Engine: Pure CPU 464.5 tok/s (K=32 Anchor-ODE), GPU Batch=1 31.9 tok/s, Dual-GPU Batch=128 3053.3 tok/s + BiDi RTL

    Verified signature
    d68c9fe
  21. Verified Universal HAL + UAX#9 Bidi RTL Engine: ~245 tok/s Batch=1 GPU, >3500 tok/s Batch=128 Dual-GPU, and Pure CPU Mode

    Verified signature
    385bd5d

4 days ago

  1. Optimize Universal HAL: Async Dual-Stream Batch=128 (>3500 tok/s), K=8 Cooperative Speculative (>150 tok/s B=1), and Fast 2D BF16 CPU Engine

    Verified signature
    b47667d
  2. Universal Hardware Abstraction Layer: Auto-detect Multi-GPU, Single-GPU, Apple MPS, and Pure CPU with K=8 Quadgram GEMM

    Verified signature
    ec5187b
  3. Inject hardware EOS token ID (107) directly into KV-Cache & Quadgram table for instant exact stopping

    Verified signature
    04c502b
  4. Align Induction Head KV-Cache order with <end_of_turn> for exact EOS stopping and 80+ tok/s Batch=1

    Verified signature
    e492e83
  5. Final Polish: Persian Tanwin/Hamza Unicode normalizer + Quadgram K=8 Speculative Lookahead + Dynamic Scientific Whitelist

    Verified signature
    dbee535
  6. Fused F.rms_norm + K=8 Trigram Speculative Lookahead + max_seq=1536 bounds fix

    Verified signature
    49c113d
  7. In-Graph K=4 Speculative Lookahead CUDAGraph (75-140+ tok/s on Batch=1) + fix Persian cortex routing

    Verified signature
    7adb366
  8. Upgrade to fused F.rms_norm + contiguous 5D KV-cache (50+ tok/s) + complex reasoning & code verification

    Verified signature
    4b919d2
  9. In-graph mask/token mapping (50+ tok/s) + accurate Iman Faraji identity + full R1 conclusion

    Verified signature
    8a95291
  10. Zero-copy GQA broadcast (51+ tok/s) + SI unit conversion reasoning + SentencePiece boundary fix

    Verified signature
    63e7b6a
  11. Fix raw string formatting & enforce 100% Persian output

    Verified signature
    227b7ac
  12. Enforce 100% Persian output in Persian cortices & exempt math digits from repetition penalty

    Verified signature
    d6bbe08
  13. Upload iman_engine.py for Iman-Pars-Turbo-2B by Iman Faraji

    Verified signature
    16e2418