Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wait, computing SiLU directly using some numerical analysis is probably a lot faster than doing an exp each time. Is there a significant perf impact to doing this?


With expf() most of the work had already been done and I could kill two birds with one stone. If you want to do the math for doing SiLU directly, that'd be an awesome change I'd happily merge into llamafile. You might even be able to get that into PyTorch and even bigger name projects.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: