Update README.md
Browse files
README.md
CHANGED
@@ -12,6 +12,30 @@ An [adapter](https://adapterhub.ml) for the [`allenai/specter2_base`](https://hu
|
|
12 |
|
13 |
This adapter was created for usage with the **[adapter-transformers](https://github.com/Adapter-Hub/adapter-transformers)** library.
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
## Usage
|
16 |
|
17 |
First, install `adapter-transformers`:
|
@@ -30,30 +54,6 @@ model = AutoAdapterModel.from_pretrained("allenai/specter2_base")
|
|
30 |
adapter_name = model.load_adapter("allenai/specter2_adhoc_query", source="hf", set_active=True)
|
31 |
```
|
32 |
|
33 |
-
## SPECTER 2.0
|
34 |
-
|
35 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
36 |
-
|
37 |
-
**Aug 2023 Update:**
|
38 |
-
1. The SPECTER 2.0 Base and proximity adapter models have been renamed in Hugging Face based upon usage patterns as follows:
|
39 |
-
|
40 |
-
|Old Name|New Name|
|
41 |
-
|--|--|
|
42 |
-
|allenai/specter2|[allenai/specter2_base](https://huggingface.co/allenai/specter2_base)|
|
43 |
-
|allenai/specter2_proximity|[allenai/specter2](https://huggingface.co/allenai/specter2)|
|
44 |
-
|
45 |
-
2. We have a parallel version (termed [aug2023refresh](https://huggingface.co/allenai/specter2_aug2023refresh)) where the base transformer encoder version is pre-trained on a collection of newer papers (published after 2018).
|
46 |
-
However, for benchmarking purposes, please continue using the current version.
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
SPECTER 2.0 is the successor to [SPECTER](https://huggingface.co/allenai/specter) and is capable of generating task specific embeddings for scientific tasks when paired with [adapters](https://huggingface.co/models?search=allenai/specter-2_).
|
51 |
-
This is the base model to be used along with the adapters.
|
52 |
-
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.
|
53 |
-
|
54 |
-
**Note:For general embedding purposes, please use [allenai/specter2](https://huggingface.co/allenai/specter2).**
|
55 |
-
|
56 |
-
**To get the best performance on a downstream task type please load the associated adapter with the base model as in the example below.**
|
57 |
|
58 |
# Model Details
|
59 |
|
|
|
12 |
|
13 |
This adapter was created for usage with the **[adapter-transformers](https://github.com/Adapter-Hub/adapter-transformers)** library.
|
14 |
|
15 |
+
**Aug 2023 Update:**
|
16 |
+
1. **The SPECTER 2.0 Base and proximity adapter models have been renamed in Hugging Face based upon usage patterns as follows:**
|
17 |
+
|
18 |
+
|Old Name|New Name|
|
19 |
+
|--|--|
|
20 |
+
|allenai/specter2|[allenai/specter2_base](https://huggingface.co/allenai/specter2_base)|
|
21 |
+
|allenai/specter2_proximity|[allenai/specter2](https://huggingface.co/allenai/specter2)|
|
22 |
+
|
23 |
+
2. **We have a parallel version (termed [aug2023refresh](https://huggingface.co/allenai/specter2_aug2023refresh)) where the base transformer encoder version is pre-trained on a collection of newer papers (published after 2018).
|
24 |
+
However, for benchmarking purposes, please continue using the current version.**
|
25 |
+
|
26 |
+
|
27 |
+
## SPECTER 2.0
|
28 |
+
|
29 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
30 |
+
|
31 |
+
SPECTER 2.0 is the successor to [SPECTER](https://huggingface.co/allenai/specter) and is capable of generating task specific embeddings for scientific tasks when paired with [adapters](https://huggingface.co/models?search=allenai/specter-2_).
|
32 |
+
This is the base model to be used along with the adapters.
|
33 |
+
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.
|
34 |
+
|
35 |
+
**Note:For general embedding purposes, please use [allenai/specter2](https://huggingface.co/allenai/specter2).**
|
36 |
+
|
37 |
+
**To get the best performance on a downstream task type please load the associated adapter with the base model as in the example below.**
|
38 |
+
|
39 |
## Usage
|
40 |
|
41 |
First, install `adapter-transformers`:
|
|
|
54 |
adapter_name = model.load_adapter("allenai/specter2_adhoc_query", source="hf", set_active=True)
|
55 |
```
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
# Model Details
|
59 |
|