Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtpForceMaxNNSize causes TRT backend: Got nonfinite for policy sum #1006

Open
kinfkong opened this issue Dec 18, 2024 · 2 comments
Open

gtpForceMaxNNSize causes TRT backend: Got nonfinite for policy sum #1006

kinfkong opened this issue Dec 18, 2024 · 2 comments

Comments

@kinfkong
Copy link
Contributor

kinfkong commented Dec 18, 2024

When the option gtpForceMaxNNSize=true is configured in certain games, such as those in SGF format (for example:

(
  ;GM[1]FF[4]CA[UTF-8]SZ[19]AW[pb][rb][gc][hc][kc][qc][cd][dd][ed][fd][hd][id][kd][he][je][gf][jf][kf][dg][hi][ji][li][mi][kj][lk][bl][cl][il][ll][ql][cm][lm][om][qm][cn][gn][jn][mn][do][ro][dp][jp][np][op][pp][dq][fq][nq][er][mr]AB[fb][kb][ob][bc][cc][dc][fc][ic][jc][pc][gd][jd][ld][pd][ge][ie][ke][le][if][qf][lj][mj][nj][hk][ik][jk][kk][bm][im][jm][km][rm][bn][in][ln][qn][rn][co][ho][po][qo][cp][qp][cq][hq][oq][pq][cr][dr][nr]KM[7.5]
  ;B[lo]ZZID[141]
)

it leads to the Got nonfinite for policy sum error when launched with Lizzie or other GPU applications. It appears that this is due to the fact that TensorRT (TRT) fails to handle the requireExactNNLen appropriately.

Using the above sgf, and with the 28bnbt weight can 100% reproduce this issue.

Thanks.

@lightvector @hyln9

@kinfkong
Copy link
Contributor Author

One more information, if gtpForceMaxNNSize=false, everything works fine.

@lightvector
Copy link
Owner

Thanks for reporting, I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants