Model reference · open weights

specter2

specter2 is an open-weight embedding model from allenai, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings allenai 1 variants 778k downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What specter2 is

SPECTER2 SPECTER2 is the successor to SPECTER and is capable of generating task specific embeddings for scientific tasks when paired with adapters. This is the base model to be used along with the adapters. Given the combination of title and abstract of a scientific paper or a short texual query, the model can be used to generate effective embeddings to be used in downstream applications. Note:For general embedding purposes, please use allenai/specter2. To get the best performance on a downstream task type please load the associated adapter with the base model as in the example below. Dec 2023 Update: Model usage updated to be compatible with latest versions of transformers and adapters (newly released update to adapter-transformers) libraries. Aug 2023 Update: 1. The SPECTER2 Base and proximity adapter models have been renamed in Hugging Face based upon usage patterns as follows: 2. We have a parallel version (termed aug2023refresh) where the base transformer encoder version is pre-trained on a collection of newer papers (published after 2018). However, for benchmarking purposes, please continue using the current version. An adapter for the allenai/specter2base model that was trained on the allenai/scirepeval dataset. This adapter was created for usage with the adapters library. Model Details Model Description SPECTER2 has been trained on over 6M triplets of scientific paper citations, which are available here. Post that it is trained with additionally attached task format specific adapter modules on all the SciRepEval training tasks. Task Formats trained on: - Classification - Regression - Proximity (Retrieval) - Adhoc Search It builds on the work done in SciRepEval: A Multi-Format Benchmark for Scientific Document Representations and we evaluate the trained model on this benchmark as well. - Developed by: Amanpreet Singh, Mike D'Arcy, Arman Cohan, Doug Downey, Sergey Feldman - Shared by : Allen AI - Model type: bert-base-uncased + adapters - License: Apache 2.0 - Finetuned from model: allenai/scibert. Model Sources - Repository: https://github.com/allenai/SPECTER2 - Paper: https://api.semanticscholar.org/CorpusID:254018137 - Demo: Usage Uses Direct Use Proxim

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

Makerallenai
TypeEmbedding models
Context512 tokens
Variants1
Runs withtransformers
Released2023-02-16
Popularity778k downloads / month
Likes48
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
specter2_baseBF16Weights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys specter2 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (specter2 below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"specter2","input":"text to embed"}'

Details

Languages, data & research

Languages

en

Trained / evaluated on

allenai/scirepeval

Tags

transformers pytorch bert feature-extraction en dataset:allenai/scirepeval text-embeddings-inference endpoints_compatible deploy:azure

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want specter2 on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms