Skip to content

【Hackathon 8th No.30】在 PaddleNLP 中复现 Gemma2 #10687

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

Closed
wants to merge 1 commit into from

Conversation

robinbg
Copy link

@robinbg robinbg commented Jun 1, 2025

  1. Add Gemma2 configuration, tokenizer and model classes
  2. Add comprehensive unit tests for model and tokenizer
  3. Support key features:
    • RMS normalization
    • Rotary position embeddings
    • Multi-query attention
    • Gradient checkpointing
    • KV cache for inference

Before submitting

  • Lint code. If there are lint issues, please format the code first.
# Install and register `pre-commit` in the project folder
pip install pre-commit && pre-commit install

# Process previous code files separately
pre-commit run --file XXXX.py
  • Add test cases into tests folder. If there are codecov issues, please add tests cases first.

PR types

PR changes

Description

1. Add Gemma2 configuration, tokenizer and model classes
2. Add comprehensive unit tests for model and tokenizer
3. Support key features:
   - RMS normalization
   - Rotary position embeddings
   - Multi-query attention
   - Gradient checkpointing
   - KV cache for inference
Copy link

paddle-bot bot commented Jun 1, 2025

Thanks for your contribution!

@DrownFish19
Copy link
Collaborator

PR重复,保留 #10684 ,关闭此PR。

@DrownFish19 DrownFish19 closed this Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy