cstr commited on
Commit
cdfd2c4
·
verified ·
1 Parent(s): 802b440

Add model card

Browse files
Files changed (1) hide show
  1. README.md +62 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - multilingual
6
+ pipeline_tag: automatic-speech-recognition
7
+ tags:
8
+ - audio
9
+ - speech-recognition
10
+ - gguf
11
+ - gemma
12
+ - conformer
13
+ library_name: ggml
14
+ base_model: google/gemma-4-E4B-it
15
+ ---
16
+
17
+ # Gemma-4-E4B-it — GGUF
18
+
19
+ GGUF conversion of [`google/gemma-4-E4B-it`](https://huggingface.co/google/gemma-4-E4B-it) for use with **[CrispStrobe/CrispASR](https://github.com/CrispStrobe/CrispASR)**.
20
+
21
+ E4B is the larger sibling of [`cstr/gemma4-e2b-it-GGUF`](https://huggingface.co/cstr/gemma4-e2b-it-GGUF): the **same `gemma4` architecture** (byte-identical 1024-dim USM Conformer audio tower) with a larger decoder. It runs on the same CrispASR backend with no code changes.
22
+
23
+ > The Gemma-4 **12B** model is a *different* architecture (`gemma4_unified`, 640-dim audio encoder) and is **not** supported by this backend.
24
+
25
+ ## Available variants
26
+
27
+ | File | Quant | Size | Notes |
28
+ |---|---|---|---|
29
+ | `gemma4-e4b-it-f16.gguf` | F16 | ~14.6 GB | Full precision |
30
+ | `gemma4-e4b-it-q8_0.gguf` | Q8_0 | ~7.8 GB | Near-lossless quant |
31
+ | `gemma4-e4b-it-q4_k.gguf` | Q4_K | ~4.1 GB | Standard quant (auto-download default) |
32
+
33
+ ## Model details
34
+
35
+ - **Architecture:** USM Conformer audio encoder (12L, 1024d, chunked-local attention with relative position bias, LightConv1d, ClippableLinear with QAT scalars) + Gemma4 LLM decoder (42L, 2560d, GQA 8Q/2KV, per-layer embeddings, hybrid sliding/full attention, GeGLU)
36
+ - **Parameters:** ~4B effective (~8B with embeddings)
37
+ - **Audio:** Gemma4AudioFeatureExtractor — 128-bin mel, 16 kHz, frame_length=320, hop=160, fft_length=512, semicausal padding, log(mel + mel_floor=0.001), no normalisation
38
+ - **Languages:** 140+ (ASR + speech translation)
39
+ - **License:** Apache 2.0
40
+ - **Source:** [`google/gemma-4-E4B-it`](https://huggingface.co/google/gemma-4-E4B-it)
41
+
42
+ ## Usage
43
+
44
+ ```bash
45
+ # Auto-download the Q4_K default and transcribe:
46
+ crispasr -m gemma4-e4b --auto-download -f audio.wav
47
+
48
+ # Or point at a local file (backend auto-detected from the GGUF):
49
+ crispasr --backend gemma4-e2b -m gemma4-e4b-it-q4_k.gguf -f audio.wav
50
+ ```
51
+
52
+ The CrispASR backend is named `gemma4-e2b` (it serves the whole `gemma4` E2B/E4B family).
53
+
54
+ ## What's included vs an upstream Gemma-4 GGUF
55
+
56
+ This GGUF is built specifically for ASR with CrispASR and includes the audio path that standard text/vision Gemma-4 GGUFs omit:
57
+
58
+ - 12-layer audio conformer encoder.
59
+ - Gemma4MultimodalEmbedder audio→LLM adapter (`embed_audio.embedding_projection`, pre-projection RMSNorm).
60
+ - Mel filterbank + Hann window baked into the GGUF.
61
+
62
+ Converted with [`models/convert-gemma4-e2b-to-gguf.py`](https://github.com/CrispStrobe/CrispASR/blob/main/models/convert-gemma4-e2b-to-gguf.py).