Downloads · 30 days
64
5% of all-time downloads
ValleHorn/german-audio-correction-gemma2
german-audio-correction-gemma2 is a text generation model from ValleHorn. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
--- license: apache-2.0 basemodel: unsloth/gemma-2-2b-it tags: - fine-tuned - text-correction - german - asr-postprocessing - gguf - unsloth - lora ---
Downloads · 30 days
64
5% of all-time downloads
All-time downloads
1.3K
Public
Parameters
2.7B
4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 57%
How the weights are stored.
U82.1B · 78%
From the Hugging Face model README
license: apache-2.0 base_model: unsloth/gemma-2-2b-it tags:
This model is a fine-tuned version of unsloth/gemma-2-2b-it, specialized for correcting German text from audio transcriptions (STT/ASR outputs). It fixes phonetic errors (e.g., misheard words), awkward sentence structures, repetitions (e.g., "die die"), and punctuation issues while preserving the original meaning. Designed for chaining after an STT model like Whisper, it helps create clean, readable German text for applications like note-taking or web apps.
Background: Proprietary APIs (e.g., OpenAI) offer quick inference but limit control. This open-source fine-tune runs locally (e.g., on laptops with 32GB RAM via Ollama/GGUF) or via HF, allowing customization and offline use.
ollama pull vallehorn/german-audio-correction-gemma2:q4_k_mollama run vallehorn/german-audio-correction-gemma2Use the Modelfile for custom params (e.g., temperature=0.7).
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained("ValleHorn/german-audio-correction-gemma2")
model = FastLanguageModel.for_inference(model)
messages = [{"role": "user", "content": "Noisy German text here"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to("cuda")
outputs = model.generate(input_ids=inputs, max_new_tokens=128, temperature=0.7)
print(tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True))