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 os | |
| os.system("pip install -q -U 'bitsandbytes>=0.46.1'") | |
| # WARNING: Don't commit this file with a real token. | |
| os.environ["HF_TOKEN"] = "my API Key" | |
| import torch | |
| from datasets import load_dataset | |
| from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig |