cointegrated / rut5-small

huggingface.co
Total runs: 1.1K
24-hour runs: 5
7-day runs: -134
30-day runs: -140
Model's Last Updated: April 27 2023
text-generation

Introduction of rut5-small

Model Details of rut5-small

This is a small Russian paraphraser based on the google/mt5-small model. It has rather poor paraphrasing performance, but can be fine tuned for this or other tasks.

This model was created by taking the alenusch/mt5small-ruparaphraser model and stripping 96% of its vocabulary which is unrelated to the Russian language or infrequent.

  • The original model has 300M parameters, with 256M of them being input and output embeddings.
  • After shrinking the sentencepiece vocabulary from 250K to 20K the number of model parameters reduced to 65M parameters, and model size reduced from 1.1GB to 246MB.
    • The first 5K tokens in the new vocabulary are taken from the original mt5-small .
    • The next 15K tokens are the most frequent tokens obtained by tokenizing a Russian web corpus from the Leipzig corpora collection .

The model can be used as follows:

# !pip install transformers sentencepiece
import torch
from transformers import T5ForConditionalGeneration, T5Tokenizer

tokenizer = T5Tokenizer.from_pretrained("cointegrated/rut5-small")
model = T5ForConditionalGeneration.from_pretrained("cointegrated/rut5-small")

text = 'Ехал Грека через реку, видит Грека в реке рак. '
inputs = tokenizer(text, return_tensors='pt')
with torch.no_grad():
    hypotheses = model.generate(
        **inputs, 
        do_sample=True, top_p=0.95, num_return_sequences=10, 
        repetition_penalty=2.5,
        max_length=32,
    )
for h in hypotheses:
    print(tokenizer.decode(h, skip_special_tokens=True))

Runs of cointegrated rut5-small on huggingface.co

1.1K
Total runs
5
24-hour runs
35
3-day runs
-134
7-day runs
-140
30-day runs

More Information About rut5-small huggingface.co Model

More rut5-small license Visit here:

https://choosealicense.com/licenses/mit

rut5-small huggingface.co

rut5-small huggingface.co is an AI model on huggingface.co that provides rut5-small's model effect (), which can be used instantly with this cointegrated rut5-small model. huggingface.co supports a free trial of the rut5-small model, and also provides paid use of the rut5-small. Support call rut5-small model through api, including Node.js, Python, http.

cointegrated rut5-small online free

rut5-small huggingface.co is an online trial and call api platform, which integrates rut5-small's modeling effects, including api services, and provides a free online trial of rut5-small, you can try rut5-small online for free by clicking the link below.

cointegrated rut5-small online free url in huggingface.co:

https://huggingface.co/cointegrated/rut5-small

rut5-small install

rut5-small is an open source model from GitHub that offers a free installation service, and any user can find rut5-small on GitHub to install. At the same time, huggingface.co provides the effect of rut5-small install, users can directly use rut5-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

rut5-small install url in huggingface.co:

https://huggingface.co/cointegrated/rut5-small

Url of rut5-small

Provider of rut5-small huggingface.co

cointegrated
ORGANIZATIONS

Other API from cointegrated