Downloads · 30 days
5
3% of all-time downloads
Pclanglais/Headlines-OCR-Correction
Headlines-OCR-Correction is a machine learning model from Pclanglais. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Headlines-OCR-Correction is a model for the the correction of OCR errors and the standardization of French news headlines.
Downloads · 30 days
5
3% of all-time downloads
All-time downloads
151
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
Headlines-OCR-Correction is a model for the the correction of OCR errors and the standardization of French news headlines.
Headlines-OCR-Correction use a custom instruction structure: "### Text ###\n[text]\n\n### Correction ###\n" and a custom eos #END#.
Typical usage with vllm:
sampling_params = SamplingParams(temperature=0.9, top_p=.95, max_tokens=4000, presence_penalty = 0, stop=["#END#"])
prompt = "### Text ###\n" + user_input + "\n\n### Correction ###\n"
outputs = llm.generate(prompts, sampling_params, use_tqdm = False)