Views
No views yet
1from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained("LoveJesus/biblical-variant-classifier-chirho")
4model = AutoModelForSeq2SeqLM.from_pretrained("LoveJesus/biblical-variant-classifier-chirho")
5
6input_text = "classify variant [greek]: βαπτίζω [MAT.3.11] editions: NTS context: ἐγὼ μὲν ὑμᾶς βαπτίζω"
7inputs = tokenizer(input_text, return_tensors="pt")
8outputs = model.generate(**inputs, max_length=128)
9print(tokenizer.decode(outputs[0], skip_special_tokens=True))| Metric | Score |
|---|---|
| Eval loss (best) | 0.0868 (epoch 9) |
| Variant type accuracy | 98.87% |
| Exact match (full output) | 37.5% |
| Training steps | 9,558 |
| Epoch | Loss | Exact Match | Type Accuracy |
|---|---|---|---|
| 1 | 0.8033 | 0% | 69.3% |
| 2 | 0.2577 | 1.0% | 67.5% |
| 3 | 0.1465 | 12.1% | 94.5% |
| 4 | 0.1159 | 25.9% | 96.0% |
| 5 | 0.1039 | 29.3% | 98.3% |
| 6 | 0.0963 | 32.7% | 98.8% |
| 7 | 0.0914 | 34.7% | 97.8% |
| 8 | 0.0888 | 35.6% | 98.8% |
| 9 | 0.0868 | 37.5% | 98.9% |