keras-nlp
keras-nlp copied to clipboard
Make Decoding Functions Graph-compatible (with XLA Support!)
Resolves #241
- [x] Greedy Search
- [ ] Beam Search (will probably open a separate PR for this)
- [x] Top-p Search
- [x] Top-k Search
- [x] Random Search
Will have to think a bit more about Beam Search.
Also re-beam search, separate PR sounds good!
/gcbrun
I think a pull request went by recently where we stopped doing seeded random generation because of discrepancies.
https://github.com/keras-team/keras-nlp/pull/269
Is this safe to land as is @chenmoneygithub @jessechancy ?
Seeded random generation should be removed. This is mainly because even when fully seeded, the randomness output is different on accelerator-testing with GPU.
@chenmoneygithub do you know why the accelerator testing is failing here? This would be a great one to actually test on accelerators.
I found it out, it's because the git branch has not synced to master branch, so the build file is outdated.
@abheesht17 Could you sync and push again? Thanks!
I found it out, it's because the git branch has not synced to master branch, so the build file is outdated.
@abheesht17 Could you sync and push again? Thanks!
Sure!