This modelcard aims to be a base template for new models. It has been generated using
this raw template.
auto-edit-hy-500m is a specialized model for auto-editing Armenian (hy) text, using the AutoEditForConditionalGeneration architecture from the hy-models library. With approximately 500M parameters, it processes Armenian text to correct errors, ensuring clarity and accuracy across various contexts. The model was trained on a synthetic dataset created from the SAW-corpus, incorporating diverse error patterns to support robust auto-editing capabilities for Armenian NLP.
It supports text with Markdown formatting, including lists and tables.
The model is intended for direct use in auto-editing Armenian text, correcting errors to improve clarity, accuracy, and overall quality.
-
Use with non-Armenian languages.
-
Tasks beyond auto-editing, such as general language modeling or translation.
-
Limited to Armenian text, with no support for other languages.
-
No evaluation metrics are available due to the lack of comparable Armenian auto-editing models.
Users should test the model on their specific use cases to ensure it meets their needs.
1import torch
2from transformers import AutoTokenizer
3from hy_models import AutoEditForConditionalGeneration
4
5# Install hy-models: pip install git+https://github.com/MMinasyan/hy-models
6
7tokenizer = AutoTokenizer.from_pretrained("Syntheresis/auto-edit-hy-500m")
8model = AutoEditForConditionalGeneration.from_pretrained("Syntheresis/auto-edit-hy-500m").to("cuda")
9
10# Auto-edit random morqur's youtube comment
11input_text = "շատ գրագետ խոսումեք: բայց փաստն այնե որ գողությունը ավելացելա հետեվաբար, ձեր խոսոլը զրոե պեքե աշխատել"
12inputs = tokenizer([input_text], return_tensors="pt").to("cuda")
13outputs = model.generate(**inputs)
14output_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
15print(output_text)
16# Շատ գրագետ խոսում եք, բայց փաստն այն է, որ գողությունը ավելացել է, հետեւաբար, ձեր խոսելը զրո է, պետք է աշխատել
The model was trained on a synthetic dataset derived from the SAW-corpus (
https://huggingface.co/datasets/Syntheresis/SAW-corpus). The synthetic dataset was created by:
-
Regenerating masked sequences with token-level and character-level generative models.
-
Applying back-translation with open-source machine-translation models for text variety.
-
Introducing random grammatical errors with over 500 grammatical mistake patterns.
-
Architecture: Text-to-text model with cross-attention, pre-norm, Rotary Position Embeddings (RePE), and Grouped-Query Attention (GQA).
-
Objective: Auto-editing Armenian text to correct errors and improve quality.
-
Hugging Face transformers library (version 4.49.0.dev0)
-