• SangBin Cho's avatar
    [Core] Fix circular reference which leaked llm instance in local dev env (#4737) · 6a0f6172
    SangBin Cho authored
    Storing exception frame is extremely prone to circular refernece because it contains the reference to objects.
    
    When tensorizer is not installed, it leaks llm instance because error frame has references to various modules which cause circular reference problem.
    
    I also found spec decoding has a circular reference issue, and I solved it using weakref.proxy.
    6a0f6172
multi_step_worker.py 8.27 KB