qaihm-bot commited on
Commit
15918cc
·
verified ·
1 Parent(s): aac3f00

See https://github.com/quic/ai-hub-models/releases/v0.43.0 for changelog.

.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ DEPLOYMENT_MODEL_LICENSE.pdf filter=lfs diff=lfs merge=lfs -text
37
+ Electra-Bert-Base-Discrim-Google_float.dlc filter=lfs diff=lfs merge=lfs -text
DEPLOYMENT_MODEL_LICENSE.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4409f93b0e82531303b3e10f52f1fdfb56467a25f05b7441c6bbd8bb8a64b42c
3
+ size 109629
Electra-Bert-Base-Discrim-Google_float.dlc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:792b40db57cdeee6de55017e66a27c555af6931be5ba0ef041f422a0167f384e
3
+ size 439075940
Electra-Bert-Base-Discrim-Google_float.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a9c03e26010b57cf030d5e0bbbda10d12cfb889bcfca5d9894d128d7a7ab09f
3
+ size 407173104
Electra-Bert-Base-Discrim-Google_float.tflite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91252c574bdc638620511ff5ad9578fba7ca4f6181f0a8a9728649fef0fa3a52
3
+ size 437630728
LICENSE ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ The license of the original trained model can be found at https://github.com/google-research/electra/blob/master/LICENSE.
2
+ The license for the deployable model files (.tflite, .onnx, .dlc, .bin, etc.) can be found in DEPLOYMENT_MODEL_LICENSE.pdf.
README.md ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: pytorch
3
+ license: other
4
+ tags:
5
+ - backbone
6
+ - android
7
+ pipeline_tag: text-generation
8
+
9
+ ---
10
+
11
+ ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/electra_bert_base_discrim_google/web-assets/model_demo.png)
12
+
13
+ # Electra-Bert-Base-Discrim-Google: Optimized for Mobile Deployment
14
+ ## Language model for masked language modeling and general-purpose NLP tasks
15
+
16
+
17
+ ELECTRABERT is a lightweight BERT model designed for efficient self-supervised learning of language representations. It can be used for identify unnatural or artificially modified text and as a backbone for various NLP tasks.
18
+
19
+ This model is an implementation of Electra-Bert-Base-Discrim-Google found [here](https://github.com/google-research/electra/).
20
+
21
+
22
+ This repository provides scripts to run Electra-Bert-Base-Discrim-Google on Qualcomm® devices.
23
+ More details on model performance across various devices, can be found
24
+ [here](https://aihub.qualcomm.com/models/electra_bert_base_discrim_google).
25
+
26
+
27
+
28
+ ### Model Details
29
+
30
+ - **Model Type:** Model_use_case.text_generation
31
+ - **Model Stats:**
32
+ - Model checkpoint: google/electra-base-discriminator
33
+ - Input resolution: 1x384
34
+ - Number of parameters: 109M
35
+ - Model size (float): 417 MB
36
+
37
+ | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
38
+ |---|---|---|---|---|---|---|---|---|
39
+ | Electra-Bert-Base-Discrim-Google | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 66.115 ms | 0 - 302 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
40
+ | Electra-Bert-Base-Discrim-Google | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 65.271 ms | 0 - 327 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
41
+ | Electra-Bert-Base-Discrim-Google | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 23.58 ms | 0 - 280 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
42
+ | Electra-Bert-Base-Discrim-Google | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 24.876 ms | 0 - 305 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
43
+ | Electra-Bert-Base-Discrim-Google | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 16.824 ms | 0 - 29 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
44
+ | Electra-Bert-Base-Discrim-Google | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 16.974 ms | 0 - 41 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
45
+ | Electra-Bert-Base-Discrim-Google | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 24.091 ms | 0 - 256 MB | NPU | [Electra-Bert-Base-Discrim-Google.onnx.zip](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.onnx.zip) |
46
+ | Electra-Bert-Base-Discrim-Google | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 98.459 ms | 0 - 302 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
47
+ | Electra-Bert-Base-Discrim-Google | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 21.082 ms | 0 - 331 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
48
+ | Electra-Bert-Base-Discrim-Google | float | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 66.115 ms | 0 - 302 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
49
+ | Electra-Bert-Base-Discrim-Google | float | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 65.271 ms | 0 - 327 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
50
+ | Electra-Bert-Base-Discrim-Google | float | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | TFLITE | 16.128 ms | 0 - 15 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
51
+ | Electra-Bert-Base-Discrim-Google | float | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | QNN_DLC | 16.934 ms | 0 - 45 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
52
+ | Electra-Bert-Base-Discrim-Google | float | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 26.152 ms | 0 - 273 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
53
+ | Electra-Bert-Base-Discrim-Google | float | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 26.433 ms | 0 - 296 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
54
+ | Electra-Bert-Base-Discrim-Google | float | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | TFLITE | 16.8 ms | 0 - 31 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
55
+ | Electra-Bert-Base-Discrim-Google | float | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | QNN_DLC | 16.945 ms | 0 - 45 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
56
+ | Electra-Bert-Base-Discrim-Google | float | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 98.459 ms | 0 - 302 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
57
+ | Electra-Bert-Base-Discrim-Google | float | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 21.082 ms | 0 - 331 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
58
+ | Electra-Bert-Base-Discrim-Google | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 11.657 ms | 0 - 307 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
59
+ | Electra-Bert-Base-Discrim-Google | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 11.651 ms | 0 - 332 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
60
+ | Electra-Bert-Base-Discrim-Google | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 16.753 ms | 0 - 359 MB | NPU | [Electra-Bert-Base-Discrim-Google.onnx.zip](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.onnx.zip) |
61
+ | Electra-Bert-Base-Discrim-Google | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 7.985 ms | 0 - 303 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
62
+ | Electra-Bert-Base-Discrim-Google | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 7.843 ms | 0 - 335 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
63
+ | Electra-Bert-Base-Discrim-Google | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 11.213 ms | 0 - 361 MB | NPU | [Electra-Bert-Base-Discrim-Google.onnx.zip](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.onnx.zip) |
64
+ | Electra-Bert-Base-Discrim-Google | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | TFLITE | 6.154 ms | 4 - 308 MB | NPU | [Electra-Bert-Base-Discrim-Google.tflite](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.tflite) |
65
+ | Electra-Bert-Base-Discrim-Google | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | QNN_DLC | 5.908 ms | 0 - 342 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
66
+ | Electra-Bert-Base-Discrim-Google | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | ONNX | 8.275 ms | 0 - 367 MB | NPU | [Electra-Bert-Base-Discrim-Google.onnx.zip](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.onnx.zip) |
67
+ | Electra-Bert-Base-Discrim-Google | float | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 17.66 ms | 1034 - 1034 MB | NPU | [Electra-Bert-Base-Discrim-Google.dlc](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.dlc) |
68
+ | Electra-Bert-Base-Discrim-Google | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 24.045 ms | 221 - 221 MB | NPU | [Electra-Bert-Base-Discrim-Google.onnx.zip](https://huggingface.co/qualcomm/Electra-Bert-Base-Discrim-Google/blob/main/Electra-Bert-Base-Discrim-Google.onnx.zip) |
69
+
70
+
71
+
72
+
73
+ ## Installation
74
+
75
+
76
+ Install the package via pip:
77
+ ```bash
78
+ # NOTE: 3.10 <= PYTHON_VERSION < 3.14 is supported.
79
+ pip install "qai-hub-models[electra-bert-base-discrim-google]"
80
+ ```
81
+
82
+
83
+ ## Configure Qualcomm® AI Hub Workbench to run this model on a cloud-hosted device
84
+
85
+ Sign-in to [Qualcomm® AI Hub Workbench](https://workbench.aihub.qualcomm.com/) with your
86
+ Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
87
+
88
+ With this API token, you can configure your client to run models on the cloud
89
+ hosted devices.
90
+ ```bash
91
+ qai-hub configure --api_token API_TOKEN
92
+ ```
93
+ Navigate to [docs](https://workbench.aihub.qualcomm.com/docs/) for more information.
94
+
95
+
96
+
97
+ ## Demo off target
98
+
99
+ The package contains a simple end-to-end demo that downloads pre-trained
100
+ weights and runs this model on a sample input.
101
+
102
+ ```bash
103
+ python -m qai_hub_models.models.electra_bert_base_discrim_google.demo
104
+ ```
105
+
106
+ The above demo runs a reference implementation of pre-processing, model
107
+ inference, and post processing.
108
+
109
+ **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
110
+ environment, please add the following to your cell (instead of the above).
111
+ ```
112
+ %run -m qai_hub_models.models.electra_bert_base_discrim_google.demo
113
+ ```
114
+
115
+
116
+ ### Run model on a cloud-hosted device
117
+
118
+ In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
119
+ device. This script does the following:
120
+ * Performance check on-device on a cloud-hosted device
121
+ * Downloads compiled assets that can be deployed on-device for Android.
122
+ * Accuracy check between PyTorch and on-device outputs.
123
+
124
+ ```bash
125
+ python -m qai_hub_models.models.electra_bert_base_discrim_google.export
126
+ ```
127
+
128
+
129
+
130
+ ## How does this work?
131
+
132
+ This [export script](https://aihub.qualcomm.com/models/electra_bert_base_discrim_google/qai_hub_models/models/Electra-Bert-Base-Discrim-Google/export.py)
133
+ leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this model
134
+ on-device. Lets go through each step below in detail:
135
+
136
+ Step 1: **Compile model for on-device deployment**
137
+
138
+ To compile a PyTorch model for on-device deployment, we first trace the model
139
+ in memory using the `jit.trace` and then call the `submit_compile_job` API.
140
+
141
+ ```python
142
+ import torch
143
+
144
+ import qai_hub as hub
145
+ from qai_hub_models.models.electra_bert_base_discrim_google import Model
146
+
147
+ # Load the model
148
+ torch_model = Model.from_pretrained()
149
+
150
+ # Device
151
+ device = hub.Device("Samsung Galaxy S25")
152
+
153
+ # Trace model
154
+ input_shape = torch_model.get_input_spec()
155
+ sample_inputs = torch_model.sample_inputs()
156
+
157
+ pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
158
+
159
+ # Compile model on a specific device
160
+ compile_job = hub.submit_compile_job(
161
+ model=pt_model,
162
+ device=device,
163
+ input_specs=torch_model.get_input_spec(),
164
+ )
165
+
166
+ # Get target model to run on-device
167
+ target_model = compile_job.get_target_model()
168
+
169
+ ```
170
+
171
+
172
+ Step 2: **Performance profiling on cloud-hosted device**
173
+
174
+ After compiling models from step 1. Models can be profiled model on-device using the
175
+ `target_model`. Note that this scripts runs the model on a device automatically
176
+ provisioned in the cloud. Once the job is submitted, you can navigate to a
177
+ provided job URL to view a variety of on-device performance metrics.
178
+ ```python
179
+ profile_job = hub.submit_profile_job(
180
+ model=target_model,
181
+ device=device,
182
+ )
183
+
184
+ ```
185
+
186
+ Step 3: **Verify on-device accuracy**
187
+
188
+ To verify the accuracy of the model on-device, you can run on-device inference
189
+ on sample input data on the same cloud hosted device.
190
+ ```python
191
+ input_data = torch_model.sample_inputs()
192
+ inference_job = hub.submit_inference_job(
193
+ model=target_model,
194
+ device=device,
195
+ inputs=input_data,
196
+ )
197
+ on_device_output = inference_job.download_output_data()
198
+
199
+ ```
200
+ With the output of the model, you can compute like PSNR, relative errors or
201
+ spot check the output with expected output.
202
+
203
+ **Note**: This on-device profiling and inference requires access to Qualcomm®
204
+ AI Hub Workbench. [Sign up for access](https://myaccount.qualcomm.com/signup).
205
+
206
+
207
+
208
+ ## Run demo on a cloud-hosted device
209
+
210
+ You can also run the demo on-device.
211
+
212
+ ```bash
213
+ python -m qai_hub_models.models.electra_bert_base_discrim_google.demo --eval-mode on-device
214
+ ```
215
+
216
+ **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
217
+ environment, please add the following to your cell (instead of the above).
218
+ ```
219
+ %run -m qai_hub_models.models.electra_bert_base_discrim_google.demo -- --eval-mode on-device
220
+ ```
221
+
222
+
223
+ ## Deploying compiled model to Android
224
+
225
+
226
+ The models can be deployed using multiple runtimes:
227
+ - TensorFlow Lite (`.tflite` export): [This
228
+ tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
229
+ guide to deploy the .tflite model in an Android application.
230
+
231
+
232
+ - QNN (`.so` export ): This [sample
233
+ app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
234
+ provides instructions on how to use the `.so` shared library in an Android application.
235
+
236
+
237
+ ## View on Qualcomm® AI Hub
238
+ Get more details on Electra-Bert-Base-Discrim-Google's performance across various devices [here](https://aihub.qualcomm.com/models/electra_bert_base_discrim_google).
239
+ Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
240
+
241
+
242
+ ## License
243
+ * The license for the original implementation of Electra-Bert-Base-Discrim-Google can be found
244
+ [here](https://github.com/google-research/electra/blob/master/LICENSE).
245
+ * The license for the compiled assets for on-device deployment can be found [here](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/Qualcomm+AI+Hub+Proprietary+License.pdf)
246
+
247
+
248
+
249
+ ## References
250
+ * [ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators](https://arxiv.org/abs/2003.10555)
251
+ * [Source Model Implementation](https://github.com/google-research/electra/)
252
+
253
+
254
+
255
+ ## Community
256
+ * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
257
+ * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
258
+
259
+
tool-versions.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ tool_versions:
2
+ onnx:
3
+ qairt: 2.37.1.250807093845_124904
4
+ onnx_runtime: 1.23.0