Views
No views yet
best_model.pt — fine-tuned weights (dict: epoch, avg_loss, model)model.py — the DarijaTransformer architecture (needed to load the weights)darija_bpe.model — the SentencePiece tokenizerconfig.json — architecture + eval metadatainference.py — self-contained greedy decoding1pip install torch sentencepiece
2# put all the files in one folder, then:
3python inference.py1from inference import translate
2print(translate("9adeh soumha"))