kiddothe2b commited on
Commit
194ba35
1 Parent(s): bb5c32d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -7
README.md CHANGED
@@ -7,17 +7,17 @@ tags:
7
  datasets:
8
  - c4
9
  model-index:
10
- - name: kiddothe2b/adhoc-hat-base-4096
11
  results: []
12
  ---
13
 
14
- # Hierarchical Attention Transformer (HAT) / adhoc-hat-base-4096
15
 
16
  ## Model description
17
 
18
  This is a Hierarchical Attention Transformer (HAT) model as presented in [An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classification (Chalkidis et al., 2022)](https://arxiv.org/abs/xxx).
19
 
20
- The model has not been warm-started re-using the weights of RoBERTa (Liu et al., 2019), BUT has not been continued pre-trained. It supports sequences of length up to 4,096.
21
 
22
  HAT use a hierarchical attention, which is a combination of segment-wise and cross-segment attention operations. You can think segments as paragraphs or sentences.
23
 
@@ -26,7 +26,7 @@ Note: If you wish to use a fully pre-trained HAT model, you have to use [kiddoth
26
  ## Intended uses & limitations
27
 
28
  You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task.
29
- See the [model hub](https://huggingface.co/models?filter=hat) to look for fine-tuned versions on a task that
30
  interests you.
31
 
32
  Note that this model is primarily aimed at being fine-tuned on tasks that use the whole document to make decisions, such as document classification, sequential sentence classification or question answering.
@@ -37,11 +37,11 @@ You can fine-tune it for SequenceClassification, SequentialSentenceClassificatio
37
 
38
  ```python
39
  from transformers import AutoTokenizer, AutoModelforSequenceClassification
40
- tokenizer = AutoTokenizer.from_pretrained("kiddothe2b/adhoc-hat-base-4096", trust_remote_code=True)
41
- doc_classifier = AutoModelforSequenceClassification(model='kiddothe2b/adhoc-hat-base-4096', trust_remote_code=True)
42
  ```
43
 
44
- Note: If you wish to use a fully pre-trained HAT model, you have to use [kiddothe2b/adhoc-hat-base-4096](https://huggingface.co/kiddothe2b/adhoc-hat-base-4096).
45
 
46
 
47
  ## Limitations and bias
 
7
  datasets:
8
  - c4
9
  model-index:
10
+ - name: kiddothe2b/adhoc-hierarchical-transformer-base-4096
11
  results: []
12
  ---
13
 
14
+ # Hierarchical Attention Transformer (HAT) / kiddothe2b/adhoc-hierarchical-transformer-base-4096
15
 
16
  ## Model description
17
 
18
  This is a Hierarchical Attention Transformer (HAT) model as presented in [An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classification (Chalkidis et al., 2022)](https://arxiv.org/abs/xxx).
19
 
20
+ The model has been warm-started re-using the weights of RoBERTa [(Liu et al., 2019)](https://arxiv.org/abs/1907.11692), BUT has not been continued pre-trained. It supports sequences of length up to 4,096.
21
 
22
  HAT use a hierarchical attention, which is a combination of segment-wise and cross-segment attention operations. You can think segments as paragraphs or sentences.
23
 
 
26
  ## Intended uses & limitations
27
 
28
  You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task.
29
+ See the [model hub](https://huggingface.co/models?filter=hierarchical-transformer) to look for fine-tuned versions on a task that
30
  interests you.
31
 
32
  Note that this model is primarily aimed at being fine-tuned on tasks that use the whole document to make decisions, such as document classification, sequential sentence classification or question answering.
 
37
 
38
  ```python
39
  from transformers import AutoTokenizer, AutoModelforSequenceClassification
40
+ tokenizer = AutoTokenizer.from_pretrained("kiddothe2b/adhoc-hierarchical-transformer-base-4096", trust_remote_code=True)
41
+ doc_classifier = AutoModelforSequenceClassification(model='kiddothe2b/adhoc-hierarchical-transformer-base-4096', trust_remote_code=True)
42
  ```
43
 
44
+ Note: If you wish to use a fully pre-trained HAT model, you have to use [kiddothe2b/hierarchical-transformer-base-4096](https://huggingface.co/kiddothe2b/hierarchical-transformer-base-4096).
45
 
46
 
47
  ## Limitations and bias