This is a set of fastText-based models to evaluate the quality and domain of text, in the 24 official languages of the European Union.
The main usage of these models is to preprocess data from the Common Crawl project, to obtain a training set for large language models.
These models can be used as part of the dactory pipeline, released by Kyutai to process Common Crawl.
There is one model per language, and each model is a multilabel classifier with the eight following labels:
random webpages (
rand
), Wikipedia articles (
wiki
), textbooks (
books
), scientific articles from pes2o (
science
),
Stack Exchange websites related to STEM (
stem
), Humanities (
hum
), pop culture (
pop
) and life advices (
life
).
The models were trained to distinguish lines sampled uniformly from these different sources.
To get training data for the languages other than English, we translated the English training set with MADLAD, except for the
rand
and
wiki
labels, for which data is readily available in all languages.
These models can we used to evaluate the quality of text, by estimating how similar it is to text from high quality sources.
In particular, one can take the score corresponding to the
rand
label as an estimate of the text quality.
They can also be used to organize a collection of documents, by similarity to the different data sources used to train the model.
For example, a large language model trained mostly on documents labeled as
books
will perform well on multi-choice Q&A benchmarks such as MMLU, while a LLM trained mostly on documents labeled as
wiki
will perform well on general knowledge Q&A benchmark such as TriviaQA.
import fasttext
from huggingface_hub import hf_hub_download
local_path = hf_hub_download(repo_id="kyutai/dactory-models", filename="filter_en.bin")
model = fasttext.load_model(local_path)
print(model.predict("A computer scientist is a scientist who specializes in the academic study of computer science."))
Runs of kyutai dactory-models on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About dactory-models huggingface.co Model
dactory-models huggingface.co is an AI model on huggingface.co that provides dactory-models's model effect (), which can be used instantly with this kyutai dactory-models model. huggingface.co supports a free trial of the dactory-models model, and also provides paid use of the dactory-models. Support call dactory-models model through api, including Node.js, Python, http.
dactory-models huggingface.co is an online trial and call api platform, which integrates dactory-models's modeling effects, including api services, and provides a free online trial of dactory-models, you can try dactory-models online for free by clicking the link below.
kyutai dactory-models online free url in huggingface.co:
dactory-models is an open source model from GitHub that offers a free installation service, and any user can find dactory-models on GitHub to install. At the same time, huggingface.co provides the effect of dactory-models install, users can directly use dactory-models installed effect in huggingface.co for debugging and trial. It also supports api for free installation.