Skip to content

Adding Gemma 3n support? #2850

Open
@dwgb93

Description

@dwgb93

⚠️ Please check that this feature request hasn't been suggested before.

  • I searched previous Ideas in Discussions didn't find any similar feature requests.
  • I searched previous Issues didn't find any similar feature requests.

🔖 Feature description

I saw you guys were mentioned in the Gemma 3n Developer's Guide and wanted to check if you were tracking to add support for the family of MatFormer models recently released by Google.

✔️ Solution

I tried using the gemma3 examples as a starting point, and after upgrading transformers to v4.53.0 and installing timm, I still got opaque errors like

) is not supported. Currently, only the following modules are supported: torch.nn.Linear, torch.nn.Embedding, torch.nn.Conv1d, torch.nn.Conv2d, torch.nn.Conv3d, transformers.pytorch_utils.Conv1D, torch.nn.MultiheadAttention..

I'd love it if, like most other models I've finetuned with axolotl, it just worked.

❓ Alternatives

Unsloth says they have Gemma 3n support, but their page just says "Gemma 3n Notebooks coming soon! Stay tuned."

📝 Additional Context

No response

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this feature has not been requested yet.
  • I have provided enough information for the maintainers to understand and evaluate this request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions