Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Initial Commit (add pyright + test by adding few annotations) * Slightly more typing added * more typing * Additional typing * Completed typing for hook_points.py file * todo clarifications * formatting changes to hook_points.py * Apply some suggestions from code review Co-authored-by: Alan <[email protected]> * Added typing for Literals and changed some assertions to if statements * formatting * update to accout for merged code * small typing issue * changing hookfunction protocol + more assertions * change the slice input * change from isinstance to callable checks * fix: Update Gemma to reflect upstream HF changes (#596) * update activation function to tanh approximation * keep RMSNorm calcs in float32 and match cfg dtype for embedding scaling * formatting * keep mypy happy * formatting * allow user to force trust_remote_code=true via from_pretrained kwargs (#597) * change + revert HookFunctionProtocol * format * module_output is now just a tensor * set module ouput to be any type --------- Co-authored-by: Alan <[email protected]> Co-authored-by: Bryce Meyer <[email protected]> Co-authored-by: cmathw <[email protected]> Co-authored-by: Clement Dumas <[email protected]>
- Loading branch information