Skip to content

Instantly share code, notes, and snippets.

@g-i-o-r-g-i-o
g-i-o-r-g-i-o / gpt2_from_scratch.py
Created September 8, 2022 12:55 — forked from miladfa7/gpt2_from_scratch.py
Train GPT-2 from Scratch on your own language(Persain) | GPT-2 Training on non-english text
from simpletransformers.language_modeling import LanguageModelingModel
import logging
logging.basicConfig(level=logging.INFO)
transformers_logger = logging.getLogger("transformers")
transformers_logger.setLevel(logging.WARNING)
train_args = {
#!/usr/bin/env python3
'''
always getting the most recent frame of a camera
================================================
Usage:
------
freshest_camera_frame.py