fake-news-api / src /models /inference.py

Commit History

  1. perf: optimize ensemble for CPU inference on HuggingFace Spaces⁠

    aviseth
    93a6c45

  1. fix: suppress beta/gamma warnings globally and increase ensemble timeouts for CPU⁠

    aviseth
    bb4a756
  2. fix: suppress tokenizer and model loading warnings on HF Spaces⁠

    aviseth
    5412e6a

  1. fix: f-string backslash syntax error in generate_explanation_text

    aviseth
    69e2ee8

  1. refactor: clean up inference.py, remove inline comments, extract _patch_xlnet_configs

    aviseth
    f2161c4
  2. fix: use slow tokenizer for roberta to avoid tokenizer.json format incompatibility

    aviseth
    2b9ff0f

  1. fix: default MODEL_NAMES to fine-tuned HF repos, fix .gitignore

    aviseth
    4e491ac
  2. fix: smart MODELS_DIR path resolution for Docker

    aviseth
    eca2087

  1. fix: remove deprecated use_cache from xlnet config

    aviseth
    8214774
  2. fix: patch xlnet tokenizer_config at runtime

    aviseth
    e83ba6b
  3. fix: Python 3.9 compat list[dict] type hints

    aviseth
    c5c3134
  4. fix: preload all models at startup

    aviseth
    5188693
  5. fix: evict model cache to prevent OOM

    aviseth
    b8be780
  6. fix: remove syntax error in xlnet inference

    aviseth
    2f435d5
  7. fix: xlnet list fields in _token_importance

    aviseth
    d08d3f2
  8. fix: xlnet tokenizer list fields

    aviseth
    7ff3220
  9. fix: distilbert token_type_ids and xlnet inference errors

    aviseth
    eede205
  10. Initial deployment

    06e73d2