Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Phi 3.5 MoE model #2460

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EricLBuehler
Copy link
Member

The Phi 3.5 MoE model is a ~42B parameter model with 16 experts, using 2 active.

This PR implements the model and provides a simple inference example.

Additionally, this PR adds a layers module to candle_transformers. Perhaps we can use this to store useful layers, such as Phi 3 or Llama RoPE. In particular, the Phi 3 RoPE implementation has been added. This is currently only used in the MoE model, but I was wondering if we could also use this in the regular Phi 3 model?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant