FLOR-1.3B
is a 1.3B-parameter transformer-based causal language model for Catalan, Spanish, and English.
It is the result of a language adaptation technique performed on
BLOOM-1.7B
,
which involves modifying the model's vocabulary and embedding layer, and continuously pre-training the model with 26B tokens in our target languages.
For more details, take a look at
this blogpost
about the project.
Intended uses and limitations
The
FLOR-1.3B
model is ready-to-use only for causal language modeling.
It can perform text-generation tasks and be fine-tuned for specific scenarios.
At the time of submission, no measures have been taken to estimate the bias and toxicity embedded in the model.
However, we are well aware that our models may be biased since the corpora have been collected using crawling techniques
on multiple web sources. We intend to conduct research in these areas in the future, and if completed, this model card will be updated.
Training
Language adaptation and training
The language adaptation technique used to create FLOR-1.3B requires the vocabulary of the source model
to be adapted before continuing its pre-training with data in the target languages. Specifically, we proceeded as follows:
We trained our own BPE tokenizer for Catalan, Spanish, and English, and replaced the original BLOOM tokenizer and vocabulary with it. This procedure implied a downsizing of the original BLOOM's embedding layer and, therefore, a model compression from 1.7B parameters to 1.3B.
The embeddings corresponding to tokens that are present in both the original and the target vocabulary (matching tokens) were used for initialization.
The embeddings from tokens not present in BLOOM's original vocabulary were initialized as the average of all embeddings.
The model was initialized with the weights from BOOM-1.7B, and with our adapted tokenizer (step 1) and embeddings (steps 2-3).
The model was then trained on a corpus that contains a mixture of Catalan, Spanish, and English data.
Training data
The training corpus is the same that was used to train
Ǎguila-7B
.
It consists of 26B tokens of several corpora gathered from web crawlings and public domain data.
Dataset
Language
Words (per-epoch)
Epochs
Wikipedia
en
2169.97M
1.428144485
C4_es
es
53709.80M
0.1049686196
Biomedical
es
455.03M
0.7140722425
Legal
es
995.70M
0.7140722425
Wikipedia
es
693.60M
1.428144485
Gutenberg
es
53.18M
0.7140722425
C4_ca
ca
2826.00M
2.142216727
Biomedical
ca
11.80M
1.428144485
RacoCatalà Noticias
ca
17.16M
2.142216727
RacoCatalà Forums
ca
333.73M
2.142216727
CaWaC
ca
57.79M
2.142216727
Wikipedia
ca
228.01M
3.570361212
Vilaweb
ca
50.34M
2.142216727
Languages
The training data has the same amount of Catalan and Spanish texts, and a smaller amount of English data.
The table below shows the final language distribution:
The training was conducted in a Cerebras'
CS-2 system
using the
cs-1.9.1
release of their software.
Evaluation
FLOR-1.3B has been evaluated in a 5-shot setting, using EleutherAI's
LM Evaluation Harness
.
The evaluation benchmark includes tasks in Catalan, Spanish, and English, with particular emphasis on Catalan datasets.
The tasks were chosen to cover several evaluation areas in order to provide a comprehensive overview of the model's capabilities.
The baselines used to compare our results are multilingual and English open-source 1.3B models:
mGPT-1.3B, GPT-Neo-1.3B, Pythia-1.4B, OPT-1.3B, Falcon-rw-1.3B, and Cerebras-GPT-1.3B.
Our implementation of EleutherAI's
LM Evaluation Harness
can be found
here
.
The following is a list of evaluation areas and their respective datasets:
This work/research has been promoted and financed by the Government of Catalonia through the
Aina project
.
Disclaimer
Click to expand
The model published in this repository is intended for a generalist purpose and is available to third parties under a permissive Apache License, Version 2.0.
Be aware that the model may have biases and/or any other undesirable distortions.
When third parties deploy or provide systems and/or services to other parties using this model (or any system based on it)
or become users of the model, they should note that it is their responsibility to mitigate the risks arising from its use and,
in any event, to comply with applicable regulations, including regulations regarding the use of Artificial Intelligence.
In no event shall the owner and creator of the model (Barcelona Supercomputing Center)
be liable for any results arising from the use made by third parties.
Runs of projecte-aina FLOR-1.3B on huggingface.co
2
Total runs
0
24-hour runs
0
3-day runs
2
7-day runs
2
30-day runs
More Information About FLOR-1.3B huggingface.co Model
FLOR-1.3B huggingface.co is an AI model on huggingface.co that provides FLOR-1.3B's model effect (), which can be used instantly with this projecte-aina FLOR-1.3B model. huggingface.co supports a free trial of the FLOR-1.3B model, and also provides paid use of the FLOR-1.3B. Support call FLOR-1.3B model through api, including Node.js, Python, http.
FLOR-1.3B huggingface.co is an online trial and call api platform, which integrates FLOR-1.3B's modeling effects, including api services, and provides a free online trial of FLOR-1.3B, you can try FLOR-1.3B online for free by clicking the link below.
projecte-aina FLOR-1.3B online free url in huggingface.co:
FLOR-1.3B is an open source model from GitHub that offers a free installation service, and any user can find FLOR-1.3B on GitHub to install. At the same time, huggingface.co provides the effect of FLOR-1.3B install, users can directly use FLOR-1.3B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.