Akariieieie commited on
Commit
a936231
·
verified ·
1 Parent(s): e7cabfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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
- base_model_name = "facebook/nllb-200-distilled-600M"
9
- adapter_path = "./"
10
 
11
- print("Loading official NLLB-200 base model...")
12
- tokenizer = AutoTokenizer.from_pretrained(base_model_name)
13
- model = AutoModelForSeq2SeqLM.from_pretrained(base_model_name)
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