/ Модель

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

Контекст
40 960 токенов
Параметры
7,6 млрд
Лицензия
CC BY-SA 4.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-8B
Библиотека
transformers
Опубликована
18 ноя 2026

Qwen3-8B-GO-KGC-sft-joint-epoch1

Генерация текстаТекст → текст
746скачиваний за 30 дней0лайковвеса обновлены30 ноя 2026

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

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

Русское описание этой модели ещё готовится. Пока можно заглянуть в карточку модели от автора ниже.

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

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

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

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

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

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

Открыть на Hugging Face

GO-KGC (Qwen3-8B, joint)

GO-KGC (Grounded Ontology-based Knowledge Graph Construction) builds a knowledge graph from text that follows a given ontology. Every subject, relation and object is grounded in an anchor span of the text, gets the most specific class of the ontology, and every entity is linked to a knowledge base (Wikipedia / Wikidata / DBpedia).

This joint model does both steps of the GO-KGC pipeline with one set of weights:

  1. Extraction: text + ontology → grounded, typed triples.
  2. Entity linking: a mention in context + retrieved candidates → the matching entity, or none. It is Qwen/Qwen3-8B fine-tuned with LoRA on the GO-KGC dataset; the adapter is merged into the weights (bf16).
Code, pipeline, appshttps://github.com/FinaPolat/GO-KGC
Datasetdoi.org/10.5281/zenodo.24691470
Base modelQwen/Qwen3-8B
LanguageEnglish
LicenceCC BY-NC-SA 4.0 (see below)

Quantized GGUF versions for Ollama and llama.cpp (Q8_0, Q6_K, Q4_K_M): FinaPolat/Qwen3-8B-GO-KGC-joint-gguf.

How to use

The model expects GO-KGC's own prompts: it was fine-tuned on them, with Qwen3's chat template and thinking off. Use it through the GO-KGC code rather than with your own prompts.

Apps (easiest). The GO-KGC repository has a command-line app, a web UI and a demo that build a graph from your documents and ontology. See docs/apps.md.

Pipeline with vLLM. Serve the model and point the pipeline at it:

vllm serve FinaPolat/Qwen3-8B-GO-KGC-sft-joint-epoch1 --max-model-len 10240

then run the pipeline with a config that names this server (see docs/pipeline.md).

Decoding. Greedy (temperature 0), no repetition penalty, a 10,240-token context. The pipeline splits long documents so prompt and answer fit.

Prompt format

Each call is a chat with a system and a user message; the model answers as the assistant. Use Qwen3's chat template with thinking off (enable_thinking=False) and greedy decoding. The prompts below are the ones the model was trained on (go_kgc/prompts.py); the GO-KGC code builds them for you, including the ontology block and the candidate list.

System prompt (both tasks)

You are a knowledge graph construction assistant, expert in ontology-based information extraction, entity and relation recognition, coreference resolution, relation canonicalization, hierarchical type prediction, and entity linking. Use your expertise and follow the user instructions to complete the task and satisfy the output requirements.

Extraction

The user prompt is the instructions below, followed by the text (as a JSON string), the ontology and Output:.

ANCHORS

Identify textual anchors: "entity" (a mention of an entity), "relation" (a phrase explicitly expressing a relation), "literal" (a date, number, or other literal value). anchor_text must exactly reproduce the source surface text — never a canonical name, normalization, or synonym. Anchors may overlap and repeat. anchor_type can be "entity", "relation", or "literal". Before extracting triples, first sweep the entire text independently and list every entity, relation, and literal mention you can find — including ones that may end up in a final triple — then extract triples from that list.

COREFERENCE

Resolve pronouns, aliases, and abbreviations to their antecedent when constructing a triplet, only when the antecedent is clearly supported by the text. Do not create a separate entity for a different referring expression to the same thing.

RELATIONS

A relation anchor is the exact surface expression (verbal, nominal, adjectival, or prepositional) that explicitly encodes an ontology relation; it may be multi-word. Map it to a canonical relation from the ontology schema — the canonical relation need not appear verbatim in the text, and must not replace the surface text in relation_grounding. Canonical direction is fixed by the ontology: reverse subject and object if the grammatical construction expresses the relation in the opposite direction.

COMPLETENESS

Produce a separate triplet for each explicitly stated relation, including coordinated or shared arguments, when supported by the schema.

GROUNDING

Every subject and object must be grounded to an anchor. anchor_text is the exact surface expression; subject/object is the canonical value used in the graph, and may differ from the grounding (e.g. capitalization, literal normalization). Grounded subject and object must be valid ontology types, and the relation must be a canonical relation from the ontology. Anchor type and subject/object type are independent, do NOT conflate them.

TYPES

Map every subject and object to a valid type from the ontology schema, using the hierarchy to select the most specific type the text supports. Do not assign a subtype merely because it is plausible. subject_type and object_type must always be a specific type from the ontology hierarchy — never the literal words "entity", "relation", or "literal", which apply only to anchor_type.

VALIDITY

Every triplet needs a grounded subject, relation, and object; a canonical relation from the ontology; and valid ontology types for subject and object. Omit the triplet if any requirement is not met. Extract only what the text explicitly or unambiguously supports.

OUTPUT

Return ONLY valid JSON, exactly this structure:

{ "anchors": [ {"anchor_text": str, "anchor_type": str} ], "triplets": [ { "subject_grounding": {"anchor_text": str, "anchor_type": str}, "subject": str, "subject_type": str, "relation_grounding": {"anchor_text": str, "anchor_type": str}, "relation": str, "object_grounding": {"anchor_text": str, "anchor_type": str}, "object": str, "object_type": str } ] }

If no valid triplets exist, return: {"anchors": [], "triplets": []}

 
</details>
Example, the end of the user prompt (one sentence; the ontology block is the category's
classes, hierarchy and relations with their domain and range):
 
```text
Input text:
"1099 Figneria has a mass of 2.7 kilograms."
 
Ontology schema:
### Types (Parent: subtypes; a subtype satisfies its ancestors' domain/range)
Organisation: EducationalInstitution
EducationalInstitution: University
Person: Scientist
Scientist: Astronomer
Place: PopulatedPlace
PopulatedPlace: Country, Settlement
Settlement: City, Town
UnitOfWork: Project
Project: ResearchProject
Other types: ArchitecturalStructure, Asteroid, Disease, Work
Literals: xsd:date, xsd:decimal, xsd:string
 
### Relations (domain -> range: relations)
- Asteroid -> Person|Place|Project|Work: discoverer
- Asteroid -> xsd:date: discovered, epoch
- Asteroid -> xsd:decimal: absoluteMagnitude, apoapsis, averageSpeed, density, escapeVelocity, mass, maximumTemperature, meanTemperature, minimumTemperature, orbitalPeriod, periapsis, rotationPeriod, surfaceArea, temperature
- Asteroid -> xsd:string: formerName
- Person -> ArchitecturalStructure|Place: deathPlace
- Person -> Disease: deathCause
- Person -> Organisation: almaMater
- Person -> Person: doctoralStudent
- Person -> Place: birthPlace, nationality, stateOfOrigin
- Person -> xsd:date: birthDate, deathDate
 
Output:

Answer:

{
  "anchors": [
    {"anchor_text": "1099 Figneria", "anchor_type": "entity"},
    {"anchor_text": "has a mass of", "anchor_type": "relation"},
    {"anchor_text": "2.7", "anchor_type": "literal"}
  ],
  "triplets": [
    {
      "subject_grounding": {"anchor_text": "1099 Figneria", "anchor_type": "entity"},
      "subject": "1099 Figneria",
      "subject_type": "Asteroid",
      "relation_grounding": {"anchor_text": "has a mass of", "anchor_type": "relation"},
      "relation": "mass",
      "object_grounding": {"anchor_text": "2.7", "anchor_type": "literal"},
      "object": "2.7",
      "object_type": "xsd:decimal"
    }
  ]
}

The pipeline passes whole documents in chunks; the answer has the same structure.

Entity linking

One prompt per mention: the text with the mention marked as [[ ... ]], the mention, the entity it refers to (they differ for pronouns such as "it"), its type, and up to 10 candidate Wikipedia pages (ID: <page id> | <title> | <description>).

INPUT

  1. A text in which the mention is marked as [[ ... ]].
  2. The mention as written in the text, and the name of the entity it refers to. These differ when the mention is a pronoun or another indirect reference (e.g. "it").
  3. The entity type of the mention. If the entity plays several roles in the text, all its types are given, separated by " / " (e.g. "SoccerManager / SoccerPlayer"); they all describe the same entity.
  4. A list of candidate Wikipedia entities. Each candidate has a Wikipedia page ID, a title and a short description.

DECISION

  • Use the surrounding text, the entity name and the type to decide.
  • Titles with a qualifier in parentheses, e.g. "Labour Party (Argentina)", name one specific entity: check that the qualifier fits the text.
  • Prefer the candidate whose description matches the role, place, time or domain implied by the text.
  • If one of the candidates is the entity the mention refers to, choose it.
  • If none of the candidates is that entity, answer "None of the candidates". Do not choose a candidate that is only related to the entity, or that merely shares its name.

OUTPUT

Answer with exactly one of:

  • the Wikipedia page ID of the chosen candidate, copied exactly from the list (digits only), or
  • exactly: None of the candidates No explanation, no other text.
 
</details>
Example, the end of the user prompt (5 of the 10 candidates shown):
 
```text
Text:
The currency in [[Mexico]] is the peso.
 
Mention as written: Mexico
Refers to: Mexico
Entity type: Country
 
Candidates:
ID: 18987 | Mexico City | Capital and most populous city of Mexico. Mexico City (often shortened as CDMX) is the capital and largest city of Mexico, as well as the most populous city in North America.
ID: 3966054 | Mexico | Country in North America. Mexico, officially the United Mexican States, is a country in North America.
ID: 193687 | Maximilian I of Mexico | Emperor of Mexico from 1864 to 1867. Maximilian I (Spanish: Fernando Maximiliano José María de Habsburgo-Lorena; German: Ferdinand Maximilian Josef Maria von Habsburg-Lothringen; 6 July 1832 – 19 June 1867) was an Austrian archduke who became emperor of the Second Mexican Empire from 10 April 1864 until his execution by the Restored…
ID: 21076367 | Gulf of Mexico | Marginal sea of the Atlantic Ocean. The Gulf of Mexico (Spanish: Golfo de México) is an oceanic basin and a marginal sea of the Atlantic Ocean, mostly surrounded by the North American continent.
ID: 21649 | New Mexico | U.S. state. New Mexico is a landlocked state in the Southwestern region of the United States. It is one of the Mountain States of the southern Rocky Mountains, sharing the Four Corners region with Utah, Colorado, and Arizona.
...
 
Answer:

Answer: 3966054. The answer is a page ID from the list or exactly None of the candidates.

Training

Methodsupervised fine-tuning (TRL SFTTrainer), LoRA merged after training
LoRAr 16, alpha 32, dropout 0.05, on q, k, v, o, gate, up and down projections
Optimisationlearning rate 1e-4, cosine schedule, warmup 3%, 1 epoch, effective batch 16
Precisionbf16, gradient checkpointing
Losson the assistant answers only; no packing; max length 8,000 tokens
Data7,080 extraction examples (the GO-KGC train split) and 3,000 entity linking examples sampled from the train linking prompts; validation on the extraction dev split and 500 sampled linking dev examples

The training scripts are in training/ of the repository (docs/training.md).

Evaluation

The model is evaluated with evaluation/evaluate.py on the GO-KGC test split: extraction alone (triples, anchors, types), entity linking alone, and the full pipeline on multi-sentence documents. Results will be reported with the accompanying publication.

Limitations

  • English only, and trained on the 19 WebNLG domains (airports, buildings, food, people, sports teams, …); expect lower quality on other domains and text types.
  • It follows the ontology it is given, but quality depends on how clear the class and relation names are.
  • Entity linking picks among the retrieved candidates; if the right entity is not among them, the best answer is "none".
  • Outputs are model predictions and can be wrong or incomplete; check them before use.

Licence

The training data, GO-KGC, is CC BY-NC-SA 4.0 because it adapts OSKGC and WebNLG, which are non-commercial. To respect those terms this model is released under CC BY-NC-SA 4.0. The base model Qwen3 is Apache-2.0.

Citation

@software{polat2026gokgc,
  title     = {{GO-KGC}: grounded, ontology-based knowledge graph construction},
  author    = {Polat, Fina and Tiddi, Ilaria and Groth, Paul},
  url       = {https://github.com/FinaPolat/GO-KGC},
  year      = {2026}
}
 
@dataset{polat2026gokgc_data,
  title     = {{GO-KGC} dataset},
  author    = {Polat, Fina and Tiddi, Ilaria and Groth, Paul},
  version   = {1.0},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24691470},
  year      = {2026}
}

Acknowledgements

This work is funded by the European Union's Horizon Europe research and innovation programme within the ENEXA project (grant agreement no. 101070305).

Fina Polat (University of Amsterdam), Ilaria Tiddi (Vrije Universiteit Amsterdam), Paul Groth (University of Amsterdam). Contact: f.yilmazpolat@uva.nl

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
e2a1ef6

0 моделей