Instructions to use Pragformer/PragFormer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pragformer/PragFormer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Pragformer/PragFormer", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Pragformer/PragFormer", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
b7d8924
1
Parent(s): 0c2edec
Upload BERT_Arch
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
"BERT_Arch"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
-
"AutoConfig": "
|
| 7 |
-
"AutoModel": "
|
| 8 |
},
|
| 9 |
"bert": {
|
| 10 |
"_commit_hash": "43cf2d48e8c75d255dccab2a19e40d4774fd8853",
|
|
|
|
| 3 |
"BERT_Arch"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
+
"AutoConfig": "__main__.PragFormerConfig",
|
| 7 |
+
"AutoModel": "__main__.BERT_Arch"
|
| 8 |
},
|
| 9 |
"bert": {
|
| 10 |
"_commit_hash": "43cf2d48e8c75d255dccab2a19e40d4774fd8853",
|