Run this model with HF Jobs

Run Taykhoom/BERT-updated on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Taykhoom/BERT-updated. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Taykhoom/BERT-updated on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

BERT-updated

Standard BERT architecture with flash_attention_2 and sdpa support added.

This is a shared code repository β€” it contains no pretrained weights. It is used as the code backend for biological sequence models that share the vanilla BERT architecture (post-LN transformer, learned absolute position embeddings) but have model-specific vocabularies and hyperparameters:

Each of those repos stores weights, tokenizer, and config; their auto_map in config.json points here for the modeling code.

What was changed from stock transformers.BertModel

The standard HF BertModel (transformers 4.57.6) supports sdpa but not flash_attention_2. This repo adds a complete attn_implementation dispatch:

Backend Class Notes
eager BertSelfAttention Standard scaled dot-product, identical to original BERT
sdpa BertSdpaSelfAttention F.scaled_dot_product_attention, bool mask -> additive float mask
flash_attention_2 BertFlashSelfAttention flash_attn_varlen_func for padded inputs, flash_attn_func for unpadded

The rest of the architecture (embeddings, FFN, pooler, weight layout) is unchanged.

Related Models

See the full BERT-updated collection.

Model Purpose
BERT-updated Shared BERT runtime
MosaicBERT-updated Shared MosaicBERT runtime

Usage

Do not load this repo directly. Load one of the model repos listed above:

from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("Taykhoom/RNABERT", trust_remote_code=True)
model = AutoModel.from_pretrained("Taykhoom/RNABERT", trust_remote_code=True)

# Flash Attention 2
model = AutoModel.from_pretrained("Taykhoom/UTRBERT-3mer", trust_remote_code=True,
                                   attn_implementation="flash_attention_2")

Credits

manually by Taykhoom Dalal.

License

Apache 2.0.

Downloads last month
11
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collection including Taykhoom/BERT-updated