Skip to page content
SAVRN
Search Plan a project

Open-weight model · Feature extraction

specter2_base

by Ai2 allenai/specter2_base

specter2_base is an open-weight model for feature extraction from Ai2, released under Apache License 2.0. It has 512-token context. Its published files total 440.7 MB. It draws 977.6k downloads a month.

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.

Parameters—
Context512
Weights439.7 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads977.6k

Model Card

By Ai2, published under apache-2.0, revision 3447645e1def.

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:

Old Name New Name
allenai/specter2 allenai/specter2_base
allenai/specter2_proximity allenai/specter2

Read the full model card (883 words)

Configuration

Architecture
BertModel
Context length (tokens)
512
Layers
12
Hidden size
768
Feed-forward size
3,072
Attention heads
12
Vocabulary size
31,090
Stored precision
float32
Model type
bert

Identity and Version

Repository
allenai/specter2_base
Publisher
Ai2
Task
Feature extraction
Modality
Text
Library
transformers
Parameters
Not stated by the source
Languages
en
Revision
3447645e1def9117997203454fa4495937bfbd83
First published
2023-02-16
Last updated
2024-12-04

Files and Weights

8 files, 440.7 MB in total. The weights are 1 file totalling 439.7 MB in bin.

Weights1 file · 439.7 MB
Configuration2 files · 879 B
Tokenizer3 files · 945.1 KB
Documentation1 file · 9.2 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
pytorch_model.binWeights439.7 MB 801eda968fad
config.jsonConfiguration754 B —
special_tokens_map.jsonConfiguration125 B —
README.mdDocumentation9.2 KB —
.gitattributesRepository1.5 KB —
tokenizer.jsonTokenizer716.8 KB —
tokenizer_config.jsonTokenizer453 B —
vocab.txtTokenizer227.8 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
439.7 MB
Download from Ai2

Released by Ai2 through its official repository on Hugging Face. Read the license.

Built From

  • Trained on (disclosed) allenai/scirepeval

Memory Requirements

PrecisionWeights in memory
As published439.7 MB

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

Questions About specter2_base

Can I use specter2_base commercially?

Yes. specter2_base is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is specter2_base's context length?

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

Similar Models

Model · Feature extraction

all-MiniLM-L6-v2

Joshua

https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: You can then use the model to compute embeddings like this: You can convert this Tensor to a nested JavaScript array using.tolist(): Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Open weights apache-2.0 512 tokens transformers.js

Model · Feature extraction

bge-base-en-v1.5

Joshua

https://huggingface.co/BAAI/bge-base-en-v1.5 with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: You can then use the model to compute embeddings, as follows: You can also use the model for retrieval. For example: Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Open weights mit 512 tokens transformers.js

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 which supports all three retrieval methods, achieving new SOTA on multi-lingual (MIRACL) and cross-lingual (MKQA) benchmarks. Technical…

Open weights mit 512 tokens sentence-transformers

Model · Feature extraction

wavlm-large

Microsoft

The large model pretrained on 16kHz sampled speech audio. When using the model, make sure that your speech input is also sampled at 16kHz. Note: This model does not have a tokenizer as it was pretrained on audio alone. In order to use this model speech recognition, a tokenizer should be created and the model should be fine-tuned on labeled text data. Check out this blog for more in-detail explanation of how to fine-tune the model. - 60,000 hours of Libri-Light - 10,000 hours of GigaSpeech - 24,000 hours of VoxPopuli Authors: Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin…

Open weights transformers

Model · Feature extraction

clap-htsat-unfused

LAION eV

The abstract of the paper states that: You can use this model for zero shot audio classification or extracting audio and/or textual features. You can also get the audio and text embeddings using ClapModel If you are using this model for your work, please consider citing the original paper

Open weights apache-2.0 514 tokens transformers