Downloads · 30 days
15
2% of all-time downloads
grammarly/spivavtor-xxl
spivavtor-xxl is a machine learning model from grammarly. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as cc-by-4.0.
This model was obtained by instruction tuning CohereForAI/aya-101 model on the Spivavtor dataset. All details of the dataset and fine tuning process can be found in our paper.
Downloads · 30 days
15
2% of all-time downloads
All-time downloads
941
Public
Parameters
12.9B
51.7 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors51.7 GB · 100%
From the Hugging Face model README
This model was obtained by instruction tuning CohereForAI/aya-101 model on the Spivavtor dataset. All details of the dataset and fine tuning process can be found in our paper.
Paper: Spivavtor: An Instruction Tuned Ukrainian Text Editing Model
Authors: Aman Saini, Artem Chernodub, Vipul Raheja, Vivek Kulkarni
We make the following models available from our paper.
<table> <tr> <th>Model</th> <th>Number of parameters</th> <th>Reference name in Paper</th> </tr> <tr> <td>Spivavtor-large</td> <td>1.2B</td> <td>SPIVAVTOR-MT0-LARGE</td> </tr> <tr> <td>Spivavtor-xxl</td> <td>13B</td> <td>SPIVAVTOR-AYA-101</td> </tr> </table>from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("grammarly/spivavtor-xxl")
model = AutoModelForSeq2SeqLM.from_pretrained("grammarly/spivavtor-xxl")
# Paraphrase the sentence: What is the greatest compliment that you ever received from anyone?
input_text = 'Перефразуйте речення: Який найкращий комплімент, який ти отримував від будь-кого?'
inputs = tokenizer.encode(input_text, return_tensors="pt")
output = model.generate(inputs, max_length=256)
output_text = tokenizer.decode(outputs[0], skip_special_tokens=True)