Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,12 +5,11 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
| 5 |
# 1. Define paths
|
| 6 |
# We load the base configuration and weights from the official hub,
|
| 7 |
# but point the model to load your local folder ("./") for the PEFT adapter layers.
|
| 8 |
-
|
| 9 |
-
adapter_path = "./"
|
| 10 |
|
| 11 |
-
print("Loading
|
| 12 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
| 13 |
-
model = AutoModelForSeq2SeqLM.from_pretrained(
|
| 14 |
|
| 15 |
print("Merging your fine-tuned DialectGo adapter layers...")
|
| 16 |
# This automatically spots adapter_config.json in your root and snaps it on
|
|
|
|
| 5 |
# 1. Define paths
|
| 6 |
# We load the base configuration and weights from the official hub,
|
| 7 |
# but point the model to load your local folder ("./") for the PEFT adapter layers.
|
| 8 |
+
model_path = "Akariieieie/DialectGo-NLLB"
|
|
|
|
| 9 |
|
| 10 |
+
print(f"Loading fully fine-tuned DialectGo model from hub: {model_path}...")
|
| 11 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 12 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
|
| 13 |
|
| 14 |
print("Merging your fine-tuned DialectGo adapter layers...")
|
| 15 |
# This automatically spots adapter_config.json in your root and snaps it on
|