jinaai / jina-bert-flash-implementation

huggingface.co
Total runs: 696.1K
24-hour runs: 0
7-day runs: -86.9K
30-day runs: -155.4K
Model's Last Updated: May 31 2024

Introduction of jina-bert-flash-implementation

Model Details of jina-bert-flash-implementation

BERT with Flash-Attention

Installing dependencies

To run the model on GPU, you need to install Flash Attention. You may either install from pypi (which may not work with fused-dense), or from source. To install from source, clone the GitHub repository:

git clone [email protected]:Dao-AILab/flash-attention.git

The code provided here should work with commit 43950dd . Change to the cloned repo and install:

cd flash-attention && python setup.py install

This will compile the flash-attention kernel, which will take some time.

If you would like to use fused MLPs (e.g. to use activation checkpointing), you may install fused-dense also from source:

cd csrc/fused_dense_lib && python setup.py install
Configuration

The config adds some new parameters:

  • use_flash_attn : If True , always use flash attention. If None , use flash attention when GPU is available. If False , never use flash attention (works on CPU).
  • window_size : Size (left and right) of the local attention window. If (-1, -1) , use global attention
  • dense_seq_output : If true, we only need to pass the hidden states for the masked out token (around 15%) to the classifier heads. I set this to true for pretraining.
  • fused_mlp : Whether to use fused-dense. Useful to reduce VRAM in combination with activation checkpointing
  • mlp_checkpoint_lvl : One of {0, 1, 2} . Increasing this increases the amount of activation checkpointing within the MLP. Keep this at 0 for pretraining and use gradient accumulation instead. For embedding training, increase this as much as needed.
  • last_layer_subset : If true, we only need the compute the last layer for a subset of tokens. I left this to false.
  • use_qk_norm : Whether or not to use QK-normalization
  • num_loras : Number of LoRAs to use when initializing a BertLoRA model. Has no effect on other models.

Runs of jinaai jina-bert-flash-implementation on huggingface.co

696.1K
Total runs
0
24-hour runs
-15.7K
3-day runs
-86.9K
7-day runs
-155.4K
30-day runs

More Information About jina-bert-flash-implementation huggingface.co Model

jina-bert-flash-implementation huggingface.co

jina-bert-flash-implementation huggingface.co is an AI model on huggingface.co that provides jina-bert-flash-implementation's model effect (), which can be used instantly with this jinaai jina-bert-flash-implementation model. huggingface.co supports a free trial of the jina-bert-flash-implementation model, and also provides paid use of the jina-bert-flash-implementation. Support call jina-bert-flash-implementation model through api, including Node.js, Python, http.

jina-bert-flash-implementation huggingface.co Url

https://huggingface.co/jinaai/jina-bert-flash-implementation

jinaai jina-bert-flash-implementation online free

jina-bert-flash-implementation huggingface.co is an online trial and call api platform, which integrates jina-bert-flash-implementation's modeling effects, including api services, and provides a free online trial of jina-bert-flash-implementation, you can try jina-bert-flash-implementation online for free by clicking the link below.

jinaai jina-bert-flash-implementation online free url in huggingface.co:

https://huggingface.co/jinaai/jina-bert-flash-implementation

jina-bert-flash-implementation install

jina-bert-flash-implementation is an open source model from GitHub that offers a free installation service, and any user can find jina-bert-flash-implementation on GitHub to install. At the same time, huggingface.co provides the effect of jina-bert-flash-implementation install, users can directly use jina-bert-flash-implementation installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

jina-bert-flash-implementation install url in huggingface.co:

https://huggingface.co/jinaai/jina-bert-flash-implementation

Url of jina-bert-flash-implementation

jina-bert-flash-implementation huggingface.co Url

Provider of jina-bert-flash-implementation huggingface.co

jinaai
ORGANIZATIONS

Other API from jinaai

huggingface.co

Total runs: 80.9K
Run Growth: -29.0K
Growth Rate: -35.91%
Updated:April 08 2026
huggingface.co

Total runs: 65.8K
Run Growth: -47.6K
Growth Rate: -72.31%
Updated:April 08 2026
huggingface.co

Total runs: 3.1K
Run Growth: 1.7K
Growth Rate: 54.06%
Updated:September 18 2026
huggingface.co

Total runs: 1.5K
Run Growth: 378
Growth Rate: 25.82%
Updated:March 04 2025
huggingface.co

Total runs: 1.3K
Run Growth: 785
Growth Rate: 61.81%
Updated:April 03 2026
huggingface.co

Total runs: 271
Run Growth: 16
Growth Rate: 5.90%
Updated:December 17 2025