Downloads · 30 days
36
11% of all-time downloads
mazhewitt/qwen-typo-fixer
qwen-typo-fixer is a text generation model from mazhewitt. Use it when you need the model to write or continue text. The card lists the license as mit.
A fine-tuned Qwen model for typo correction using advanced error patterns and multi-domain training data.
Downloads · 30 days
36
11% of all-time downloads
All-time downloads
319
Public
Parameters
596M
28.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt7.2 GB · 60%
From the Hugging Face model README
A fine-tuned Qwen model for typo correction using advanced error patterns and multi-domain training data.
This model is a fine-tuned version of Qwen/Qwen2-0.5B for typo correction. It was trained on an enhanced dataset featuring:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("mazhewitt/qwen-typo-fixer", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("mazhewitt/qwen-typo-fixer", trust_remote_code=True)
# Example usage
text_with_typos = "I beleive this is teh correct answr."
prompt = f"<|im_start|>user\nCorrect the typos in this text: {text_with_typos}<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50, temperature=0.1)
correction = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(correction)
The model was trained with the following key parameters:
The model achieves strong performance on typo correction tasks, with particular strength in:
If you use this model, please cite:
@misc{qwen-enhanced-typo-fixer,
title={Qwen Enhanced Typo Fixer},
author={mazhewitt},
year={2025},
url={https://huggingface.co/mazhewitt/qwen-typo-fixer}
}