Skip to page content
SAVRN
Search Plan a project

Open-weight model · Feature extraction

modernbert-large-pan2020-authorship-verification

by Peter KIrby peterkirby/modernbert-large-pan2020-authorship-verification

modernbert-large-pan2020-authorship-verification is an open-weight model for feature extraction from Peter KIrby. It has 395M parameters and a 8,192-token context. At 16-bit it needs about 0.9 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

A full fine-tune of answerdotai/ModernBERT-large for comparing whether two English fanfiction documents share an author.

Parameters395M
Context8,192
Weights2.4 GB
License—
AccessOpen weights
Monthly Downloads—

Runs On

What it takes to serve modernbert-large-pan2020-authorship-verification (395M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.8 GB 0.9 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.4 GB 0.5 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.2 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 18, 2026.

modernbert-large-pan2020-authorship-verification on every accelerator the SAVRN Index prices, at every precision

Model Card

A full fine-tune of answerdotai/ModernBERT-large for comparing whether two English fanfiction documents share an author. Training used peterkirby/pan2020dictauthorfandomdoc, a global contrastive batch of 4096 documents, and a maximum input length of 4096 tokens per document. The saved binary cosine-similarity rule achieved 98.4199% accuracy on the PAN21 test split. The original evaluation records are included in evaluationresults.json and traininghistory.parquet. The encoder has 28 Transformer layers, 1024-dimensional hidden states, and 394,781,696 encoder parameters. It uses the ModernBERT tokenizer, attention-mask-aware mean pooling over all non-padding tokens, and L2 normalization.…

Excerpt from the card by Peter KIrby.

Configuration

Architecture
ModernBertModel
Context length (tokens)
8,192
Layers
28
Hidden size
1,024
Feed-forward size
2,624
Attention heads
16
Vocabulary size
50,368
Model type
modernbert

Identity and Version

Repository
peterkirby/modernbert-large-pan2020-authorship-verification
Publisher
Peter KIrby
Task
Feature extraction
Modality
Text
Library
transformers
Parameters
395M parameters
Languages
en
Revision
171ec8a0285f8ae6b49ccfe1501920315458f3fa
First published
2026-10-02
Last updated
2026-10-02

Files and Weights

19 files, 2.4 GB in total. The weights are 2 files totalling 2.4 GB in ckpt, safetensors.

Weights2 files · 2.4 GB
Configuration8 files · 12.6 KB
Tokenizer2 files · 3.6 MB
Documentation2 files · 25.4 KB
Other4 files · 9.6 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
checkpoint/model.ckptWeights1.6 GB 48adf964a60b
model.safetensorsWeights789.6 MB b327ce3257ff
authorship_verification.pyConfiguration3.8 KB —
authorship_verification_config.jsonConfiguration805 B —
config.jsonConfiguration2.9 KB —
evaluation_results.jsonConfiguration510 B —
export_verification.jsonConfiguration771 B —
provenance.jsonConfiguration2.2 KB —
training_config.yamlConfiguration1.1 KB —
training_hyperparameters.jsonConfiguration600 B —
BASE_MODEL_LICENSE.txtDocumentation11.4 KB —
README.mdDocumentation14.0 KB —
SHA256SUMSOther1.5 KB —
requirements.txtOther76 B —
training_history.parquetOther5.7 KB a3d38dd34bc2
training_requirements.txtOther2.3 KB —
.gitattributesRepository1.5 KB —
tokenizer.jsonTokenizer3.6 MB —
tokenizer_config.jsonTokenizer377 B —

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
2.4 GB
Download from Peter KIrby

Released by Peter KIrby through its official repository on Hugging Face.

Built From

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
PAN20 test Configuration pan20Task Binary authorship verificationMetric Accuracy (%)Comparison conditions not established 98.295 peterkirby
Publisher reported
Evaluated revision not stated —
PAN20 test Configuration pan20Task Binary authorship verificationMetric Binary F1Comparison conditions not established 0.984217 peterkirby
Publisher reported
Evaluated revision not stated —
PAN21 test Configuration pan21Task Binary authorship verificationMetric Accuracy (%)Comparison conditions not established 98.4199 peterkirby
Publisher reported
Evaluated revision not stated —
PAN21 test Configuration pan21Task Binary authorship verificationMetric Binary F1Comparison conditions not established 0.984047 peterkirby
Publisher reported
Evaluated revision not stated —

Memory Requirements

PrecisionWeights in memory
As published2.4 GB
16-bit0.8 GB
8-bit0.4 GB
4-bit0.2 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About modernbert-large-pan2020-authorship-verification

How much GPU memory does modernbert-large-pan2020-authorship-verification need?

About 0.9 GB at 16-bit and 0.2 GB at 4-bit: the weights (395M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run modernbert-large-pan2020-authorship-verification on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

What is modernbert-large-pan2020-authorship-verification's context length?

8,192 tokens, from the maximum position embeddings in its published configuration.

Similar Models

For more details please refer to our Github: FlagEmbedding. If you are looking for a model that supports more languages, longer texts, and other retrieval methods, you can try using bge-m3. FlagEmbedding focuses on retrieval-augmented LLMs, consisting of the following projects currently: - 1/30/2024: Release BGE-M3, a new member to BGE model series! M3 stands for Multi-linguality (100+ languages), Multi-granularities (input length up to 8192), Multi-Functionality (unification of dense, lexical, multi-vec/colbert retrieval). It is the first embedding model that supports all three retrieval methods, achieving new SOTA on multi-lingual (MIRACL) and cross-lingual (MKQA) benchmarks. Technical…

Open weights mit 335M parameters 512 tokens sentence-transformers

Model · Feature extraction

mxbai-embed-large-v1

Mixedbread

Here, we provide several ways to produce sentence embeddings. Please note that you have to provide the prompt Represent this sentence for searching relevant passages: for query if you want to use it for retrieval. Besides that you don't need any prompt. Our model also supports Matryoshka Representation Learning and binary quantization. Here, we provide several ways to produce sentence embeddings. Please note that you have to provide the prompt Represent this sentence for searching relevant passages: for query if you want to use it for retrieval. Besides that you don't need any prompt. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: You can then…

Open weights apache-2.0 335M parameters 512 tokens sentence-transformers

Model · Feature extraction

UAE-Large-V1

WhereIsAI

WhereIsAI/UAE-Large-V1 is licensed under MIT. Feel free to use it in any scenario. If you use it for academic papers, you could cite us via citation info. Welcome to using AnglE to train and infer powerful sentence embeddings. Achievements - May 16, 2024 | AnglE's paper is accepted by ACL 2024 Main Conference - Dec 4, 2023 | Our universal English sentence embedding WhereIsAI/UAE-Large-V1 achieves SOTA on the MTEB Leaderboard with an average score of 64.64! - WhereIsAI/UAE-Code-Large-V1: This model can be used for code or GitHub issue similarity measurement. There is no need to specify any prompts. For retrieval purposes, please use the prompt Prompts.C for query (not for document). Infinity…

Open weights mit 335M parameters 512 tokens sentence-transformers

Model · Feature extraction

multilingual-e5-large-instruct

Liang Wang

Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, Furu Wei, arXiv 2024 This model has 24 layers and the embedding size is 1024. Below are examples to encode queries and passages from the MS-MARCO passage ranking dataset. Usage with Infinity: This model is initialized from xlm-roberta-large and continually trained on a mixture of multilingual datasets. It supports 100 languages from xlm-roberta, but low-resource languages may see performance degradation. First stage: contrastive pre-training with 1 billion weakly supervised text pairs. Check out unilm/e5 to reproduce evaluation results on the BEIR and MTEB benchmark. 1. Do I need to add instructions to the query? Yes, this…

Open weights mit 560M parameters 514 tokens sentence-transformers

Model · Feature extraction

multilingual-e5-large

Liang Wang

Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, Furu Wei, arXiv 2024 This model has 24 layers and the embedding size is 1024. Below is an example to encode queries and passages from the MS-MARCO passage ranking dataset. This model is initialized from xlm-roberta-large and continually trained on a mixture of multilingual datasets. It supports 100 languages from xlm-roberta, but low-resource languages may see performance degradation. For all labeled datasets, we only use its training set for fine-tuning. For other training details, please refer to our paper at https://arxiv.org/pdf/2402.05672. Check out unilm/e5 to reproduce evaluation results on the BEIR and MTEB…

Open weights mit 560M parameters 514 tokens sentence-transformers

We have updated the new reranker, supporting larger lengths, more languages, and achieving better performance. More details please refer to our Github: FlagEmbedding. FlagEmbedding focuses on retrieval-augmented LLMs, consisting of the following projects currently: - 3/18/2024: Release new rerankers, built upon powerful M3 and LLM (GEMMA and MiniCPM, not so large actually) backbones, supporitng multi-lingual processing and larger inputs, massive improvements of ranking performances on BEIR, C-MTEB/Retrieval, MIRACL, LlamaIndex Evaluation. - 3/18/2024: Release Visualized-BGE, equipping BGE with visual capabilities. Visualized-BGE can be utilized to generate embeddings for hybrid image-text…

Open weights mit 560M parameters 514 tokens transformers