Downloads · 30 days
21
1% of all-time downloads
pszemraj/mGPT-Peter-2E
mGPT-Peter-2E is a text generation model from pszemraj. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
- This model is a fine-tuned version of sberbank-ai/mGPT on 80k messages. This builds on the minimum-working-example checkpoint here. - 2E = 2 epochs
Downloads · 30 days
21
1% of all-time downloads
All-time downloads
2K
Public
Parameters
1.5B
12.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin6.1 GB · 50%
From the Hugging Face model README
Interesting findings thus far:
<name-identifier> that is in a non-English language helps ensure the model responds in the question language (see: any example).<language>to English in the middle of the generated text. This demonstrates some sort of "universal concept understanding"Install the transformers library if you don't have it:
pip install -U transformers
load the model into a pipeline object:
from transformers import pipeline
import torch
device = 'cuda' if torch.cuda.is_available() else 'cpu'
my_chatbot = pipeline('text-generation',
'pszemraj/mGPT-Peter-2E',
device=0 if device == 'cuda' else -1,
)
The following hyperparameters were used during training: