0x3 theadamsabra commited on
Commit
e6aa676
·
0 Parent(s):

Duplicate from UsefulSensors/moonshine-tiny-ja

Browse files

Co-authored-by: Adam Sabra <theadamsabra@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
LICENSE.txt ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MOONSHINE AI COMMUNITY LICENSE AGREEMENT
2
+
3
+ Last Updated: June 15th, 2025
4
+
5
+
6
+ I. INTRODUCTION
7
+
8
+ This Agreement applies to any individual person or entity ("You", "Your" or
9
+ "Licensee") that uses or distributes any portion or element of the Moonshine AI
10
+ Materials or Derivative Works thereof for any Research & Non-Commercial or
11
+ Commercial purpose. Capitalized terms not otherwise defined herein are defined
12
+ in Section V below.
13
+
14
+
15
+ This Agreement is intended to allow research, non-commercial, and limited
16
+ commercial uses of the Models free of charge. In order to ensure that certain
17
+ limited commercial uses of the Models continue to be allowed, this Agreement
18
+ preserves free access to the Models for people or organizations generating
19
+ annual revenue of less than US $1,000,000 (or local currency equivalent).
20
+
21
+
22
+ By clicking "I Accept" or by using or distributing or using any portion or
23
+ element of the Moonshine Materials or Derivative Works, You agree that You have
24
+ read, understood and are bound by the terms of this Agreement. If You are acting
25
+ on behalf of a company, organization or other entity, then "You" includes you
26
+ and that entity, and You agree that You: (i) are an authorized representative of
27
+ such entity with the authority to bind such entity to this Agreement, and (ii)
28
+ You agree to the terms of this Agreement on that entity's behalf.
29
+
30
+ II. RESEARCH & NON-COMMERCIAL USE LICENSE
31
+
32
+ Subject to the terms of this Agreement, Moonshine AI grants You a non-exclusive,
33
+ worldwide, non-transferable, non-sublicensable, revocable and royalty-free
34
+ limited license under Moonshine AI's intellectual property or other rights owned
35
+ by Moonshine AI embodied in the Moonshine AI Materials to use, reproduce,
36
+ distribute, and create Derivative Works of, and make modifications to, the
37
+ Moonshine AI Materials for any Research or Non-Commercial Purpose. "Research
38
+ Purpose" means academic or scientific advancement, and in each case, is not
39
+ primarily intended for commercial advantage or monetary compensation to You or
40
+ others. "Non-Commercial Purpose" means any purpose other than a Research Purpose
41
+ that is not primarily intended for commercial advantage or monetary compensation
42
+ to You or others, such as personal use (i.e., hobbyist) or evaluation and
43
+ testing.
44
+
45
+ III. COMMERCIAL USE LICENSE
46
+
47
+ Subject to the terms of this Agreement (including the remainder of this Section
48
+ III), Moonshine AI grants You a non-exclusive, worldwide, non-transferable,
49
+ non-sublicensable, revocable and royalty-free limited license under Moonshine
50
+ AI's intellectual property or other rights owned by Moonshine AI embodied in the
51
+ Moonshine AI Materials to use, reproduce, distribute, and create Derivative
52
+ Works of, and make modifications to, the Moonshine AI Materials for any
53
+ Commercial Purpose. "Commercial Purpose" means any purpose other than a Research
54
+ Purpose or Non-Commercial Purpose that is primarily intended for commercial
55
+ advantage or monetary compensation to You or others, including but not limited
56
+ to, (i) creating, modifying, or distributing Your product or service, including
57
+ via a hosted service or application programming interface, and (ii) for Your
58
+ business's or organization's internal operations. If You are using or
59
+ distributing the Moonshine AI Materials for a Commercial Purpose, You must
60
+ register with Moonshine AI at (https://moonshine.ai/community-license). If at
61
+ any time You or Your Affiliate(s), either individually or in aggregate, generate
62
+ more than USD $1,000,000 in annual revenue (or the equivalent thereof in Your
63
+ local currency), regardless of whether that revenue is generated directly or
64
+ indirectly from the Moonshine AI Materials or Derivative Works, any licenses
65
+ granted to You under this Agreement shall terminate as of such date. You must
66
+ request a license from Moonshine AI at (https://moonshine.ai/license) , which
67
+ Moonshine AI may grant to You in its sole discretion. If you receive Moonshine
68
+ AI Materials, or any Derivative Works thereof, from a Licensee as part of an
69
+ integrated end user product, then Section III of this Agreement will not apply
70
+ to you.
71
+
72
+ IV. GENERAL TERMS
73
+
74
+ Your Research, Non-Commercial, and Commercial License(s) under this Agreement
75
+ are subject to the following terms. a. Distribution & Attribution. If You
76
+ distribute or make available the Moonshine AI Materials or a Derivative Work to
77
+ a third party, or a product or service that uses any portion of them, You shall:
78
+ (i) provide a copy of this Agreement to that third party, (ii) retain the
79
+ following attribution notice within a "Notice" text file distributed as a part
80
+ of such copies: "This Moonshine AI Model is licensed under the Moonshine AI
81
+ Community License, Copyright © Moonshine AI Ltd. All Rights Reserved", and (iii)
82
+ prominently display "Powered by Moonshine AI" on a related website, user
83
+ interface, blogpost, about page, or product documentation. If You create a
84
+ Derivative Work, You may add your own attribution notice(s) to the "Notice" text
85
+ file included with that Derivative Work, provided that You clearly indicate
86
+ which attributions apply to the Moonshine AI Materials and state in the "Notice"
87
+ text file that You changed the Moonshine AI Materials and how it was modified.
88
+ b. Use Restrictions. Your use of the Moonshine AI Materials and Derivative
89
+ Works, including any output or results of the Moonshine AI Materials or
90
+ Derivative Works, must comply with applicable laws and regulations (including
91
+ Trade Control Laws and equivalent regulations) and adhere to the Documentation
92
+ and Moonshine AI's AUP, which is hereby incorporated by reference. Furthermore,
93
+ You will not use the Moonshine AI Materials or Derivative Works, or any output
94
+ or results of the Moonshine AI Materials or Derivative Works, to create or
95
+ improve any foundational generative AI model (excluding the Models or Derivative
96
+ Works). c. Intellectual Property. (i) Trademark License. No trademark licenses
97
+ are granted under this Agreement, and in connection with the Moonshine AI
98
+ Materials or Derivative Works, You may not use any name or mark owned by or
99
+ associated with Moonshine AI or any of its Affiliates, except as required under
100
+ Section IV(a) herein. (ii) Ownership of Derivative Works. As between You and
101
+ Moonshine AI, You are the owner of Derivative Works You create, subject to
102
+ Moonshine AI's ownership of the Moonshine AI Materials and any Derivative Works
103
+ made by or for Moonshine AI. (iii) Ownership of Outputs. As between You and
104
+ Moonshine AI, You own any outputs generated from the Models or Derivative Works
105
+ to the extent permitted by applicable law. (iv) Disputes. If You or Your
106
+ Affiliate(s) institute litigation or other proceedings against Moonshine AI
107
+ (including a cross-claim or counterclaim in a lawsuit) alleging that the
108
+ Moonshine AI Materials, Derivative Works or associated outputs or results, or
109
+ any portion of any of the foregoing, constitutes infringement of intellectual
110
+ property or other rights owned or licensable by You, then any licenses granted
111
+ to You under this Agreement shall terminate as of the date such litigation or
112
+ claim is filed or instituted. You will indemnify and hold harmless Moonshine AI
113
+ from and against any claim by any third party arising out of or related to Your
114
+ use or distribution of the Moonshine AI Materials or Derivative Works in
115
+ violation of this Agreement. (v) Feedback. From time to time, You may provide
116
+ Moonshine AI with verbal and/or written suggestions, comments or other feedback
117
+ related to Moonshine AI's existing or prospective technology, products or
118
+ services (collectively, "Feedback"). You are not obligated to provide Moonshine
119
+ AI with Feedback, but to the extent that You do, You hereby grant Moonshine AI a
120
+ perpetual, irrevocable, royalty-free, fully-paid, sub-licensable, transferable,
121
+ non-exclusive, worldwide right and license to exploit the Feedback in any manner
122
+ without restriction. Your Feedback is provided "AS IS" and You make no
123
+ warranties whatsoever about any Feedback. d. Disclaimer Of Warranty. UNLESS
124
+ REQUIRED BY APPLICABLE LAW, THE MOONSHINE AI MATERIALS AND ANY OUTPUT AND
125
+ RESULTS THEREFROM ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
126
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES
127
+ OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR
128
+ PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OR
129
+ LAWFULNESS OF USING OR REDISTRIBUTING THE MOONSHINE AI MATERIALS, DERIVATIVE
130
+ WORKS OR ANY OUTPUT OR RESULTS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF
131
+ THE MOONSHINE AI MATERIALS, DERIVATIVE WORKS AND ANY OUTPUT AND RESULTS. e.
132
+ Limitation Of Liability. IN NO EVENT WILL MOONSHINE AI OR ITS AFFILIATES BE
133
+ LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE,
134
+ PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST
135
+ PROFITS OR ANY DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY
136
+ OR PUNITIVE DAMAGES, EVEN IF MOONSHINE AI OR ITS AFFILIATES HAVE BEEN ADVISED OF
137
+ THE POSSIBILITY OF ANY OF THE FOREGOING. f. Term And Termination. The term of
138
+ this Agreement will commence upon Your acceptance of this Agreement or access to
139
+ the Moonshine AI Materials and will continue in full force and effect until
140
+ terminated in accordance with the terms and conditions herein. Moonshine AI may
141
+ terminate this Agreement if You are in breach of any term or condition of this
142
+ Agreement. Upon termination of this Agreement, You shall delete and cease use of
143
+ any Moonshine AI Materials or Derivative Works. Section IV(d), (e), and (g)
144
+ shall survive the termination of this Agreement. g. Governing Law. This
145
+ Agreement will be governed by and constructed in accordance with the laws of the
146
+ United States and the State of California without regard to choice of law
147
+ principles, and the UN Convention on Contracts for International Sale of Goods
148
+ does not apply to this Agreement.
149
+
150
+ V. DEFINITIONS
151
+
152
+ "Affiliate(s)" means any entity that directly or indirectly controls, is
153
+ controlled by, or is under common control with the subject entity; for purposes
154
+ of this definition, "control" means direct or indirect ownership or control of
155
+ more than 50% of the voting interests of the subject entity. "Agreement" means
156
+ this Moonshine AI Community License Agreement. "AUP" means the Moonshine AI
157
+ Acceptable Use Policy available at https://moonshine.ai/use-policy, as may be
158
+ updated from time to time. "Derivative Work(s)" means (a) any derivative work of
159
+ the Moonshine AI Materials as recognized by U.S. copyright laws and (b) any
160
+ modifications to a Model, and any other model created which is based on or
161
+ derived from the Model or the Model's output, including"fine tune" and "low-rank
162
+ adaptation" models derived from a Model or a Model's output, but do not include
163
+ the output of any Model. "Documentation" means any specifications, manuals,
164
+ documentation, and other written information provided by Moonshine AI related to
165
+ the Software or Models. "Model(s)" means, collectively, Moonshine AI's
166
+ proprietary models and algorithms, including machine-learning models, trained
167
+ model weights and other elements of the foregoing. "Moonshine AI" or "we" means
168
+ Moonshine AI Ltd. and its Affiliates. "Software" means Moonshine AI's
169
+ proprietary software made available under this Agreement now or in the future. "
170
+ Moonshine AI Materials" means, collectively, Moonshine's proprietary Models,
171
+ Software and Documentation (and any portion or combination thereof) made
172
+ available under this Agreement. "Trade Control Laws" means any applicable U.S.
173
+ and non-U.S. export control and trade sanctions laws and regulations.
README.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ja
4
+ library_name: transformers
5
+ license: other
6
+ pipeline_tag: automatic-speech-recognition
7
+ arxiv: https://arxiv.org/abs/2509.02523
8
+ ---
9
+
10
+ # Flavors of Moonshine: Tiny Specialized ASR Models for Edge Devices
11
+
12
+ [[Paper]](https://huggingface.co/papers/2509.02523) [[Code]](https://github.com/moonshine-ai/moonshine) [[Installation]](https://github.com/usefulsensors/moonshine/blob/main/README.md)
13
+
14
+ This is the model card for running the automatic speech recognition (ASR) models (Moonshine models) trained and released by Moonshine AI (f.k.a Useful Sensors.)
15
+
16
+ Following [Model Cards for Model Reporting (Mitchell et al.)](https://arxiv.org/abs/1810.03993), we're providing some information about the automatic speech recognition model. More information on how these models were trained and evaluated can be found [in the paper](https://arxiv.org/abs/2509.02523). Note, a lot of the text has been copied verbatim from the [model card](https://github.com/openai/whisper/blob/main/model-card.md) for the Whisper model developed by OpenAI, because both models serve identical purposes, and carry identical risks.
17
+
18
+ ## Usage
19
+
20
+ Moonshine is supported in Hugging Face 🤗 Transformers. To run the model, first install the Transformers library. For this example, we'll also install 🤗 Datasets to load toy audio dataset from the Hugging Face Hub, and 🤗 Accelerate to reduce the model loading time:
21
+
22
+ ```bash
23
+ pip install --upgrade pip
24
+ pip install --upgrade transformers datasets[audio]
25
+ ```
26
+
27
+ ```python
28
+ from transformers import MoonshineForConditionalGeneration, AutoProcessor
29
+ from datasets import load_dataset, Audio
30
+ import torch
31
+
32
+ device = "cuda:0" if torch.cuda.is_available() else "cpu"
33
+ torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
34
+
35
+ model = MoonshineForConditionalGeneration.from_pretrained('UsefulSensors/moonshine-tiny-ja').to(device).to(torch_dtype)
36
+ processor = AutoProcessor.from_pretrained('UsefulSensors/moonshine-tiny-ja')
37
+
38
+ dataset = load_dataset('UsefulSensors/multilingual_examples', split='ja')
39
+ dataset = dataset.cast_column("audio", Audio(processor.feature_extractor.sampling_rate))
40
+ sample = dataset[0]["audio"]
41
+
42
+ inputs = processor(
43
+ sample["array"],
44
+ return_tensors="pt",
45
+ sampling_rate=processor.feature_extractor.sampling_rate
46
+ )
47
+ inputs = inputs.to(device, torch_dtype)
48
+
49
+ # to avoid hallucination loops, we limit the maximum length of the generated text based expected number of tokens per second
50
+ token_limit_factor = 13 / processor.feature_extractor.sampling_rate
51
+ seq_lens = inputs.attention_mask.sum(dim=-1)
52
+ max_length = int((seq_lens * token_limit_factor).max().item())
53
+
54
+ generated_ids = model.generate(**inputs, max_length=max_length)
55
+ print(processor.decode(generated_ids[0], skip_special_tokens=True))
56
+ ```
57
+
58
+ ## Model Details
59
+
60
+ This Moonshine model is trained for the speech recognition task, capable of transcribing Japanese speech audio into Japanese text. Moonshine AI developed the models to support their business direction of developing real time speech transcription products based on low cost hardware. The following table shows comparisons of common ASR evaluations sets. For more information about evaluation, please refer to the paper.
61
+
62
+ | Size | Parameters | Fleurs (CER) ↓ | Common Voice 17 (CER) ↓ |
63
+ |:----:|:----------:|:------------------:|:------------------:|
64
+ | whisper tiny | 39 M | 47.2 | 96.11 |
65
+ | whisper medium | 769 M | 11.5 | 29.09 |
66
+ | moonshine tiny | 27 M | 17.87 | 18.3 |
67
+
68
+ ### Release date
69
+
70
+ September 2025
71
+
72
+ ### Model type
73
+
74
+ Sequence-to-sequence ASR (automatic speech recognition) and speech translation model
75
+
76
+ ## Model Use
77
+
78
+ ### Evaluated Use
79
+
80
+ The primary intended users of these models are AI developers that want to deploy Japanese speech recognition systems in platforms that are severely constrained in memory capacity and computational resources. We recognize that once models are released, it is impossible to restrict access to only “intended” uses or to draw reasonable guidelines around what is or is not safe use.
81
+
82
+ The models are primarily trained and evaluated on Arabic ASR task. They may exhibit additional capabilities, particularly if fine-tuned on certain tasks like voice activity detection, speaker classification, or speaker diarization but have not been robustly evaluated in these areas. We strongly recommend that users perform robust evaluations of the models in a particular context and domain before deploying them.
83
+
84
+ In particular, we caution against using Moonshine models to transcribe recordings of individuals taken without their consent or purporting to use these models for any kind of subjective classification. We recommend against use in high-risk domains like decision-making contexts, where flaws in accuracy can lead to pronounced flaws in outcomes. The models are intended to transcribe Japanese speech, use of the model for classification is not only not evaluated but also not appropriate, particularly to infer human attributes.
85
+
86
+ ## Training Data
87
+
88
+ The models are trained on 53,900 hours of audio and the corresponding transcripts collected from the internet, as well as datasets openly available and accessible on HuggingFace. The open datasets used are listed in the [the accompanying paper](https://arxiv.org/abs/2509.02523).
89
+
90
+ ## Performance and Limitations
91
+
92
+ Our evaluations show that, the models exhibit greater accuracy on standard datasets over existing ASR systems of both similar and larger sizes.
93
+
94
+ However, like any machine learning model, the predictions may include texts that are not actually spoken in the audio input (i.e. hallucination). We hypothesize that this happens because, given their general knowledge of language, the models combine trying to predict the next word in audio with trying to transcribe the audio itself.
95
+
96
+ In addition, the sequence-to-sequence architecture of the model makes it prone to generating repetitive texts, which can be mitigated to some degree by beam search and temperature scheduling but not perfectly. It is likely that this behavior and hallucinations may be worse for short audio segments, or segments where parts of words are cut off at the beginning or the end of the segment.
97
+
98
+ ## Broader Implications
99
+
100
+ We anticipate that Moonshine models’ transcription capabilities may be used for improving accessibility tools, especially for real-time transcription. The real value of beneficial applications built on top of Moonshine models suggests that the disparate performance of these models may have real economic implications.
101
+
102
+ There are also potential dual-use concerns that come with releasing Moonshine. While we hope the technology will be used primarily for beneficial purposes, making ASR technology more accessible could enable more actors to build capable surveillance technologies or scale up existing surveillance efforts, as the speed and accuracy allow for affordable automatic transcription and translation of large volumes of audio communication. Moreover, these models may have some capabilities to recognize specific individuals out of the box, which in turn presents safety concerns related both to dual use and disparate performance. In practice, we expect that the cost of transcription is not the limiting factor of scaling up surveillance projects.
103
+
104
+ ## Citation
105
+ If you benefit from our work, please cite us:
106
+
107
+ ```
108
+ @misc{king2025flavorsmoonshinetinyspecialized,
109
+ title={Flavors of Moonshine: Tiny Specialized ASR Models for Edge Devices},
110
+ author={Evan King and Adam Sabra and Manjunath Kudlur and James Wang and Pete Warden},
111
+ year={2025},
112
+ eprint={2509.02523},
113
+ archivePrefix={arXiv},
114
+ primaryClass={cs.CL},
115
+ url={https://arxiv.org/abs/2509.02523},
116
+ }
117
+ ```
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MoonshineForConditionalGeneration"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "decoder_hidden_act": "silu",
9
+ "decoder_num_attention_heads": 8,
10
+ "decoder_num_hidden_layers": 6,
11
+ "decoder_num_key_value_heads": 8,
12
+ "decoder_start_token_id": 1,
13
+ "encoder_hidden_act": "gelu",
14
+ "encoder_num_attention_heads": 8,
15
+ "encoder_num_hidden_layers": 6,
16
+ "encoder_num_key_value_heads": 8,
17
+ "eos_token_id": 2,
18
+ "hidden_size": 288,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 1152,
21
+ "is_encoder_decoder": true,
22
+ "max_position_embeddings": 194,
23
+ "model_type": "moonshine",
24
+ "pad_head_dim_to_multiple_of": 8,
25
+ "pad_token_id": 2,
26
+ "partial_rotary_factor": 0.9,
27
+ "rope_scaling": null,
28
+ "rope_theta": 10000.0,
29
+ "torch_dtype": "float32",
30
+ "transformers_version": "4.52.4",
31
+ "use_cache": true,
32
+ "vocab_size": 32768
33
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "decoder_start_token_id": 1,
5
+ "eos_token_id": 2,
6
+ "max_length": 194,
7
+ "pad_token_id": 2,
8
+ "transformers_version": "4.52.4"
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59a3138090fac9903210cf0f5839bbfbba385940d6b33dca4483495e96be79d3
3
+ size 108389160
preprocessor_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": false,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0.0,
7
+ "return_attention_mask": true,
8
+ "sampling_rate": 16000
9
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff