vazish commited on
Commit
0c24599
·
unverified ·
1 Parent(s): cf484f4
Files changed (1) hide show
  1. README.md +32 -0
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ thumbnail: https://huggingface.co/front/thumbnails/google.png
4
+
5
+ license: apache-2.0
6
+ ---
7
+
8
+ ## MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
9
+
10
+ MobileBERT is a thin version of BERT_LARGE, while equipped with bottleneck structures and a carefully designed balance
11
+ between self-attentions and feed-forward networks.
12
+
13
+ This checkpoint is the original MobileBert Optimized Uncased English:
14
+ [uncased_L-24_H-128_B-512_A-4_F-4_OPT](https://storage.googleapis.com/cloud-tpu-checkpoints/mobilebert/uncased_L-24_H-128_B-512_A-4_F-4_OPT.tar.gz)
15
+ checkpoint.
16
+
17
+ ## How to use MobileBERT in `transformers`
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ classifier = pipeline(
23
+ "text-classification",
24
+ model="vazish/mobile_bert_autofill",
25
+ tokenizer="vazish/mobile_bert_autofill"
26
+ )
27
+
28
+ print(
29
+ classifier('<input class="cc-number" placeholder="Enter credit card number..." />')
30
+ )
31
+
32
+ ```