Upload app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ model = get_peft_model(model, lora_config)
|
|
25 |
model.gradient_checkpointing_enable()
|
26 |
|
27 |
@spaces.GPU(duration=120)
|
28 |
-
def fine_tune_model(
|
29 |
try:
|
30 |
torch.cuda.empty_cache()
|
31 |
def compute_metrics(eval_pred):
|
|
|
25 |
model.gradient_checkpointing_enable()
|
26 |
|
27 |
@spaces.GPU(duration=120)
|
28 |
+
def fine_tune_model(dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad):
|
29 |
try:
|
30 |
torch.cuda.empty_cache()
|
31 |
def compute_metrics(eval_pred):
|