Skip to content

Use search instead of match in _hf_to_fms_rope() adapter #491

@rzbhatti

Description

@rzbhatti

We recently found out that trans_required_pattern.search(name) is more robust than trans_required_pattern.match(name), which is used for exact match in granite and llama model implementations.

This issue proposes to change it in all the models e.g., Granite here, and Llama here ,

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions