Skip to content

Choosing an extraction model

bibr's extraction LLM reads the front page and a few other parts of a paper and returns titles, authors, affiliations, abstracts, funding and similar fields as JSON. It does not parse references (see the fine-tuned reference model) or run OCR.

bibr setup picks one of three recommended models for you, based on what your machine can run:

Scenario Recommended model Needs How it scores
Linux, NVIDIA GPU (Ampere or newer) with 20 GB or more bibr extract 4B, Qwen3.5-4B fine-tuned for bibr (scienceverse/bibr-extract-qwen35-4b) vLLM, 12.75 GiB free to start pass rate 0.920 on 1,226 papers, against 0.901 for the previous revision on the same machine: +2.0 points [+1.0, +3.0]; affiliations, the corresponding author and author names better, no field lower (below)
Linux, NVIDIA GPU (Ampere or newer) with 10–19 GB bibr extract 4B W4A16, the same model with 4-bit weights (scienceverse/bibr-extract-qwen35-4b-W4A16) vLLM, 7.75 GiB free to start pass rate 0.920 on the same 1,226 papers, level with the bf16 4B's 0.920: +0.0 points [−0.4, +0.4]
Linux, NVIDIA GPU with 5–9 GB or older than Ampere, or Windows; also 10–11 GB when setup finds a CUDA build of llama.cpp (below) bibr extract 4B GGUF, the same model for llama.cpp (scienceverse/bibr-extract-qwen35-4b-GGUF:Q8_0 from 7 GB, :Q4_K_M below) llama.cpp, which you install; GLM-OCR runs on it too pass rate on 550 of those papers, against the bf16 4B's 0.947: Q8_0 0.947, +0.0 points [−0.5, +0.5]; Q4_K_M 0.951, +0.4 [+0.0, +0.9]; both on the same OCR as the rows above. With GLM-OCR only an earlier revision was checked, on 100 papers (Q8_0) and 48 (Q4_K_M)
No suitable GPU, or you prefer a hosted model Claude Haiku 5.5 (claude-haiku-5-5) an Anthropic API key, about $0.004 a paper 221 of 252 in the October comparison below, −0.8 points [−2.4, +0.8] against Qwen3.8-27B's 223 (another harness and scorer than the rows above)

The 4B's scores are from bibr main (439d97da) on an RTX 5090, with bibr starting each build itself, OCR replayed from one cache and pointer answers off (see below), scored with the benchmark scorer (version 7). A paper passes when it did not come back empty and its title, DOI, author names and references clear the scorer's floors. Each build is paired paper by paper with the bf16 build of the same revision, and the bf16 build with the previous revision of the 4B (9199424d); see how the current 4B was scored. Haiku's score is from the comparison below, whose harness and scorer are older, so it does not compare with the 4B's. The 4B's last two revisions have not been run against Qwen3.8-27B; the one before them (6ab47a4e) passed 216, −2.8 points [−5.2, −0.8], in that comparison.

The memory is what must be free on the card each time bibr starts the model (see local model runtime for how bibr sizes it): the model's own budget (11.0 GiB for the 4B, 6.0 GiB for the W4A16 build, measured on an RTX 3090 with vLLM 0.32), plus what vLLM takes beyond it while it starts and 1 GiB for bibr's other models. That is when PaddleOCR-VL takes turns with the model, as in the defaults below on cards up to 24 GB. A model that stays up for the run beside cloud OCR or an OCR server at --ocr-url leaves bibr's other models 6 GiB less what they hold instead: about 17.25 GiB free for the 4B and 12.25 GiB for the W4A16 build. On a card of 32 GB or more the default plan keeps the 4B and PaddleOCR-VL up together for the run, which needs about 24.4 GiB free on a 32 GB card; with less free, they take turns as on smaller cards. Speculative decoding needs more and is off in the default plans that take turns (see speculative decoding).

Hosted option

When no local model fits, bibr setup recommends Claude Haiku 5.5 (LLM_PROVIDER=anthropic, LLM_MODEL=claude-haiku-5-5). The hosted setup uses Claude for OCR as well (OCR_BACKEND=anthropic, OCR_VISION_MODEL=claude-haiku-5-5), so one Anthropic key covers both, it needs the anthropic extra (which bibr setup installs with it), and page images as well as text go to Anthropic (see what leaves your machine). The 221/252 in the table above was measured with bibr's local OCR; Claude's OCR has not been scored on these papers yet, and the per-paper cost excludes it.

Defaults by card

bibr setup writes the default for your card to .env. --llm local without setup resolves the same default from the card it detects: the model, the runtime, the memory mode and the OCR. The memory mode is the one thing setup shows without writing it: bibr chooses it for each run, so a run with another --llm or --ocr, or under a container's memory limit, gets the mode that fits it. Set PIPELINE_MEMORY_MODE to hold every run to one mode. The one exception is a 10–11 GB card where setup finds a CUDA build of llama.cpp (below): setup looks on your PATH, the runtime never does. A card that reports up to 0.25 GiB under a size counts as that size (an RTX 4060 reports 8,188 MiB, an RTX 5070 12,227 MiB).

Card (Ampere or newer) Default from bibr setup Default from --llm local without setup Memory mode Batch run beside a 0.5 GiB desktop
20 GB or more 4B (bf16) on vLLM, PaddleOCR-VL on vLLM the same balanced, 8 papers a chunk 20 GB: 48 of 48 papers, 138 an hour; 24 GB: 100 of 100, 161 an hour
12–19 GB 4B W4A16 on vLLM, PaddleOCR-VL on vLLM the same balanced, 8 12 GB: 100 of 100, 187 an hour; 12 GB beside a 1.5 GiB desktop: 48 of 48, 188 an hour; 16 GB: 48 of 48, 161 an hour
10–11 GB 4B GGUF Q8_0 and GLM-OCR on llama.cpp when setup finds a CUDA llama-server of build 11282 or newer; otherwise 4B W4A16 on vLLM, PaddleOCR-VL on vLLM 4B W4A16 on vLLM, PaddleOCR-VL on vLLM aggressive, 3 10 GB, W4A16: 48 of 48, 85 an hour; the llama.cpp pair: see below
7–9 GB 4B GGUF Q8_0 on llama.cpp, GLM-OCR on llama.cpp the same aggressive, 3 8 GB: 100 of 100, 141 an hour
5–6 GB 4B GGUF Q4_K_M on llama.cpp, GLM-OCR on llama.cpp the same aggressive, 3 6 GB: 48 of 48, 151 an hour; 6 GB beside a 1.0 GiB desktop: 48 of 48, 144 an hour

The last column comes from batch runs on an RTX 3090 whose free memory was cut to the named card's size. They measure memory, not speed; see emulated-card runs for how they were made and what they found.

On 10 and 11 GB cards

On Linux and an Ampere or newer card of 10–11 GB, bibr setup runs both models on llama.cpp when it finds a CUDA build of llama-server (or of the unified llama binary) on your PATH that can start CUDA, with a --version build of 11282 or newer, the build behind every llama.cpp batch in the table above, and writes LLM_BACKEND=llama-cpp. It prints the server and its build, and bibr setup --advanced gives you the W4A16 build instead. A server it finds but does not use (a Vulkan, HIP or CPU build, a CUDA build whose CUDA cannot start on your driver, or an older build) gets one line saying why, and setup keeps W4A16. If you later remove or replace that llama.cpp build, rerun bibr setup. --llm local without setup never looks at PATH and keeps W4A16. After setup picked the llama.cpp pair, run plain bibr chew (or --llm llama-cpp), not --llm local: that would start vLLM with the GGUF build setup wrote, which vLLM cannot serve.

On an emulated 10 GB card the llama.cpp pair was faster than W4A16 on vLLM and passed as many papers; see 10 GB runs.

Cards older than Ampere (compute capability below 8.0: Turing, Volta, Pascal) get the llama.cpp row for their size at any size, for both the LLM and the automatic OCR, because bibr's vLLM models are bf16, which vLLM serves from compute capability 8.0; on an older card vLLM casts them to float16, which bibr has not tested. No batch on such a card has been recorded; this is a conservative routing rule. A cloud or remote LLM with bibr's local OCR keeps the balanced mode on cards above 8 GB, since no LLM server shares the card.

Smaller cards

Below 12 GB bibr runs in its aggressive memory mode, which unloads its own models before each start of the LLM. An 8 GB card has too little memory for vLLM, so setup runs both OCR (GLM-OCR) and the 4B's GGUF build on llama.cpp, which take turns on the card. PIPELINE_MEMORY_MODE=aggressive makes room in every chunk, at the cost of speed. Memory limits observed has the runs behind these choices, and how to run the W4A16 build on an 8 GB card that nothing else uses.

Windows, NVIDIA cards below 10 GB and NVIDIA cards older than Ampere run the models through llama.cpp (GGUF), with the largest build that fits. bibr setup recommends a local model only from 5 GB of VRAM, so in practice that is the 4B; the 2B builds are there for smaller cards through bibr setup --advanced. Apple Silicon runs the 4B, or the 2B on a Mac with less memory, through MLX:

Runtime Builds, largest first Memory
llama.cpp 4B Q8_0, 4B Q4_K_M, 2B Q8_0, 2B Q4_K_M (scienceverse/bibr-extract-qwen35-4b-GGUF, -2b-GGUF) from 7 GB down to 3 GB of VRAM
MLX (Apple Silicon) 4B 8-bit, 2B 8-bit (scienceverse/bibr-extract-qwen35-4b-mlx-8bit, -2b-mlx-8bit) from 6 GB down to 3 GB of memory

The quantized builds are made from the same merged weights. Each 4B build was paired paper by paper with the 4B's bf16 build, at bibr main 439d97da on an RTX 5090, bibr starting each build itself, one run each. The W4A16 build ran on all 1,226 papers; the FP8 and llama.cpp builds (llama.cpp serves one request at a time or two) on 550 of them: the 300 born-digital benchmark papers and the 250 development papers of gate192 and ci60, the sets of the earlier harness.

4B build Runtime Papers Pass rate bf16 on the same papers vs bf16, points
bf16 vLLM 0.32 1,226 0.920 — —
W4A16 vLLM 0.32 1,226 0.920 0.920 +0.0 [−0.4, +0.4]
FP8-Dynamic (not offered by setup) vLLM 0.32 550 0.945 0.947 −0.2 [−0.9, +0.4]
GGUF Q8_0 llama.cpp b11783 550 0.947 0.947 +0.0 [−0.5, +0.5]
GGUF Q4_K_M llama.cpp b11783 550 0.951 0.947 +0.4 [+0.0, +0.9]

Each build stays within the −4 point rule of the bf16 build, and none is more than half a point from it. The 2B's builds were scored only in the evaluation below: served by llama.cpp, its Q8_0 passes 209 and its Q4_K_M 204 (bf16 on vLLM: 207). These are single runs, and the differences from bf16 have not been tested.

Setup gives Linux cards with 10–19 GB the W4A16 build on vLLM rather than a GGUF build: on those cards PaddleOCR-VL runs on vLLM too, and bibr can hand VRAM between two vLLM servers, or between two llama.cpp servers, but not yet between vLLM and llama.cpp. So an 8 or 9 GB card, whose LLM runs on llama.cpp, gets GLM-OCR on llama.cpp too, even though PaddleOCR-VL alone fits from 8 GB; without setup, the automatic OCR does the same whenever the LLM runs on llama.cpp. bibr setup --advanced offers the 4B Q8_0 build on llama.cpp on larger cards as well, but it may run out of memory while PaddleOCR-VL and extraction share the card. The 4B's 216/252 and its difference from Qwen3.8-27B belong to an earlier revision (6ab47a4e) and come from the reference run, which served the fine-tune as an unmerged LoRA on another GPU. The MLX builds have not been scored (the current one was checked structurally only: its conversion reproduces the previous build byte for byte, and its dequantized weights match the bf16 source; the earlier ones were smoke-tested on one prompt), so setup marks them experimental. There are no 4-bit MLX builds: in their smoke tests the 4B's duplicated a funding entry and the 2B's returned award IDs as numbers.

Other choices in advanced setup

The advanced wizard also offers the 2B student on vLLM from 12 GB (scienceverse/bibr-extract-qwen35-2b, a 6.25 GiB budget at 128 sequences and 8.25 GiB free to start), Gemma 4 E4B on CUDA, and custom model IDs. When LLM_LOCAL_MODEL is unset, every managed runtime uses the build bibr setup recommends for the card: on vLLM the 4B bf16 from 20 GB and its W4A16 build below, on llama.cpp the 4B Q8_0 from 7 GB and Q4_K_M below, and the 8-bit build on vllm-mlx.

bibr used to recommend NuExtract 3 for llama.cpp and MLX. On the same papers it passes 200/252, −9.1 points [−12.7, −5.6], behind both fine-tuned models, so bibr no longer offers it.

Run bibr setup --advanced to choose another model, or set LLM_LOCAL_MODEL (local) or LLM_PROVIDER and LLM_MODEL (hosted) yourself; see configuration. A hosted Gemini or Claude model needs the google or anthropic extra.

Builds and revisions

bibr pins each 4B build to a commit on the Hugging Face Hub, so an update to a repository does not change what a bibr version runs. The current builds are on each repository's front-rows-v1 branch; pointer-v1 holds the previous revision's builds (bf16 9199424d) and main the ones before (6ab47a4e).

4B build Revision bibr uses How bibr gets it
bf16 06651e93 vLLM downloads it (--revision)
W4A16 9c4d7ba2 vLLM downloads it (--revision)
GGUF Q8_0, Q4_K_M 7c51c0de bibr downloads the one file into the Hugging Face cache; llama.cpp loads it
MLX 8-bit f4836df6 bibr downloads it into the Hugging Face cache; vllm-mlx or Rapid-MLX serves it
FP8-Dynamic df315f29 not in bibr's registry; see local model runtime

llama.cpp (-hf) and the MLX servers always download a repository's main, which is why bibr downloads those builds itself. Once a build is in the cache, it starts without the Hub, so offline runs work. Local model runtime shows how to run the previous revision.

How the current 4B was scored

The current revision (front-rows-v1, bf16 06651e93, 29 November 2026) was trained from Qwen3.5-4B again, on far more front-matter examples than the previous one: about 10,400 title/keywords and authors rows from 5,501 CC BY or CC0 papers from PubMed Central, labelled from the publishers' JATS XML and given the inputs bibr's pipeline sends, plus the earlier teacher answers for all nine of bibr's tasks. Its model card has the details.

It was compared with the previous revision (9199424d) on 1,226 papers, everything else equal: the 300 born-digital papers of bibr's public benchmark and its 90 simulated scans, 536 development papers (mostly from outside PubMed Central), and 300 PubMed Central papers drawn for checks like this one. None of them is in the training rows. A difference counts when its 95% interval (paired bootstrap over papers) excludes zero and it is at least half a point. With bibr starting each model itself on an RTX 5090 (bibr main 439d97da, MTP on, the OCR read from one cache):

Field (1,226 papers) Papers scored Previous 9199424d Current Difference [95% interval]
pass rate 1,226 0.901 0.920 +0.020 [+0.010, +0.030]
affiliations (similarity) 676 0.893 0.907 +0.013 [+0.004, +0.023]
corresponding author 643 0.505 0.807 +0.302 [+0.266, +0.341]
author names, exact 1,215 0.961 0.973 +0.012 [+0.006, +0.018]
e-mail addresses 143 0.477 0.512 +0.035 [+0.007, +0.070]
title 1,215 0.969 0.972 +0.003 [−0.004, +0.011]
abstract (ROUGE-L) 1,166 0.963 0.963 +0.001 [−0.005, +0.006]
keywords 490 0.951 0.951 +0.000 [−0.007, +0.008]
  • No field counts as a loss in any of the four groups, the reference fields included. On the benchmark's 300 born-digital papers the pass rate is 0.977 for the previous revision and 0.990 for the current one.
  • On main the corresponding author is often missing with either revision. With the ORCID iD and corresponding-author fix that is not merged yet (pull request 292), and the models served by vLLM outside bibr with the registry's flags, the current revision found the corresponding author in 0.911 of papers against 0.835, affiliations scored 0.914 against 0.899 and the pass rate 0.918 against 0.907 [+0.002, +0.021]. On 300 further PubMed Central papers, run once in that setup: affiliations 0.927 against 0.913, the corresponding author 0.860 against 0.804, no field lower.

What does not hold, or was not measured:

  • 11 of the 1,226 papers come back with no front matter, against 9 for the previous revision. Two of the extra ones are a Spanish and a Ukrainian paper whose section labels leave no front matter for the next call.
  • An issue number is given for 258 of the 1,226 papers against 268 (on the 300 PubMed Central papers, 33 against 41). The gold has no issue numbers, so whether the missing ones were right is not known. Journal names and dates are given more often (a journal for 588 papers against 554).
  • On the benchmark, the share of authors given an affiliation is 0.967 against 0.975 (12 papers with none against 9), while affiliation accuracy there is not lower.
  • Affiliation correctness outside PubMed Central is not measured: every training paper is from PMC, and the development sets have no affiliation gold (the share of authors with an affiliation there is 0.915 against 0.912). Nor is the correctness of journal, volume, issue, pages, publisher and date, for which there is no gold.
  • MTP accepts slightly fewer drafted tokens with the current revision (0.960 against 0.975, 3.83 tokens a step against 3.89), and the current revision writes about 7% fewer tokens; a batch took about as long (the first passes over all sets 2,620 s against 2,723 s).

Pointer answers (LLM_POINTER_OUTPUTS)

LLM_POINTER_OUTPUTS=true is experimental and off by default. It shortens the answers of the two front-matter calls: the title and keywords call names the abstract's first and last words and bibr copies the abstract from the front matter, and the authors call lists each affiliation once and gives each author its numbers. When the abstract cannot be placed in the text, or the answer is cut off or does not parse, bibr asks for the verbatim answer instead. The merged call (LLM_MERGED_CORE_METADATA) and the nuextract-native backend do not use it.

The current 4B was not trained on pointer answers; the previous revision (9199424d) was. With LLM_POINTER_OUTPUTS=true, on the 300 born-digital benchmark papers, bibr rejected its pointer authors answer on 296 papers (it numbered affiliations it did not list) and its pointer title/keywords answer on 22, and asked for the verbatim answer each time. The pass rate was the same as with the flag off (0.990), but abstracts (normalized edit similarity −0.007 [−0.016, −0.000]) and keywords (−0.014 [−0.032, −0.000], 4 papers worse) scored lower. With this revision the flag only adds calls.

The flag stays off by default. With the previous revision, which passed 218/252 with it on the October harness (+0.4 points [−0.8, +1.6] against the revision before it with the flag off) and wrote 300 output tokens a paper in the longer of the two calls instead of 455, two things kept it off: first-author accuracy, which the pass rule does not include, was lower with the flag on (−0.015 [−0.031, −0.003], 7 papers worse and none better), and on 3 papers bibr's pointer resolver took a wrong span of the paper text as the abstract without any warning.

How close small models get to a large one

All scores in this section come from one evaluation: the prompts and per-paper scorer of bibr 0.7.0 on 252 development papers (gate192 plus ci60), with OCR replayed from cache so only the LLM changes. A paper passes when every scored field clears its threshold. Each model is paired paper by paper with Qwen3.8-27B, which passes 223/252 (88.5%), and the brackets are 95% confidence intervals of the difference. bibr counts a model as matching the 27B when the lower end of that interval stays above −4 points.

Model Passes /252 vs Qwen3.8-27B, points
Qwen3.8-27B (reference) 223 —
Claude Haiku 5.5 (hosted) 221 −0.8 [−2.4, +0.8]
bibr extract 4B, an earlier revision (6ab47a4e; Qwen3.5-4B, fine-tuned) 216 −2.8 [−5.2, −0.8]
Qwen3.5-4B, not fine-tuned 208 −6.0 [−9.1, −3.2]
K2-Horizon-7B, not fine-tuned 208 −6.0 [−9.1, −3.2]
bibr extract 2B (Qwen3.5-2B, fine-tuned) 207 −6.3 [−9.9, −3.2]
NuExtract 3 (4.5B) 200 −9.1 [−12.7, −5.6]
Granite 4.2-8B, not fine-tuned 195 −11.1 [−15.1, −7.1]
Qwen3.5-2B, not fine-tuned 190 −13.1 [−17.5, −9.1]
Qwen3.5-0.8B, fine-tuned 180 −17.1 [−21.8, −12.7]

The current 4B revision was not part of this evaluation. On a later bibr commit (e491ed64) it passed 218 to the previous revision's 217 on the same machine, +0.4 points [−0.8, +2.0].

What this shows:

  • Large models barely differ. In an earlier run on the same 192 gate papers, Qwen3.8-27B, Gemini 3.5 Flash Lite, GLM 5.3 Flash, MiMo-V2.6-Pro, DeepSeek V4.1 Flash and Gemini 3.8 Flash all passed between 79% and 82%. Haiku 5.5 is level with the 27B on both runs.
  • Below the 27B, size costs accuracy. Off the shelf, models of 4 to 8 billion parameters trail it by 6 to 11 points and 2B models by about 13. Most of the loss is on author lists and non-English papers.
  • Fine-tuning on bibr's tasks closes about half of that gap, but no small open model clears the −4 point rule yet. The fine-tuned 4B (previous revision) is 2.8 points behind, closer than any 7–8B model off the shelf. The fine-tuned 2B is 6.3 points behind, ahead of NuExtract 3 at less than half its size. Below 2B the loss grows quickly.
  • Non-English papers are the weak spot. On the 29 non-English papers, the fine-tuned 4B (previous revision) and Haiku 5.5 each trail the 27B by 6.9 points, the 2B by 13.8 and NuExtract 3 by 20.7. These intervals are wide.

Limits of this evidence:

  • These are development papers that were used to choose prompts and models, not a sealed test set. Expect smaller margins on your own papers.
  • The gate papers' gold labels came from a Gemini model and only part of them was checked against the PDF, so they may favour Gemini-like answers.
  • Each model ran once. Haiku 5.5 rejects a temperature setting, so its answers can vary between runs.
  • Speed was measured on one RTX 3090, where the pipeline rather than the model sets the pace: the 4B processed 275 papers an hour and the 2B 291. The 2B saves memory, not time, on a card like that.

Measurement details and training data

The rest of this page records how the numbers above were made.

The defaults table

A test checks that bibr setup and --llm local without setup agree on every row of the defaults table.

Emulated-card runs

These runs emulate the card's memory, not its speed. Each one ran on an RTX 3090 whose free memory a separate process cut to what the named card has, with 0.5 GiB more taken for a desktop (on 24 GB, only the desktop), and with bibr told the card's size, and they served the previous revision of the 4B's builds, whose files have the same sizes. The papers an hour are that RTX 3090's speed with that much memory; a real card of that size runs at its own speed, which has not been measured. Each run used bibr's default memory mode and chunk size for the card, with the gpu extra installed: bibr's layout model and sentence segmenter ran on the GPU, and so did the NER reference parser in the balanced rows (the aggressive mode keeps it on the CPU). The classifiers stayed on the CPU in every row. bibr setup installs the extra on Linux for every row here. On the same 100 papers the 8 GB default passed as many as the 24 GB one (86 each, by bibr's per-paper scorer); on 48 papers the 6 GB default passed 38 to the bf16 4B's 41, a difference within chance at that size.

The 16 GB run (2026-10-26, on this release's code) had at least 4.74 GiB to spare at every start of the LLM (free memory beyond the 8 GiB a start needs). The 6 GB default has almost none: beside a 1.0 GiB desktop it finished, but the card fell to 2 MiB free and the sentence segmenter fell back to the CPU 107 times. No run covers a 6 GB card beside a desktop above 1 GiB.

10 GB runs

On an RTX 3090 cut to 10 GB beside a 0.5 GiB desktop, the W4A16 build on vLLM finished 48 papers at 85 an hour: every chunk of 3 papers restarts two vLLM servers, PaddleOCR-VL and the LLM. The 4B GGUF Q8_0 with GLM-OCR, both on llama.cpp, finished the same 48 papers at 148 an hour and passed 40 of them to W4A16's 39, a difference within chance. That run kept the LLM up between chunks, which left bibr's own models about 2 GiB while OCR ran. bibr now stops it before each chunk's OCR in the aggressive mode, as the 8 GB runs of the same pair did in every chunk after the first (150 papers an hour over 48 papers, and 141 over the 100 papers in the table above); no 10 GB run has used that rule yet.

Neither choice has been run on 10 GB beside a desktop larger than 0.5 GiB. By arithmetic from the W4A16 run, whose starts found 8.76 GiB free, its starts (7.75 GiB on vLLM 0.32, 8.00 on vLLM 0.31) would be refused beside a desktop above about 1.5 GiB (1.26 GiB on vLLM 0.31). The llama.cpp pair, stopping the LLM for OCR, would have as much memory free beside a 2.5 GiB desktop as the 8 GB runs had beside 0.5 GiB, with the same models and settings: an inference from those runs, not a run.

Memory limits observed

The 4B needs a 20 GB card: on a 16 GB card, bibr's other models soon held more than the 1.4 GiB it leaves them, and its later starts were refused (that run predates the release described next and has not been repeated). Below 12 GB bibr runs in its aggressive memory mode, which unloads its own models before each start of the LLM. In the balanced mode, when a start would not fit, bibr first releases the same models and a resident OCR server, and refuses the start, with an error that says so, only if it is still short. On a 12 GB card beside a 1.5 GiB desktop it released them before 3 of its 6 starts and finished the batch. PIPELINE_MEMORY_MODE=aggressive makes room in every chunk, at the cost of speed. An 8 GB card has too little memory for vLLM: with a desktop on it about 7 GiB is free to CUDA, and bibr refused every start of the W4A16 build (it needed 8 GiB free on vLLM 0.31, and needs 7.75 on vLLM 0.32). There setup runs both OCR (GLM-OCR) and the 4B's GGUF build on llama.cpp, which take turns on the card. If nothing else uses an 8 GB card, you can still run the W4A16 build on vLLM by setting the LLM's share yourself (LLM_LOCAL_MEM_FRACTION=0.83, about 6.3 GiB of 7.6, ran 48 papers with many ONNX out-of-memory retries); with a desktop on the card the same setting failed. The 2B student needs more than the W4A16 build on vLLM (6.25 GiB at 128 sequences, measured on vLLM 0.31). On an emulated 8 GB card with no desktop, bibr refused every start of it at the default settings; with the LLM's share set by hand it ran 48 papers. No run at the default settings beside a desktop backs it, so it is no longer the default for any card.

How the fine-tuned models were made

Both models are Qwen3.5 bases (Apache-2.0) with a LoRA adapter merged into the weights. Merging keeps the base model's multi-token prediction layers, so the checkpoints can use speculative decoding like their base (see speculative decoding for when bibr turns it on).

  • bibr extract 4B was trained on 1,444 rows from 162 open-access PMC papers: 1,113 answers that Qwen3.8-27B gave to bibr's own prompts, which its previous revision (6ab47a4e) was trained on, plus 331 of the title and keywords and authors answers restated as pointer answers. A pointer row was kept only when bibr's pointer resolver turned it back into the 27B's answer, ignoring whitespace (and, in 7 title/keywords rows, punctuation).
  • bibr extract 2B was trained on the same 1,113 answers plus 4,186 author lists from JATS XML of 6,526 open-access papers, which made up for most of its weakness on authors.

The training papers were filtered by licence. For the 27B answers, the licence statement in each PDF was read: CC BY and CC0 papers were kept and 11 with non-commercial, no-derivatives or no licence statement were dropped. The 4B's training rows come from 162 of the kept papers and its validation rows from 19 others. For the JATS author lists, the licence recorded in bibr's training pool was used: CC BY or CC0 papers were kept and 474 papers without a recorded licence were dropped. None of the training papers overlaps the evaluation papers above, matched by DOI, PMCID and title.