Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
import os, torch
|
5 |
from datasets import load_dataset
|
6 |
from huggingface_hub import HfApi, login
|
7 |
-
from peft import LoraConfig, TaskType, get_peft_model
|
8 |
from transformers import AutoModelForCausalLM, AutoTokenizer, Seq2SeqTrainer, Seq2SeqTrainingArguments, pipeline
|
9 |
|
10 |
ACTION_1 = "Prompt base model"
|
@@ -105,7 +105,6 @@ def fine_tune_model(base_model_name, dataset_name):
|
|
105 |
task_type=TaskType.SEQ_2_SEQ_LM,
|
106 |
)
|
107 |
|
108 |
-
model = prepare_model_for_int8_training(model)
|
109 |
model = get_peft_model(model, lora_config)
|
110 |
model.print_trainable_parameters()
|
111 |
|
|
|
4 |
import os, torch
|
5 |
from datasets import load_dataset
|
6 |
from huggingface_hub import HfApi, login
|
7 |
+
from peft import LoraConfig, TaskType, get_peft_model
|
8 |
from transformers import AutoModelForCausalLM, AutoTokenizer, Seq2SeqTrainer, Seq2SeqTrainingArguments, pipeline
|
9 |
|
10 |
ACTION_1 = "Prompt base model"
|
|
|
105 |
task_type=TaskType.SEQ_2_SEQ_LM,
|
106 |
)
|
107 |
|
|
|
108 |
model = get_peft_model(model, lora_config)
|
109 |
model.print_trainable_parameters()
|
110 |
|