Why do we implement models like Llama again in examples/models/ and how is it different from the HF implementation for the same?

Hi everyone,

I noticed that in executorch, the models are also implemented in examples/model/ which are used for exporting the model to ExportedProgram. But my question is how is this model implementation different from HF implementation and also the optimum-executorch flow for exporting the models.

This question is answered here: Why are models like Llama implemented again in examples/models/ ? · Issue #11130 · pytorch/executorch · GitHub