Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ from peft import PeftModel
|
|
| 7 |
base_model_name = "unsloth/gpt-oss-20b"
|
| 8 |
adapter_model_name = "userdotcs/gpt-oss-20b-turkish-correction-adapter"
|
| 9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 10 |
|
| 11 |
print("Model yükleniyor...")
|
| 12 |
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
|
|
|
|
| 7 |
base_model_name = "unsloth/gpt-oss-20b"
|
| 8 |
adapter_model_name = "userdotcs/gpt-oss-20b-turkish-correction-adapter"
|
| 9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 10 |
+
print(device)
|
| 11 |
|
| 12 |
print("Model yükleniyor...")
|
| 13 |
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
|