Downloads · 30 days
7
8% of all-time downloads
Syntheresis/auto-edit-hy-500m
auto-edit-hy-500m is a machine learning model from Syntheresis. 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.
This modelcard aims to be a base template for new models. It has been generated using this raw template.
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
89
Public
Repo size
5.7 GB
Likes
0
Public
Click a slice to open those files.
.json906 KB · 99%
From the Hugging Face model README
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.
import torch
from transformers import AutoTokenizer
from hy_models import AutoEditForConditionalGeneration
# Install hy-models: pip install git+https://github.com/MMinasyan/hy-models
tokenizer = AutoTokenizer.from_pretrained("Syntheresis/auto-edit-hy-500m")
model = AutoEditForConditionalGeneration.from_pretrained("Syntheresis/auto-edit-hy-500m").to("cuda")
# Auto-edit random morqur's youtube comment
input_text = "շատ գրագետ խոսումեք: բայց փաստն այնե որ գողությունը ավելացելա հետեվաբար, ձեր խոսոլը զրոե պեքե աշխատել"
inputs = tokenizer([input_text], return_tensors="pt").to("cuda")
outputs = model.generate(**inputs)
output_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(output_text)
# Շատ գրագետ խոսում եք, բայց փաստն այն է, որ գողությունը ավելացել է, հետեւաբար, ձեր խոսելը զրո է, պետք է աշխատել
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.
Dual NVIDIA RTX 4090 GPUs
Hugging Face transformers library (version 4.49.0.dev0)
hy-models library (https://github.com/MMinasyan/hy-models)