facebookresearch / theseus

A library for differentiable nonlinear optimization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with linalg.cholesky

EmeryLee97 opened this issue · comments

❓ Questions and Help

When I run my code, this error keeps appearing. I use LM optimizer and set step_size to 0.1, what can be the problem that causes this issue?

/theseus/optimizer/nonlinear/nonlinear_least_squares.py:150: RuntimeWarning: There was an error while running the linear optimizer. Original error message: linalg.cholesky: (Batch element 0): The factorization could not be completed because the input is not positive-definite (the leading minor of order 55 is not positive-definite)..
warnings.warn(msg, RuntimeWarning)

Solved this by setting {"damping": 0.1} in optimizer_kwargs by following AutoGPTQ/AutoGPTQ#196 (comment)