Files
ねおん 88be6531e8 Fix: Use try-except to stabilize token counter during model access
This fixes a server crash (TypeError NoneType in torch/nn/modules/module.py) when the token counter API is triggered during model load/switch.

Standard sequential null checks failed because the crash occurred inside PyTorch's internal attribute lookup process. The whole function is wrapped in try-except as a robust defense against this race condition.
2025-11-26 16:22:35 +09:00
..
2024-03-28 23:38:57 +08:00
2023-11-26 18:22:09 +08:00
2023-06-15 17:21:56 +08:00
2023-10-31 15:23:11 +08:00
2023-08-18 18:24:17 +08:00
2023-06-15 17:21:56 +08:00
2023-06-17 15:38:00 +08:00
2023-06-24 15:41:23 +08:00
2023-07-14 17:02:12 +08:00