lvwerra / gpt2-imdb

huggingface.co
Total runs: 4.9K
24-hour runs: 0
7-day runs: 181
30-day runs: -3.1K
Model's Last Updated: May 23 2021
text-generation

Introduction of gpt2-imdb

Model Details of gpt2-imdb

GPT2-IMDB

What is it?

A GPT2 ( gpt2 ) language model fine-tuned on the IMDB dataset .

Training setting

The GPT2 language model was fine-tuned for 1 epoch on the IMDB dataset. All comments were joined into a single text file separated by the EOS token:

import pandas as pd
df = pd.read_csv("imdb-dataset.csv")
imdb_str = " <|endoftext|> ".join(df['review'].tolist())

with open ('imdb.txt', 'w') as f:
    f.write(imdb_str)

To train the model the run_language_modeling.py script in the transformer library was used:

python run_language_modeling.py 
    --train_data_file imdb.txt 
    --output_dir gpt2-imdb 
    --model_type gpt2 
    --model_name_or_path gpt2

Runs of lvwerra gpt2-imdb on huggingface.co

4.9K
Total runs
0
24-hour runs
465
3-day runs
181
7-day runs
-3.1K
30-day runs

More Information About gpt2-imdb huggingface.co Model

gpt2-imdb huggingface.co

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

gpt2-imdb huggingface.co Url

https://huggingface.co/lvwerra/gpt2-imdb

lvwerra gpt2-imdb online free

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

lvwerra gpt2-imdb online free url in huggingface.co:

https://huggingface.co/lvwerra/gpt2-imdb

gpt2-imdb install

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

gpt2-imdb install url in huggingface.co:

https://huggingface.co/lvwerra/gpt2-imdb

Url of gpt2-imdb

gpt2-imdb huggingface.co Url

Provider of gpt2-imdb huggingface.co

lvwerra
ORGANIZATIONS

Other API from lvwerra

huggingface.co

Total runs: 24.3K
Run Growth: -465.2K
Growth Rate: -1918.16%
Updated:January 25 2023
huggingface.co

Total runs: 26
Run Growth: -2
Growth Rate: -7.69%
Updated:May 20 2021
huggingface.co

Total runs: 7
Run Growth: 4
Growth Rate: 57.14%
Updated:November 18 2025
huggingface.co

Total runs: 7
Run Growth: -3
Growth Rate: -42.86%
Updated:March 02 2023
huggingface.co

Total runs: 4
Run Growth: -1
Growth Rate: -25.00%
Updated:March 11 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 21 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 12 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 20 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 11 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 04 2022