feat: add Llama-3.2-[1B/3B] support#203
Conversation
1B does not split model into multiple files so we do not need to merge the weights.
neccessary for the smol guys
|
Hi @stillmatic! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
This PR adds support for the small models in the Llama 3.2 release - 1B and 3B.
There are two pieces of custom logic we needed to implement for this to work:
I think this is all we need - the local testing generates reasonable results for 1B, 3B, and 8B (eager and compiled). note: in local testing I needed to comment out
torch._functorch.config.enable_autograd_cache = Truewithtorch 2.4.1- I assume this was merged and supported by default?Testing:
3B model:
1B model:
8B model (regression check)