This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| import torch | |
| import numpy as np | |
| from datasets import load_dataset | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| import matplotlib.pyplot as plt | |
| from scipy.interpolate import make_interp_spline | |
| from tqdm import tqdm | |
| import gc | |
| import random |