Run this model with HF Jobs

Run Aminrhmni/PersianAutomaticPunctuation on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Aminrhmni/PersianAutomaticPunctuation. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Aminrhmni/PersianAutomaticPunctuation on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

***This model is intended for non-commercial use only. If you wish to use it commercially, please refer to this LinkedIn address.

https://www.linkedin.com/in/amin-rahmani-41417b121/

"Viravirast" is an editor based on transformer algorithms. By visiting Viravirast.com, you can use a Persian semantic and structural text editor.

***Use this code in order to get the complete and correct sentence

from transformers import ( T5Tokenizer, MT5ForConditionalGeneration, Text2TextGenerationPipeline, )

path = ""

pipe = Text2TextGenerationPipeline( model=MT5ForConditionalGeneration.from_pretrained(path), tokenizer=T5Tokenizer.from_pretrained(path), )

sentence = "ویراویراست یک نرم افزار ویرایش متن ساختاری و معنایی زبان فارسی است چیزی شبیه به گرامرلی در زبان انگلیسی"

#res = pipe(sentence, max_length=100, num_beams=4

res = pipe(sentence, max_length=100)

print(res[0]['generated_text'])

n_epochs = 4

train_batch_size = 8

eval_batch_size = 4

lr = 5e-4

Training_Loss=0.00550

Validation_Loss=0.052046

Downloads last month
14
Safetensors
Model size
0.6B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support