/ Модель

Характеристики

Размер весов
8,6 ГБ
Лицензия
MIT
Архитектура
gemma3 · dense
Базовая модель
gemma-3-4b-pt
Библиотека
transformers
Опубликована
11 сен 2026

edu-qurating-core-ed-gemma-3-4b

Классификация текстаТекст → label3 профессии
23скачиваний за 30 дней0лайковвеса обновлены11 сен 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Модель на базе Gemma 3 4B оценивает образовательные тексты по нескольким критериям для ранжирования, фильтрации и отбора учебных материалов.

Edu-QuRating Core Educational Scorer — модель классификации последовательностей на базе Gemma 3 4B, дообученная для оценки образовательных текстов. Она принимает текстовый фрагмент и выдаёт отдельный скалярный логит для каждого критерия рубрики; это оценочные сигналы для сравнения текстов, а не генерация ответов.

Модель предназначена для ранжирования и фильтрации учебных материалов, отбора документов для корпусов и экспериментов с reward-моделированием. В конвейере Edu-QuRating её применяют для оценивания документов FineWeb-Edu-Fortified; длинные документы обрабатываются частями по 512 токенов с последующим усреднением оценок с учётом числа токенов. Критерии охватывают уровень предполагаемых знаний и соответствие школьным возрастным группам, а также другие измерения образовательного качества.

Оценки следует интерпретировать отдельно по каждому критерию: они полезны для ранжирования и сравнения, но не являются калиброванными абсолютными рейтингами или эталонной разметкой. Качество может меняться в зависимости от предметной области, возраста учащихся, языка и формата текста. Модель распространяется по лицензии MIT.

Сценарии применения

  • ранжирование образовательных документов по критериям качества
  • фильтрация текстов для создания учебного корпуса
  • оценка соответствия текста уровню начальной школы
  • оценка соответствия текста уровню средней и старшей школы
  • сравнение сгенерированных учебных ответов как reward-сигнал

Ограничения

Логиты не являются эталонными метками или калиброванными абсолютными оценками; их следует использовать для сравнения и ранжирования по отдельным критериям. Качество может различаться в зависимости от предметной области, возраста учащихся, языка и формата текста.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Edu-QuRating Core Educational Scorer (Gemma 3 4B)

https://arxiv.org/abs/2609.09425

This model is an Edu-QuRating sequence-classification scorer for educational text. It takes a text passage as input and outputs one scalar logit for each criterion in the core educational-quality rubric. It is intended for ranking, filtering, corpus curation, and reward-modeling experiments, not for text generation.

Scores

The model outputs six criterion-specific scores. Each score follows the corresponding pairwise judgement prompt: a higher score means the text is closer to the side that the judge would prefer for that criterion. Scores should be interpreted criterion by criterion, not as one general educational-quality label.

ScoreMeaning
education_levelRelative level of assumed prior knowledge. Higher scores indicate text that assumes more background knowledge, uses more abstract ideas, introduces specialized terminology with less introductory scaffolding, or relies more on symbolic representations such as equations or diagrams. This is a level signal, not a quality score.
education_level_primaryAppropriateness for a primary or elementary-school educational context, roughly ages 5-11. Higher scores indicate text that is more suitable for younger or earlier-stage learners.
education_level_secondaryAppropriateness for a secondary or high-school educational context, roughly ages 12-18. Higher scores indicate text that is more suitable for older or more advanced school-level learners.
factual_accuracyFactual reliability of the excerpt. Higher scores indicate more correct, precise, and internally consistent statements, with fewer errors, contradictions, conflicts with well-established knowledge, or unsupported unverifiable claims.
lesson_engagementLikelihood that the text captures and sustains learner interest. Higher scores indicate stronger use of relatable examples, attention hooks, interaction prompts, learner-facing tone, or vivid imagery that supports understanding.
pedagogical_structureClarity of pedagogical structure for the intended learners. Higher scores indicate clearer sequencing and signposting, accessible vocabulary, concrete-to-abstract progression, aligned examples or worked steps, consistent terminology or notation, and less irrelevant detail.

Training Procedure

This model was trained as a pairwise-preference distillation model, not as an absolute-rating regressor. The training data starts from a 500k-row FineWeb-Edu-Fortified sample and uses the core educational prompt set to construct 100k pairwise comparisons. The pairwise judgement excerpts are capped at 512 tokens.

Pairwise labels were generated with GPT-4.1-mini using token log-probabilities. For each criterion-specific prompt, the judge is asked to choose between two excerpts. The log-probabilities of the two answer labels are converted into soft preference probabilities. To reduce order effects, each pair is judged in both text orders, and the two directional probabilities are averaged into one soft preference label.

For a pair of texts (x_i, x_j), the scorer outputs a scalar score s_c(x) for each criterion c, and the model preference probability is computed as:

P_model(x_j preferred over x_i for criterion c) = sigmoid(s_c(x_j) - s_c(x_i))

The loss is binary cross-entropy between this model preference probability and the GPT-4.1-mini soft preference label. Missing labels and self-comparisons are masked out. Low-confidence labels are filtered with confidence_threshold = 0.5, excluding labels close to a tie from the loss.

Data and labelsValueData and labelsValue
Example pairs100,000Source sample size500,000 FineWeb-Edu-Fortified rows
Judge modelgpt-4.1-miniPairwise judgement modetoken log-probabilities
Judgement excerpt length512 tokensModel max input length2,048 tokens
OptimizationValueOptimizationValue
Total batch size512Per-device batch size8
Learning rate5e-5Epochs2
Warmup ratio0.1Weight decay0.1
Max gradient norm1.0Label temperature1.0
Confidence threshold0.5Train/validation split90% / 10%

Intended Use

This model is intended for educational-quality scoring and corpus curation. In the Edu-QuRating pipeline, the core educational scorer is applied to FineWeb-Edu-Fortified documents to produce document-level score columns. These scores can then be used for multi-dimensional filtering, for example selecting documents that score highly on factual accuracy, lesson engagement, and pedagogical structure.

The model can also be used as a reward component for generated educational responses, although the core corpus-filtering use case is document scoring.

For long documents, the project scoring pipeline tokenizes the full document, splits it into 512-token chunks, scores each chunk, and averages chunk scores back to document-level scores using token-count weights.

How to Use

Batch inference pipeline with edu-qurating package

Install package from github: https://github.com/AI-for-Education/edu-qurating.
Requires flash-attn>=2.8.3 to run the inference pipline below.

import json

from datasets import load_dataset, Dataset
from qurating.inference import ModelAnnotator, TokenizeAndChunk


model_name = "AI-for-Education/edu-qurating-core-ed-gemma-3-4b"

device_batch_size = 500
text_field = "text"

annotator = ModelAnnotator(
    model_name, labels=None, device_batch_size=device_batch_size
)
tokenizer = TokenizeAndChunk(model_name, text_field=text_field)

### Test with the the cosmopedia_v2 dataset.
### Load as streaming dataset because we only want to take a few rows
ds = load_dataset(
    "HuggingFaceTB/smollm-corpus", "cosmopedia-v2", split="train", streaming=True
)

# get the first 10 rows
ds_first10 = Dataset.from_list(ds.take(10).to_list())

#################
## The scoring process is split into 2 stages:
## 1. tokenize and chunk
## 2. annotate

# stage 1
tokenized = ds_first10.map(tokenizer, batched=True)

# stage 2
keep_columns = [text_field, "audience"]
remove_columns = [col for col in tokenized.column_names if col not in keep_columns]
scored = tokenized.map(
    annotator, batched=True, with_indices=True, remove_columns=remove_columns
)

# take a look at the items with scores
print(json.dumps(scored.to_list(), indent=2))

Call the model directly with pytorch (no auto chunk handling)

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

model_name = "AI-for-Education/edu-qurating-core-ed-gemma-3-4b"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(
    model_name,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

text = "A plant uses sunlight, water, and carbon dioxide to make sugar through photosynthesis."

inputs = tokenizer(
    text,
    return_tensors="pt",
    truncation=True,
    max_length=2048,
)
inputs = {key: value.to(next(model.parameters()).device) for key, value in inputs.items()}

with torch.no_grad():
    outputs = model(**inputs)
    scores = outputs.logits[0].float().cpu()

labels = [model.config.id2label[i] for i in range(model.config.num_labels)]

for label, score in zip(labels, scores):
    print(f"{label}: {score:.4f}")

The returned values are criterion-specific scalar logits. They are most useful for ranking, filtering, or comparing texts under the same criterion, rather than as calibrated absolute ratings.

Limitations

The scores are model-derived quality signals, not ground-truth educational labels. They should be interpreted as ranking, filtering, or reward signals rather than as definitive assessments of educational value. Performance may vary across domains, age levels, languages, and formats that differ from the training and validation data.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
Gemma3ForSequenceClassification
Ревизия весов
162301c

0 моделей