Compare model versions
Model: cis-lmu/glotlid
Earlier snapshot
Snapshot #6543
Repository revision
49990ca (opens in a new tab)
Recorded at 29 Oct 2026, 09:56 UTC
Unchanged through 31 Oct 2026, 05:01 UTC
Later snapshot
Snapshot #6609
Repository revision
baa20d1 (opens in a new tab)
Recorded at 01 Nov 2026, 06:29 UTC
Unchanged through 04 Nov 2026, 08:07 UTC
Summary
Licence
UnchangedNo change
Other
Other
PinDiff reports the declared licence and licence files. It does not interpret licence terms.
Weights
UnchangedNo change
Remote code / configuration
UnchangedNo change
Remote code
No
No
Access / gating
UnchangedNo change
Public
Public
Model card
ChangedModel card modified (3 sections)
Description Changed Material section +4 −2
Diff
**GlotLID** is a Fasttext language identification (LID) model that supports more than **2000 labels**.
Removed: - **Latest:** GlotLID is now updated to **V3**. V3 supports **2102 labels** (three-letter ISO codes with script). For more details on the supported languages and performance, as well as significant changes from previous versions, please refer to [https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md](https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md).
Added: + **Latest:** GlotLID **v4 alpha** (`model_v4_alpha.bin`) is out as a pre-release of the next version: **2056 labels**, a smaller model (783 MB instead of 1.69 GB), trained with [fastText-turbo](https://github.com/CommonGlot/fastText-turbo). It is not final yet; its labels and scores may still change, so `model.bin` stays v3 for now. See [versions](https://github.com/cisnlp/GlotLID#versions).
Added: + **Stable:** GlotLID **V3** supports **2102 labels** (three-letter ISO codes with script). For more details on the supported languages and performance, as well as significant changes from previous versions, please refer to [https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md](https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md).
Removed: - - **Demo:** [huggingface](https://huggingface.co/spaces/cis-lmu/glotlid-space)
Added: +
Added: + - **Demo:** [huggingface](https://huggingface.co/spaces/cis-lmu/glotlid-space) (language identification, and code-switching with [MaskLID](https://github.com/cisnlp/MaskLID))
- **Repository:** [github](https://github.com/cisnlp/GlotLID)
- **Paper:** [paper](https://arxiv.org/abs/2310.16248) (EMNLP 2023)
- **Point of Contact:** amir@cis.lmu.de
Before
**GlotLID** is a Fasttext language identification (LID) model that supports more than **2000 labels**. **Latest:** GlotLID is now updated to **V3**. V3 supports **2102 labels** (three-letter ISO codes with script). For more details on the supported languages and performance, as well as significant changes from previous versions, please refer to [https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md](https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md). - **Demo:** [huggingface](https://huggingface.co/spaces/cis-lmu/glotlid-space) - **Repository:** [github](https://github.com/cisnlp/GlotLID) - **Paper:** [paper](https://arxiv.org/abs/2310.16248) (EMNLP 2023) - **Point of Contact:** amir@cis.lmu.de
After
**GlotLID** is a Fasttext language identification (LID) model that supports more than **2000 labels**. **Latest:** GlotLID **v4 alpha** (`model_v4_alpha.bin`) is out as a pre-release of the next version: **2056 labels**, a smaller model (783 MB instead of 1.69 GB), trained with [fastText-turbo](https://github.com/CommonGlot/fastText-turbo). It is not final yet; its labels and scores may still change, so `model.bin` stays v3 for now. See [versions](https://github.com/cisnlp/GlotLID#versions). **Stable:** GlotLID **V3** supports **2102 labels** (three-letter ISO codes with script). For more details on the supported languages and performance, as well as significant changes from previous versions, please refer to [https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md](https://github.com/cisnlp/GlotLID/blob/main/languages-v3.md). - **Demo:** [huggingface](https://huggingface.co/spaces/cis-lmu/glotlid-space) (language identification, and code-switching with [MaskLID](https://github.com/cisnlp/MaskLID)) - **Repository:** [github](https://github.com/cisnlp/GlotLID) - **Paper:** [paper](https://arxiv.org/abs/2310.16248) (EMNLP 2023) - **Point of Contact:** amir@cis.lmu.de
How to use Changed +8 −1
Diff
Here is how to use this model to detect the language of a given text:
```python
Added: + # pip install fasttext-turbo huggingface_hub
>>> import fasttext
>>> from huggingface_hub import hf_hub_download
⋯ 3 unchanged lines
>>> model.predict("Hello, world!")
```
Removed: - If you are not a fan of huggingface_hub, then download the model directyly:
Added: + We recommend [fastText-turbo](https://github.com/CommonGlot/fastText-turbo) (`pip install fasttext-turbo`): it is a drop-in replacement for fastText (same `import fasttext`, same model files and API, prebuilt wheels) that predicts with GlotLID about 3 times faster than the original fastText in our tests (2.7x with v4 alpha, 3.4-4.3x with v3), with the same predictions. The original `fasttext` package works too.
Added: +
Added: + To use the v4 pre-release, download `model_v4_alpha.bin` instead of `model.bin`.
Added: +
Added: + To limit the prediction to a smaller set of languages without training another model, use [CustomLID](https://github.com/cisnlp/GlotLID/blob/main/assets/inference/customlid.py) (see the [GitHub README](https://github.com/cisnlp/GlotLID#limit-the-model-to-a-smaller-set-of-languages-python)).
Added: +
Added: + If you are not a fan of huggingface_hub, then download the model directly:
```python
>>> ! wget https://huggingface.co/cis-lmu/glotlid/resolve/main/model.bin
Before
Here is how to use this model to detect the language of a given text:
```python
>>> import fasttext
>>> from huggingface_hub import hf_hub_download
# model.bin is the latest version always
>>> model_path = hf_hub_download(repo_id="cis-lmu/glotlid", filename="model.bin")
>>> model = fasttext.load_model(model_path)
>>> model.predict("Hello, world!")
```
If you are not a fan of huggingface_hub, then download the model directyly:
```python
>>> ! wget https://huggingface.co/cis-lmu/glotlid/resolve/main/model.bin
```
```python
>>> import fasttext
>>> model = fasttext.load_model("/path/to/model.bin")
>>> model.predict("Hello, world!")
```
After
Here is how to use this model to detect the language of a given text:
```python
# pip install fasttext-turbo huggingface_hub
>>> import fasttext
>>> from huggingface_hub import hf_hub_download
# model.bin is the latest version always
>>> model_path = hf_hub_download(repo_id="cis-lmu/glotlid", filename="model.bin")
>>> model = fasttext.load_model(model_path)
>>> model.predict("Hello, world!")
```
We recommend [fastText-turbo](https://github.com/CommonGlot/fastText-turbo) (`pip install fasttext-turbo`): it is a drop-in replacement for fastText (same `import fasttext`, same model files and API, prebuilt wheels) that predicts with GlotLID about 3 times faster than the original fastText in our tests (2.7x with v4 alpha, 3.4-4.3x with v3), with the same predictions. The original `fasttext` package works too.
To use the v4 pre-release, download `model_v4_alpha.bin` instead of `model.bin`.
To limit the prediction to a smaller set of languages without training another model, use [CustomLID](https://github.com/cisnlp/GlotLID/blob/main/assets/inference/customlid.py) (see the [GitHub README](https://github.com/cisnlp/GlotLID#limit-the-model-to-a-smaller-set-of-languages-python)).
If you are not a fan of huggingface_hub, then download the model directly:
```python
>>> ! wget https://huggingface.co/cis-lmu/glotlid/resolve/main/model.bin
```
```python
>>> import fasttext
>>> model = fasttext.load_model("/path/to/model.bin")
>>> model.predict("Hello, world!")
```
Version Changed +2 −1
Diff
⋯ 4 unchanged lines
- For v1: `model_v1.bin` (introduced in the GlotLID [paper](https://arxiv.org/abs/2310.16248) and used in all experiments).
- For v2: `model_v2.bin` (an edited version of v1, featuring more languages, and cleaned from noisy corpora based on the analysis of v1).
- For v3: `model_v3.bin` (an edited version of v2, featuring more languages, excluding macro languages, further cleaned from noisy corpora and incorrect metadata labels based on the analysis of v2, supporting "zxx" and "und" series labels)
Added: + - For v4 alpha: `model_v4_alpha.bin` (a pre-release of v4; not final, its labels and scores may still change). It supports 2056 labels (1899 three-letter ISO codes, with the "zxx" and "und" series). Trained with [fastText-turbo](https://github.com/CommonGlot/fastText-turbo); it loads in fastText and fastText-turbo like the previous versions. It is smaller (96-dimensional, 783 MB) and uses character n-grams of 2 to 5 with word n-grams of 1, so nothing is shared between neighbouring words: the scores of a text add up from the scores of its words, which makes the per-word scores that [MaskLID](https://github.com/cisnlp/MaskLID) uses for code-switching exact.
Removed: - `model.bin` always refers to the latest version (v3).
Added: + `model.bin` always refers to the latest stable version (v3).
Before
We always maintain the previous version of GlotLID in our repository. To access a specific version, simply append the version number to the `filename`. - For v1: `model_v1.bin` (introduced in the GlotLID [paper](https://arxiv.org/abs/2310.16248) and used in all experiments). - For v2: `model_v2.bin` (an edited version of v1, featuring more languages, and cleaned from noisy corpora based on the analysis of v1). - For v3: `model_v3.bin` (an edited version of v2, featuring more languages, excluding macro languages, further cleaned from noisy corpora and incorrect metadata labels based on the analysis of v2, supporting "zxx" and "und" series labels) `model.bin` always refers to the latest version (v3).
After
We always maintain the previous version of GlotLID in our repository. To access a specific version, simply append the version number to the `filename`. - For v1: `model_v1.bin` (introduced in the GlotLID [paper](https://arxiv.org/abs/2310.16248) and used in all experiments). - For v2: `model_v2.bin` (an edited version of v1, featuring more languages, and cleaned from noisy corpora based on the analysis of v1). - For v3: `model_v3.bin` (an edited version of v2, featuring more languages, excluding macro languages, further cleaned from noisy corpora and incorrect metadata labels based on the analysis of v2, supporting "zxx" and "und" series labels) - For v4 alpha: `model_v4_alpha.bin` (a pre-release of v4; not final, its labels and scores may still change). It supports 2056 labels (1899 three-letter ISO codes, with the "zxx" and "und" series). Trained with [fastText-turbo](https://github.com/CommonGlot/fastText-turbo); it loads in fastText and fastText-turbo like the previous versions. It is smaller (96-dimensional, 783 MB) and uses character n-grams of 2 to 5 with word n-grams of 1, so nothing is shared between neighbouring words: the scores of a text add up from the scores of its words, which makes the per-word scores that [MaskLID](https://github.com/cisnlp/MaskLID) uses for code-switching exact. `model.bin` always refers to the latest stable version (v3).
4 other sections unchanged.
Repository status
ChangedRepository revision moved
- Earlier
-
Revision
49990ca(opens in a new tab) · 8 files · 7.24 GB - Later
-
Revision
baa20d1(opens in a new tab) · 8 files · 7.24 GB
A new revision does not by itself mean files changed; the categories above show what differs.
Files
UnchangedNo change
Evidence observed by PinDiff from the Hugging Face API and stored when recorded. PinDiff compares stored metadata, hashes and text files; it does not download weight files. Change events recorded between these snapshots