Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

llama : add BERT support #2872

Copy link
Copy link
Closed
Closed
Copy link
@ggerganov

Description

@ggerganov
Issue body actions

There is a working bert.cpp implementation.
We should try to implement this in llama.cpp and update the embedding example to use it.

The implementation should follow mostly what we did to integrate Falcon.
Here are the main steps:

  • Update gguf.py with BERT arch KV pairs and tensors
  • Python convert script using gguf.py to generate F16 model
  • add tokenizer implementation in llama.cpp
  • add function to build BERT graph
  • add any new ops in ggml if needed
  • add CUDA offloading
  • add tokenizer tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    modelModel specificModel specific

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.