Update README.md
Browse files
README.md
CHANGED
@@ -52,21 +52,14 @@ Or use this :
|
|
52 |
``` python
|
53 |
# !pip install -q accelerate==0.21.0 peft==0.4.0 bitsandbytes==0.40.2 transformers==4.31.0 trl==0.4.7
|
54 |
|
55 |
-
import os
|
56 |
import torch
|
57 |
-
from datasets import load_dataset
|
58 |
from transformers import (
|
59 |
AutoModelForCausalLM,
|
60 |
AutoTokenizer,
|
61 |
BitsAndBytesConfig,
|
62 |
-
Trainer,
|
63 |
-
HfArgumentParser,
|
64 |
-
TrainingArguments,
|
65 |
pipeline,
|
66 |
-
|
67 |
)
|
68 |
-
from peft import LoraConfig, PeftModel
|
69 |
-
from trl import SFTTrainer
|
70 |
|
71 |
###############################################################################
|
72 |
# bitsandbytes parameters
|
|
|
52 |
``` python
|
53 |
# !pip install -q accelerate==0.21.0 peft==0.4.0 bitsandbytes==0.40.2 transformers==4.31.0 trl==0.4.7
|
54 |
|
|
|
55 |
import torch
|
|
|
56 |
from transformers import (
|
57 |
AutoModelForCausalLM,
|
58 |
AutoTokenizer,
|
59 |
BitsAndBytesConfig,
|
|
|
|
|
|
|
60 |
pipeline,
|
61 |
+
|
62 |
)
|
|
|
|
|
63 |
|
64 |
###############################################################################
|
65 |
# bitsandbytes parameters
|