Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
We splitted the dataset into three subsets - train, valid and test sets. Both tokenizer and model were trained on the train set.
Train set contains around 540M tokens.
Model description
The model architecture is the same as GPT-2 small model (n_ctx: 1024, n_embd 768, n_head: 12, n_layer: 12) except for a vocabulary size.
The vocabulary size is set to 32,000 instead of an original size of 50,257.
transformers.GPT2LMHeadModel
is used for training.
We utilized 1,000,000 sentences from train set.
The vocabulary size was 32,000.
A
add_dummy_prefix
option was set to
True
because Japanese words are not separated by whitespaces.
After training, the tokenizer model was imported as
transformers.BERTGenerationTokenizer
because it supports SentencePiece models and it does not add any special tokens as default,
which is useful expecially for a text generation task.
Training
The model was trained on the train set for 30 epochs with batch size 32. Each sample contained 1024 tokens.
We utilized Adam optimizer. Learning rate was linearly increased from
0
to
1e-4
during the first 10,000 steps.
A clip norm was set to
1.0
.
Test set perplexity of the trained model was 29.13.
Note:
The default model configuration
config.json
sets parameters for text generation with
do_sample=True
,
top_k=50
,
top_p=0.95
.
Please set these parameters when you need to use different parameters.
Versions
We recommend to specify
revision
to load the model for reproducibility.
Revision
Date of Wikipedia dump
20210820.1.0
Aug 20, 2021
20210301.1.0
March 1, 2021
You can specify
revision
as follows.
# Example of pipeline>>> transformers.pipeline("text-generation", "colorfulscoop/gpt2-small-ja", revision="20210820.1.0")
# Example of AutoModel>>> transformers.AutoModel.from_pretrained("colorfulscoop/gpt2-small-ja", revision="20210820.1.0")
Disclaimer:
The model potentially has possibility that it generates similar texts in the training data, texts not to be true, or biased texts. Use of the model is at your sole risk. Colorful Scoop makes no warranty or guarantee of any outputs from the model. Colorful Scoop is not liable for any trouble, loss, or damage arising from the model output.
Author:
Colorful Scoop
Runs of colorfulscoop gpt2-small-ja on huggingface.co
1.0K
Total runs
0
24-hour runs
10
3-day runs
-29
7-day runs
605
30-day runs
More Information About gpt2-small-ja huggingface.co Model
gpt2-small-ja huggingface.co is an AI model on huggingface.co that provides gpt2-small-ja's model effect (), which can be used instantly with this colorfulscoop gpt2-small-ja model. huggingface.co supports a free trial of the gpt2-small-ja model, and also provides paid use of the gpt2-small-ja. Support call gpt2-small-ja model through api, including Node.js, Python, http.
gpt2-small-ja huggingface.co is an online trial and call api platform, which integrates gpt2-small-ja's modeling effects, including api services, and provides a free online trial of gpt2-small-ja, you can try gpt2-small-ja online for free by clicking the link below.
colorfulscoop gpt2-small-ja online free url in huggingface.co:
gpt2-small-ja is an open source model from GitHub that offers a free installation service, and any user can find gpt2-small-ja on GitHub to install. At the same time, huggingface.co provides the effect of gpt2-small-ja install, users can directly use gpt2-small-ja installed effect in huggingface.co for debugging and trial. It also supports api for free installation.