Instructions to use kiddothe2b/hierarchical-transformer-base-4096 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kiddothe2b/hierarchical-transformer-base-4096 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="kiddothe2b/hierarchical-transformer-base-4096", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("kiddothe2b/hierarchical-transformer-base-4096", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
535fa18
1
Parent(s): ab7b7bf
Initial commit
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "kiddothe2b/hat-base-4096",
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
"auto_map": {
|
| 7 |
"AutoConfig": "configuration_hat.HATConfig",
|
|
@@ -78,7 +78,7 @@
|
|
| 78 |
"max_sentence_size": 128,
|
| 79 |
"max_sentences": 32,
|
| 80 |
"model_max_length": 4096,
|
| 81 |
-
"model_type": "
|
| 82 |
"num_attention_heads": 12,
|
| 83 |
"num_hidden_layers": 12,
|
| 84 |
"output_past": true,
|
|
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "kiddothe2b/hat-base-4096",
|
| 3 |
"architectures": [
|
| 4 |
+
"HATForMaskedLM"
|
| 5 |
],
|
| 6 |
"auto_map": {
|
| 7 |
"AutoConfig": "configuration_hat.HATConfig",
|
|
|
|
| 78 |
"max_sentence_size": 128,
|
| 79 |
"max_sentences": 32,
|
| 80 |
"model_max_length": 4096,
|
| 81 |
+
"model_type": "hierarchical-transformer",
|
| 82 |
"num_attention_heads": 12,
|
| 83 |
"num_hidden_layers": 12,
|
| 84 |
"output_past": true,
|