Train gpt-2 from scratch in Italian
Hello, I’m looking for a guide or some help to train gpt-2 from scratch on a small corpus. If this makes any difference the corpus is in italian, and I only know pytorch.About tokenizers: is the tokenizer somehow language-agnostic?About the corpus: is it supposed to be formatted in a specific way? I’ve seen some corpus’ files formatted with a space surrounding all punctuation symbols (before and after).Is this the recomended script?github.comhuggingface/transformers/blob/main/examples/pytorch/language-modeling/run_clm.py#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Fine-tuning the library models for causal language modeling (GPT, GPT-2, CTRL, ...) on a text file or a dataset.

Here is the full list of checkpoints on the hub that can be fine-tuned by this script:
https://huggingface.co/models?filter=text-generationThis file has been truncated.show originalor this??colab.research.google.comGoogle ColaboratoryI’ve found this guide but uses tensorflow???Medium – 18 Nov 20Train GPT-2 in your own languageA step-by-step guide to train your own GPT-2 model for text generation in your choice of language from scratchReading time: 6 min readdocs.aitextgen.ioTraining a GPT-2 Model From Scratch - aitextgenA robust Python tool for text-based AI training and generation using GPT-2 and GPT Neo.thanks