Instructions to use efontes/efontes-latin-lemma-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use efontes/efontes-latin-lemma-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="efontes/efontes-latin-lemma-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("efontes/efontes-latin-lemma-v2") model = AutoModelForSeq2SeqLM.from_pretrained("efontes/efontes-latin-lemma-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use efontes/efontes-latin-lemma-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "efontes/efontes-latin-lemma-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efontes/efontes-latin-lemma-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/efontes/efontes-latin-lemma-v2
- SGLang
How to use efontes/efontes-latin-lemma-v2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "efontes/efontes-latin-lemma-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efontes/efontes-latin-lemma-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "efontes/efontes-latin-lemma-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efontes/efontes-latin-lemma-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use efontes/efontes-latin-lemma-v2 with Docker Model Runner:
docker model run hf.co/efontes/efontes-latin-lemma-v2
eFontes Latin Tagger v2 — lemmatization model
This model lemmatises Latin token forms. It is the lemma component of the corrected eFontes Latin Tagger v2 release.
Intended use
The model interface is FORM:POS to LEMMA. For normal use, install the
public eFontes Tagger runtime,
which supplies POS labels, preserves punctuation and numeral forms directly,
and returns annotation output without a separate cleanup script.
Evaluation
On the eFontes held-out test split (18,821 tokens), this snapshot achieved 98.48% exact lemma accuracy. Raw output contained 0 POS-label artefacts. The public runtime handles punctuation and unambiguous numeral forms deterministically, rather than sending those non-lexical forms to the generator.
Limitations
The model is intended for Medieval Latin. Accuracy can differ for periods, orthographies, abbreviations, damaged text, and genres not represented in its training and evaluation data. Predictions require scholarly review.
Authorship and lineage
The corrected v2 release is maintained and published by Krzysztof Nowak (2026). It builds on the earlier eFontes research and models described in the 2024 paper below.
Citation
Please cite the versioned eFontes Tagger v2 release together with the original eFontes paper:
Nowak, Krzysztof; Jędrzej Ziębura; Krzysztof Wróbel; and Aleksander Smywiński-Pohl. 2024. eFontes. Part of Speech Tagging and Lemmatization of Medieval Latin Texts: A Cross-Genre Survey. https://doi.org/10.48550/arXiv.2407.00418
Licence
Model weights are released under CC BY-NC-SA 4.0.
- Downloads last month
- -