Skip to content

BERT example is slower than huggingface transformer with larger model on M1 MacBook Pro #1062

@edfix

Description

@edfix

I benchmarked computing sentence embeddings with e5.py script
small model = intfloat/e5-small-v2, result:
image

larger model=BAAI/bge-large-zh-v1.5, result:
image
Pure rust BERT example is still slower than huggingface transformer with BAAI/bge-large-zh-v1.5 model

Metadata

Metadata

Assignees

No one assigned

    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