Instructions to use latincy/latin-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use latincy/latin-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="latincy/latin-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("latincy/latin-bert") model = AutoModel.from_pretrained("latincy/latin-bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pyproject.toml from latincy/latin-bert: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/latincy/latin-bert/resolve/main/pyproject.toml
- Command line
-
hf download hf://latincy/latin-bert/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/latincy/latin-bert/resolve/main/pyproject.toml
680 Bytes
| [project] | |
| name = "latincy-latinbert" | |
| version = "1.2.1" | |
| description = "HuggingFace-compatible Latin BERT (Bamman & Burns 2020) with standalone tokenizer" | |
| readme = "README.md" | |
| requires-python = ">=3.9" | |
| license = "MIT" | |
| dependencies = [ | |
| "transformers>=4.20.0", | |
| "torch>=1.9.0", | |
| ] | |
| [project.optional-dependencies] | |
| dev = [ | |
| "pytest>=7.0", | |
| ] | |
| benchmark = [ | |
| "pytest>=7.0", | |
| "cltk", | |
| "joblib", | |
| "gdown", | |
| ] | |
| [build-system] | |
| requires = ["hatchling"] | |
| build-backend = "hatchling.build" | |
| [tool.hatch.build.targets.wheel] | |
| packages = ["src/latincy_latinbert"] | |
| [tool.pytest.ini_options] | |
| markers = [ | |
| "slow: marks tests as slow (case study reproductions requiring GPU)", | |
| ] | |