SavioAonz commited on
Commit
b2ebe37
·
verified ·
1 Parent(s): 63aa7f0

Add Medscribe models, MedASR KenLM, README and licences

Browse files
.gitattributes CHANGED
@@ -33,3 +33,8 @@ 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
+ medasr-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
37
+ medasr-F16.gguf filter=lfs diff=lfs merge=lfs -text
38
+ medasr-F32.gguf filter=lfs diff=lfs merge=lfs -text
39
+ parakeet-unified-en-0.6b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
40
+ lm_6.kenlm filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Health AI Developer Foundations Terms of Use, as published at
2
+ https://developers.google.com/health-ai-developer-foundations/terms
3
+ (retrieved 2026-10-16). Reproduced verbatim; the published page is authoritative.
4
+
5
+ Health AI Developer Foundations Terms of Use
6
+
7
+ Last modified: November 15, 2024
8
+
9
+ By using, reproducing, modifying, distributing, performing, or displaying any
10
+ portion or element of the HAI-DEF Services (as defined below), or otherwise
11
+ accepting these Health AI Developer Foundations Terms of Use (the
12
+ "Agreement"), you agree to be bound by this Agreement.
13
+
14
+ Section 1: DEFINITIONS
15
+
16
+ 1.1 Definitions
17
+
18
+ (a) "Clinical Use" means, any use in diagnosis or treatment of patients
19
+ (including as part of a research study).
20
+
21
+ (b) "Distribution" or "Distribute" means any transmission, publication,
22
+ or other sharing of HAI-DEF or Model Derivatives to a third party, including by
23
+ providing or making HAI-DEF or its functionality available as a hosted service
24
+ via API, web access, or any other electronic or remote means ("Hosted
25
+ Service").
26
+
27
+ (c) "Google" means Google LLC.
28
+
29
+ (d) "Health AI Developer Foundations" or "HAI-DEF" means the set of
30
+ machine learning language models, trained model weights, and parameters
31
+ identified at
32
+ developers.google.com/health-ai-developer-foundations,
33
+ regardless of the source that you obtained it from.
34
+
35
+ (e) "Health AI Developer Foundations Services" or "HAI-DEF Services"
36
+ means collectively HAI-DEF or Model Derivatives, including as may be accessed or
37
+ used via a Hosted Service.
38
+
39
+ (f) "Health Regulatory Authority" means any regulatory authority that
40
+ oversees health-related products and services, including any national, supra
41
+ national, regional, state, or local regulatory authority, department, bureau,
42
+ commission, council, or other authority that is responsible for granting Health
43
+ Regulatory Authorizations allowing distribution of products, or overseeing the
44
+ development, use, manufacture, transport, storage, or commercialization of
45
+ products and services for the diagnosis, cure, prevention, treatment, and/or
46
+ mitigation of disorders, diseases, or conditions in humans.
47
+
48
+ (g) "Health Regulatory Authorization" means, with respect to any country or
49
+ jurisdiction, all approvals, registrations, licenses, or authorizations from the
50
+ relevant Regulatory Authority in a country or jurisdiction for conducting
51
+ research, Clinical Use, marketing and/or commercializing of a product or service
52
+ in such country or jurisdiction.
53
+
54
+ (h) "Model Derivatives" means (i) all modifications to HAI-DEF, (ii) all
55
+ works based on HAI-DEF, or (iii) any other machine learning model which is
56
+ created by transfer of patterns of the weights, parameters, operations, or
57
+ Output of HAI-DEF, to that model in order to cause that model to perform
58
+ similarly to HAI-DEF, including distillation methods that use intermediate data
59
+ representations or methods based on the generation of synthetic data Outputs by
60
+ HAI-DEF for training that model. Outputs are not deemed Model Derivatives.
61
+
62
+ (i) "Output" means the information content output of HAI-DEF or a Model
63
+ Derivative that results from operating or otherwise using HAI-DEF or the Model
64
+ Derivative, including via a Hosted Service.
65
+
66
+ 1.2
67
+
68
+ In this Agreement, "including" means "including but not limited to".
69
+
70
+ Section 2: ELIGIBILITY AND USAGE
71
+
72
+ 2.1 Eligibility
73
+
74
+ You represent and warrant that you have the legal capacity to enter into this
75
+ Agreement (including being of sufficient age of consent). If you are accessing
76
+ or using any of the HAI-DEF Services for or on behalf of a legal entity, (a) you
77
+ are entering into this Agreement on behalf of yourself and that legal entity,
78
+ (b) you represent and warrant that you have the authority to act on behalf of
79
+ and bind that entity to this Agreement, and (c) references to "you" or
80
+ "your" in the remainder of this Agreement refers to both you (as an
81
+ individual) and that entity.
82
+
83
+ 2.2 Use
84
+
85
+ You may use, reproduce, modify, Distribute, perform, or display any of the
86
+ HAI-DEF Services only in accordance with the terms of this Agreement, and must
87
+ not violate (or encourage or permit anyone else to violate) any term of this
88
+ Agreement. HAI-DEF’s recipe source code, model inference code, model training
89
+ code, utility code, and other source code deliverables are licensed under Apache
90
+ 2.0 available at
91
+ https://www.apache.org/licenses/LICENSE-2.0.
92
+
93
+ Section 3: DISTRIBUTION AND RESTRICTIONS
94
+
95
+ 3.1 Distribution and Redistribution
96
+
97
+ You may reproduce or Distribute copies of HAI-DEF or Model Derivatives if you
98
+ meet all of the following conditions:
99
+
100
+ - You must include the use restrictions in Section 3.2 as an enforceable
101
+ provision in any agreement (e.g., license agreement, terms of use, etc.)
102
+ governing the use and/or Distribution of HAI-DEF or Model Derivatives and
103
+ you must notify subsequent users you Distribute to that HAI-DEF or Model
104
+ Derivatives are subject to the use restrictions in Section 3.2.
105
+
106
+ - You must provide all third party recipients of HAI-DEF or Model Derivatives
107
+ a copy of this Agreement.
108
+
109
+ - You must, when applicable, seek Health Regulatory Authorization from the
110
+ relevant Health Regulatory Authority.
111
+
112
+ - You must cause any modified files to carry prominent notices stating that
113
+ you modified the files.
114
+
115
+ - All Distributions (other than through a Hosted Service) must be accompanied
116
+ by a "Notice" text file that contains the following notice: "HAI-DEF
117
+ is provided under and subject to the Health AI Developer Foundations Terms
118
+ of Use found at
119
+ https://developers.google.com/health-ai-developer-foundations/terms".
120
+
121
+ You may add your own intellectual property statement to your modifications and,
122
+ except as set forth in this Section, may provide additional or different terms
123
+ and conditions for use, reproduction, or Distribution of your modifications, or
124
+ for any such Model Derivatives as a whole, provided your use, reproduction,
125
+ modification, Distribution, performance, and display of HAI-DEF otherwise
126
+ complies with the terms and conditions of this Agreement. Any additional or
127
+ different terms and conditions you impose must not conflict with the terms of
128
+ this Agreement.
129
+
130
+ 3.2 Use Restrictions
131
+
132
+ You must not use any of the HAI-DEF Services:
133
+
134
+ - for the restricted uses described in the Health AI Developer Foundations
135
+ Prohibited Use Policy at
136
+ https://developers.google.com/health-ai-developer-foundations/prohibited-use-policy
137
+ ("Prohibited Use Policy"), which is hereby incorporated by reference
138
+ into this Agreement;
139
+
140
+ - for any use that could cause a Health Regulatory Authority to deem Google to
141
+ be a "manufacturer" of a medical device; or
142
+
143
+ - in violation of applicable laws and regulations.
144
+
145
+ To the maximum extent permitted by law and without limiting any of Google’s
146
+ other rights, Google reserves the right to restrict (remotely or otherwise)
147
+ usage of any of the HAI-DEF Services that Google reasonably believes are in
148
+ violation of this Agreement.
149
+
150
+ 3.3 Generated Output
151
+
152
+ Google will not claim ownership over any original Outputs you generate using
153
+ HAI-DEF. You acknowledge that Google or HAI-DEF may generate the same or similar
154
+ Outputs for others, including Google, and that Google reserves all of Google’s
155
+ rights in the Outputs it generates independently of you. You and your users are
156
+ solely responsible for Outputs and their subsequent uses.
157
+
158
+ Section 4: ADDITIONAL PROVISIONS
159
+
160
+ 4.1 Updates
161
+
162
+ Google may update HAI-DEF from time to time.
163
+
164
+ 4.2 Trademarks
165
+
166
+ Nothing in this Agreement grants you any rights to use Google's trademarks,
167
+ trade names, logos or to otherwise suggest endorsement or misrepresent the
168
+ relationship between you and Google. Google reserves any rights not expressly
169
+ granted herein.
170
+
171
+ 4.3 DISCLAIMER OF WARRANTY
172
+
173
+ UNLESS REQUIRED BY APPLICABLE LAW, THE HAI-DEF SERVICES AND OUTPUTS ARE PROVIDED
174
+ ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER
175
+ EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OR CONDITIONS OF TITLE,
176
+ NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE
177
+ SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING,
178
+ MODIFYING, PERFORMING, DISPLAYING, OR DISTRIBUTING ANY OF THE HAI-DEF SERVICES
179
+ OR OUTPUTS AND ASSUME ANY AND ALL RISKS ASSOCIATED WITH YOUR USE OR DISTRIBUTION
180
+ OF ANY OF THE HAI-DEF SERVICES OR OUTPUTS AND YOUR EXERCISE OF RIGHTS AND
181
+ PERMISSIONS UNDER THIS AGREEMENT. YOU AGREE THAT GOOGLE WILL NOT BE DEEMED TO BE
182
+ FURNISHING ANY MEDICAL ADVICE OR HEALTH CARE SERVICES BY VIRTUE OF PROVIDING THE
183
+ HAI-DEF SERVICES.
184
+
185
+ 4.4 LIMITATION OF LIABILITY
186
+
187
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO
188
+ LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY,
189
+ CONTRACT, OR OTHERWISE, UNLESS REQUIRED BY APPLICABLE LAW, WILL GOOGLE OR ITS
190
+ AFFILIATES BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT,
191
+ SPECIAL, INCIDENTAL, EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR LOST
192
+ PROFITS OF ANY KIND ARISING FROM THIS AGREEMENT OR RELATED TO ANY OF THE HAI-DEF
193
+ SERVICES OR OUTPUTS EVEN IF GOOGLE OR ITS AFFILIATES HAVE BEEN ADVISED OF THE
194
+ POSSIBILITY OF SUCH DAMAGES.
195
+
196
+ 4.5 Indemnification
197
+
198
+ Unless prohibited by applicable law, you will defend and indemnify Google, and
199
+ its affiliates, directors, officers, employees, and contractors against all
200
+ liabilities, damages, losses, costs, fees (including legal fees), and expenses
201
+ relating to any allegations or third-party legal proceeding (including
202
+ regulatory proceedings) to the extent arising from: (a) your violation of any
203
+ term of this Agreement; (b) damage or injury to any person or property as a
204
+ result of your use of HAI-DEF (including your modification, Distribution,
205
+ reproduction, performance, display, or adaptation of HAI-DEF); (c) your gross
206
+ negligence or willful misconduct in connection with HAI-DEF; or (d) any claim
207
+ that any modifications or combinations to HAI-DEF made by you, including Model
208
+ Derivatives, infringe or violate a third party’s intellectual property or other
209
+ rights, including applicable privacy or data protection rights.
210
+
211
+ 4.6 Term, Termination, and Survival
212
+
213
+ The term of this Agreement will commence upon your acceptance of this Agreement
214
+ (including acceptance by your use, modification, or Distribution, reproduction,
215
+ performance, or display of any portion or element of the HAI-DEF Services) and
216
+ will continue in full force and effect until terminated in accordance with the
217
+ terms of this Agreement. Google may terminate this Agreement if you are in
218
+ breach of any term of this Agreement or if Google reasonably determines that a
219
+ Health Regulatory Authority may deem that Google is, or is reasonably likely to
220
+ be considered a "manufacturer" of a medical device in connection with your use
221
+ of the HAI-DEF Services. Upon termination of this Agreement, you must delete and
222
+ cease use and Distribution of all copies of HAI-DEF and Model Derivatives in
223
+ your possession or control. Sections 1, 2.1, 3.3, and 4.2 to 4.7 will survive
224
+ the termination of this Agreement.
225
+
226
+ 4.7 General Legal Terms
227
+
228
+ This Agreement states all terms agreed between the parties and supersedes all
229
+ other agreements between the parties relating to its subject matter. If any
230
+ provision of this Agreement is held to be invalid, illegal or unenforceable, the
231
+ rest of the Agreement will remain in effect. Google’s delay or omission in
232
+ exercising any right under this Agreement will not be treated as a waiver of
233
+ that right. CALIFORNIA LAW WILL GOVERN ALL DISPUTES ARISING OUT OF OR RELATING
234
+ TO THIS AGREEMENT AND THE HAI-DEF SERVICES, REGARDLESS OF ANY CONFLICT OF LAWS
235
+ RULES. THESE DISPUTES WILL BE RESOLVED EXCLUSIVELY IN THE FEDERAL OR STATE
236
+ COURTS OF SANTA CLARA COUNTY, CALIFORNIA, USA, AND THE PARTIES CONSENT TO
237
+ PERSONAL JURISDICTION IN THOSE COURTS.
NOTICE ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Medscribe models: attribution and modifications
2
+
3
+ 1. MedASR (medasr-Q8_0.gguf, medasr-F16.gguf, medasr-F32.gguf) and lm_6.kenlm
4
+
5
+ HAI-DEF is provided under and subject to the Health AI Developer Foundations
6
+ Terms of Use found at
7
+ https://developers.google.com/health-ai-developer-foundations/terms
8
+ (a copy is in LICENSE).
9
+
10
+ Modifications: handy-computer converted https://huggingface.co/google/medasr
11
+ at commit ae1e484 to GGUF for transcribe.cpp
12
+ (https://github.com/handy-computer/transcribe.cpp). Conversion repackages the
13
+ weights, renaming and re-laying-out tensors; the quantized file (Q8_0) also
14
+ stores them at reduced numeric precision. The weights were not retrained or
15
+ fine-tuned. The GGUF files here are unchanged copies of
16
+ https://huggingface.co/handy-computer/medasr-gguf at commit 6f481df.
17
+
18
+ lm_6.kenlm is an unchanged copy of the file of the same name in
19
+ https://huggingface.co/google/medasr at commit ae1e484.
20
+
21
+ 2. Parakeet (parakeet-unified-en-0.6b-Q8_0.gguf)
22
+
23
+ "parakeet-unified-en-0.6b" by NVIDIA
24
+ (https://huggingface.co/nvidia/parakeet-unified-en-0.6b), licensed under
25
+ CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).
26
+
27
+ Modifications: converted to GGUF and quantized to 8-bit (Q8_0) by
28
+ handy-computer (https://huggingface.co/handy-computer/parakeet-unified-en-0.6b-gguf,
29
+ commit 7e948f2). Not retrained or fine-tuned. The file here is an unchanged
30
+ copy.
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: health-ai-developer-foundations
4
+ license_link: https://developers.google.com/health-ai-developer-foundations/terms
5
+ library_name: transcribe.cpp
6
+ pipeline_tag: automatic-speech-recognition
7
+ language:
8
+ - en
9
+ base_model:
10
+ - google/medasr
11
+ - nvidia/parakeet-unified-en-0.6b
12
+ tags:
13
+ - gguf
14
+ - transcribe.cpp
15
+ - kenlm
16
+ - asr
17
+ - speech-to-text
18
+ - medasr
19
+ - parakeet
20
+ - medical
21
+ - radiology
22
+ - medscribe
23
+ ---
24
+
25
+ # Medscribe models
26
+
27
+ Speech-to-text models and the language model used by **Medscribe**, an offline
28
+ desktop dictation app for radiology and clinical reporting (Windows, macOS,
29
+ Linux). The app downloads the files it needs from this repo on first use.
30
+
31
+ ## Files
32
+
33
+ | File | What it is | Size | Licence |
34
+ | --- | --- | ---: | --- |
35
+ | `medasr-Q8_0.gguf` | MedASR, 8-bit. **Default and recommended.** | 122 MB | HAI-DEF |
36
+ | `medasr-F16.gguf` | MedASR, 16-bit | 202 MB | HAI-DEF |
37
+ | `medasr-F32.gguf` | MedASR, full precision | 402 MB | HAI-DEF |
38
+ | `parakeet-unified-en-0.6b-Q8_0.gguf` | Parakeet English 0.6B, 8-bit (general English, streaming) | 697 MB | CC BY 4.0 |
39
+ | `lm_6.kenlm` | MedASR's 6-gram KenLM language model for beam search | 672 MB | HAI-DEF |
40
+
41
+ The `.gguf` files run with [transcribe.cpp](https://github.com/handy-computer/transcribe.cpp).
42
+ `lm_6.kenlm` is used by Medscribe's MedASR decoder: CTC prefix beam search with
43
+ KenLM shallow fusion (beam 8, alpha 0.5, beta 1.5), the same setup Google
44
+ describes for MedASR. Without it, MedASR falls back to greedy decoding.
45
+
46
+ ### SHA-256
47
+
48
+ ```
49
+ 5a391a2154416b96241b829ac2c7eed8b64d197f00372512c9bbf63f4849c978 medasr-Q8_0.gguf
50
+ 70e51cf5da1d3ea0838cf6d94a19f3dc1fdf28b24d8665589f43c50eaf429580 medasr-F16.gguf
51
+ 4b1b5b3a3092b96299624788b4eb28d04f7c66c447f0953c0216285c518f2ed5 medasr-F32.gguf
52
+ 4b50b6dd862bf6e346929aaf4f5eaacec003bfa3f56462d6c874b41ef2f38795 parakeet-unified-en-0.6b-Q8_0.gguf
53
+ e559df5485675c47f3191f81dd6314160dc4e743f2f6a09dd455d5ac97e928f2 lm_6.kenlm
54
+ ```
55
+
56
+ ## Sources
57
+
58
+ - **MedASR GGUF**: [handy-computer/medasr-gguf](https://huggingface.co/handy-computer/medasr-gguf)
59
+ at `6f481df`, converted from [google/medasr](https://huggingface.co/google/medasr)
60
+ at `ae1e484`. Files are unchanged copies.
61
+ - **lm_6.kenlm**: unchanged copy from [google/medasr](https://huggingface.co/google/medasr) at `ae1e484`.
62
+ - **Parakeet GGUF**: [handy-computer/parakeet-unified-en-0.6b-gguf](https://huggingface.co/handy-computer/parakeet-unified-en-0.6b-gguf)
63
+ at `7e948f2`, converted from [nvidia/parakeet-unified-en-0.6b](https://huggingface.co/nvidia/parakeet-unified-en-0.6b).
64
+ File is an unchanged copy.
65
+
66
+ ## Licences
67
+
68
+ - **MedASR files and `lm_6.kenlm`** are HAI-DEF and are provided under and
69
+ subject to the [Health AI Developer Foundations Terms of Use](https://developers.google.com/health-ai-developer-foundations/terms)
70
+ (copy in [`LICENSE`](LICENSE)). By using them you agree to those terms,
71
+ including their use restrictions. HAI-DEF is not intended for clinical use
72
+ without appropriate validation and any required regulatory authorization.
73
+ - **Parakeet** is by NVIDIA, licensed under
74
+ [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). The GGUF
75
+ conversion repackages the weights at 8-bit precision; it was not retrained.
76
+
77
+ See [`NOTICE`](NOTICE) for attribution and modification details.
lm_6.kenlm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e559df5485675c47f3191f81dd6314160dc4e743f2f6a09dd455d5ac97e928f2
3
+ size 704341068
medasr-F16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70e51cf5da1d3ea0838cf6d94a19f3dc1fdf28b24d8665589f43c50eaf429580
3
+ size 211455168
medasr-F32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b1b5b3a3092b96299624788b4eb28d04f7c66c447f0953c0216285c518f2ed5
3
+ size 421301440
medasr-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a391a2154416b96241b829ac2c7eed8b64d197f00372512c9bbf63f4849c978
3
+ size 127712448
parakeet-unified-en-0.6b-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b50b6dd862bf6e346929aaf4f5eaacec003bfa3f56462d6c874b41ef2f38795
3
+ size 731357568