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

Cohere2 aka Cohere2ForCausalLM #2843

Open
2 tasks done
kno10 opened this issue Dec 14, 2024 · 0 comments
Open
2 tasks done

Cohere2 aka Cohere2ForCausalLM #2843

kno10 opened this issue Dec 14, 2024 · 0 comments

Comments

@kno10
Copy link

kno10 commented Dec 14, 2024

Model description

E.g., https://huggingface.co/CohereForAI/c4ai-command-r7b-12-2024

ValueError: Unsupported model type cohere2 rank=0

Supposedly a simpler addition, a key difference to earlier models seems to be that it interleaves layers with RoPE attention and layers with no positional encoding, which allows the model to attend to tokens at an arbitrary distance. This may be beneficial with system prompts I guess - I have no actual experience with this model, and cannot provide you with further details than the links here, please contact the authors.

Open source status

  • The model implementation is available
  • The model weights are available

Provide useful links for the implementation

Implementation in transformers: https://github.com/huggingface/transformers/blob/main/src/transformers/models/cohere2/modeling_cohere2.py

Pretrained model: https://huggingface.co/CohereForAI/c4ai-command-r7b-12-2024

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

No branches or pull requests

1 participant