Instructions to use HPLT/hplt_bert_base_en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HPLT/hplt_bert_base_en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="HPLT/hplt_bert_base_en", trust_remote_code=True)# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("HPLT/hplt_bert_base_en", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload tokenizer.json
Browse files- tokenizer.json +5 -3
tokenizer.json
CHANGED
|
@@ -1102,9 +1102,11 @@
|
|
| 1102 |
"use_regex": true
|
| 1103 |
},
|
| 1104 |
{
|
| 1105 |
-
"type": "
|
| 1106 |
-
"
|
| 1107 |
-
|
|
|
|
|
|
|
| 1108 |
},
|
| 1109 |
{
|
| 1110 |
"type": "Strip",
|
|
|
|
| 1102 |
"use_regex": true
|
| 1103 |
},
|
| 1104 |
{
|
| 1105 |
+
"type": "Replace",
|
| 1106 |
+
"pattern": {
|
| 1107 |
+
"Regex": "▁"
|
| 1108 |
+
},
|
| 1109 |
+
"content": " "
|
| 1110 |
},
|
| 1111 |
{
|
| 1112 |
"type": "Strip",
|