tartuNLP/Apertus-EstLLM-8B-Instruct-1125
is mainly a reasearch artifact not intended for production use-cases, it is produced by applying the training procedure
identical to
tartuNLP/Llama-3.1-EstLLM-8B-Instruct-0825
. However, unlike the Llama-based model, based on the metrics, we don't observe any improvements, although the score
on the baromeeter.ai platform is slightly higher than the original
swiss-ai/Apertus-8B-Instruct-2509
.
Use with transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "tartuNLP/Apertus-EstLLM-8B-Instruct-1125"
model = AutoModelForCausalLM.from_pretrained(
model_name,
dtype="auto",
device_map="auto"
)
# to use on apple silicon, load the following way# model = AutoModelForCausalLM.from_pretrained(# model_name,# dtype=torch.float16,# device_map="mps",# )
tokenizer = AutoTokenizer.from_pretrained(model_name)
messages = [
{"role": "user", "content": "Kas sa räägid eesti keelt?"}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer(text, return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=128,
do_sample=True,
temperature=0.4,
# specify eos token to stop at the end of the assistant response
eos_token_id=tokenizer.eos_token_id,
)
# generated_ids include the input tokens as well, so we only decode new tokens
response = tokenizer.decode(
generated_ids[0][model_inputs["input_ids"].shape[1]:],
skip_special_tokens=True,
)
print(response)
Continued Pre-Training was performed for a single epoch on:
Estonian National Corpus (8.6B tokens)
Python-Edu (3.3B tokens)
FineMath4-Plus (9.5B tokens)
General Instruction-Augmented Corpora (7.4B tokens)
Cosmopedia v2 (6.9B tokens)
Supervised Fine-Tuning
Approximately 764k examples were used for Supervised Fine-Tuning. The examples mainly come from
the Tulu 3 SFT mixture
and
EuroBlocks
.
Additional data provided by the Institute of Estonian Language (EKI) was also used. In total about 80% of examples are in English. More details TBA.
Direct Preference Optimization
English-only
HelpSteer3
was used as is in the Direct Preference Optimization step, as
previous research on Poro 2 models
showed that there's no observable benefit from translating preference pairs.
Evaluation
Logits-based
Scores for logits-based evaluation benchmarks are available on the
EuroEval
leaderboard.
Generative
Every benchmark in this category is treated as a
generative
problem, and thus the evaluation is performed on the model responses obtained with 0 temperature (not logits).
The top scores are higlighted with
bold
. Second best scores are highlighted with
italic bold
. Rows are sorted in descending order based on the number of parameters of models (not scores).
The test set is used for evaluation of each dataset unless noted otherwise.
Note that
all models are evaluated with the same prompt template
for comparability, meaning that the scores do not necessarily represent each model's best possible
performance. This is especially the case for
deepseek-ai/DeepSeek-V3-0324
on some of the benchmarks.
Only models of comparable size are evaluated on benchmarks in English.
Instruction-following
Estonian
Instruction level strict accuracy is reported for IFEval-et.
All datasets except Winogrande-et are evaluated in 0-shot mode. Winogrande-et is evaluated in 3-shot mode. Exact match accuracy is reported for every dataset.
Apertus-EstLLM-8B-Instruct-1125 huggingface.co is an AI model on huggingface.co that provides Apertus-EstLLM-8B-Instruct-1125's model effect (), which can be used instantly with this tartuNLP Apertus-EstLLM-8B-Instruct-1125 model. huggingface.co supports a free trial of the Apertus-EstLLM-8B-Instruct-1125 model, and also provides paid use of the Apertus-EstLLM-8B-Instruct-1125. Support call Apertus-EstLLM-8B-Instruct-1125 model through api, including Node.js, Python, http.
Apertus-EstLLM-8B-Instruct-1125 huggingface.co is an online trial and call api platform, which integrates Apertus-EstLLM-8B-Instruct-1125's modeling effects, including api services, and provides a free online trial of Apertus-EstLLM-8B-Instruct-1125, you can try Apertus-EstLLM-8B-Instruct-1125 online for free by clicking the link below.
tartuNLP Apertus-EstLLM-8B-Instruct-1125 online free url in huggingface.co:
Apertus-EstLLM-8B-Instruct-1125 is an open source model from GitHub that offers a free installation service, and any user can find Apertus-EstLLM-8B-Instruct-1125 on GitHub to install. At the same time, huggingface.co provides the effect of Apertus-EstLLM-8B-Instruct-1125 install, users can directly use Apertus-EstLLM-8B-Instruct-1125 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Apertus-EstLLM-8B-Instruct-1125 install url in huggingface.co: