Spaces:
Sleeping
Sleeping
Commit ·
7134637
1
Parent(s): b24518f
changed adapter name
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ print("Base model architecture and tokenizer loaded.")
|
|
| 69 |
|
| 70 |
# Download the fine-tuned weights via ClearML using your injected creds
|
| 71 |
task = Task.get_task(task_id="2d65a9e213ea49a9b37e1cc89a2b7ff0")
|
| 72 |
-
finetuned_weights_path = task.artifacts["lora-
|
| 73 |
print(f"Fine-tuned adapter weights downloaded to directory: {os.path.dirname(finetuned_weights_path)}")
|
| 74 |
|
| 75 |
# Create LoRA configuration matching the fine-tuned checkpoint
|
|
|
|
| 69 |
|
| 70 |
# Download the fine-tuned weights via ClearML using your injected creds
|
| 71 |
task = Task.get_task(task_id="2d65a9e213ea49a9b37e1cc89a2b7ff0")
|
| 72 |
+
finetuned_weights_path = task.artifacts["lora-adapter"].get_local_copy()
|
| 73 |
print(f"Fine-tuned adapter weights downloaded to directory: {os.path.dirname(finetuned_weights_path)}")
|
| 74 |
|
| 75 |
# Create LoRA configuration matching the fine-tuned checkpoint
|