/ Модель

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

Контекст
262 144 токена
Параметры
581 млн
Лицензия
CC BY-NC 4.0
Архитектура
qwen3_5_text · dense
Базовая модель
Qwen3.5-0.8B
Библиотека
transformers
Опубликована
13 окт 2026

cheon-cypher-0.8b-v1

Генерация текстаТекст → текст3 профессии

Компактная дообученная модель преобразует вопросы о графах Neo4j и их схему в запросы Cypher.

88скачиваний за 30 дней1лайквеса обновлены26 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Cheon Cypher 0.8B v1 — компактная языковая модель, разработанная для преобразования вопросов на естественном языке в запросы Cypher к графам Neo4j. Получив описание схемы графа и вопрос, она генерирует один запрос, используя только имена, присутствующие в схеме. Модель построена на архитектуре Qwen3.5 и дообучена на базе Qwen/Qwen3.5-0.8B; веса представлены в формате float16, загрузка выполняется через AutoModelForCausalLM из библиотеки Transformers. В README приведены результаты на CypherBench, Mind the Query и ZOGRASCOPE, включая точность выполнения запросов 88,91 на CypherBench.

Модель рассчитана на локальный запуск на одной GPU или CPU. Для работы нужны Transformers 5.18.0 и PyTorch; CUDA-ядра из flash-linear-attention и fla-core могут ускорить запуск. Метаданные указывают контекст до 262 144 токенов и английский язык. Лицензия — CC BY-NC 4.0, допускающая использование с указанием авторства и ограничивающая коммерческое применение.

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

  • генерация Cypher-запросов по вопросу пользователя и схеме графа
  • поиск данных в графе Neo4j с помощью вопросов на естественном языке
  • построение запросов Cypher для аналитики графовых данных
  • локальная генерация запросов к графу на CPU или одной GPU

Ограничения

Модель ориентирована на запросы к графам и требует схему графа для генерации запроса; качество выполнения зависит от соответствия схемы и формулировки вопроса. Коммерческое использование ограничено лицензией CC BY-NC 4.0.

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

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

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

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

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

Открыть на Hugging Face

Cheon Cypher 0.8B v1

A Text2Cypher model with 0.8B parameters. It reads a property graph schema and a question, answers with one Cypher query that uses only the names in that schema, and loads with AutoModelForCausalLM.

Highlights

  • Ahead of GPT-5.5 and Opus 4.7 on CypherBench at 0.8B: 88.91 execution accuracy against their zero-shot 88.79 and 88.58, and above CYQUARK-4B (85.38), a 4B model trained for the task.
  • 73.25 on Mind the Query, above Llama-4-Maverick and Qwen2.5-72B zero-shot and a fine-tuned Llama-3.1-8B, with the highest Evaluation score in the table (93.35).
  • 64.03 on ZOGRASCOPE, above Qwen3.6-27B (47.26) and GPT-4o (30.29) zero-shot.
  • Small and local: 1.5 GB of float16 weights, on a single GPU or on CPU.

Benchmarks

Execution accuracy: a query is right when it returns the same result as the reference query.

Mind the Query

SystemComplex Agg.Complex Retr.EvaluationSimple Agg.Simple Retr.Total
DeepSeek-V3, zero-shot49.9369.0489.0279.9792.7676.75
DeepSeek-V3, few-shot45.7769.6787.9179.7293.3975.94
Llama-4-Maverick, few-shot37.0971.9492.1781.1486.7174.57
Cheon Cypher (0.8B)45.2147.3393.3578.5793.2473.25
Llama-4-Maverick, zero-shot24.0566.4691.7182.3986.4070.97
Llama-3.1-8B, fine-tuned33.6361.0987.2780.6385.4570.15
Llama-3.3-70B, few-shot31.5253.2285.3470.2089.1166.76
Qwen2.5-72B, zero-shot27.2255.9985.8171.2086.8466.32

Rows other than Cheon Cypher are from Tables 3 and 4 of the Mind the Query paper (EMNLP 2025 Industry).

CypherBench

SystemExecution accuracy (graph average)
Cheon Cypher (0.8B)88.91
GPT-5.5, zero-shot88.79
Opus 4.7, zero-shot88.58
CYQUARK-4B85.38
CYQUARK-0.8B84.09

Question average: 87.95. Rows other than Cheon Cypher are from the CYQUARK paper (Table 3).

ZOGRASCOPE

SystemExecution accuracy (average of iid, compositional, length)
CYQUARK-4B78.47
CYQUARK-0.8B74.96
Opus 4.7, zero-shot70.90
GPT-5.5, zero-shot65.68
Cheon Cypher (0.8B)64.03
Qwen3.6-27B, zero-shot47.26
Qwen3.5-9B, zero-shot30.68
GPT-4o, zero-shot30.29
Qwen3.5-4B, zero-shot27.73
Qwen3-4B, zero-shot6.11
Mistral-7B, zero-shot4.74
Llama-3.2-3B, zero-shot1.70

Question average: 62.73. The GPT-4o, Qwen3-4B, Mistral-7B and Llama-3.2-3B rows are the zero-shot results of the ZOGRASCOPE paper (Findings of EMNLP 2025, Table 4), which gives the model the gold entities of each question and reports the three partitions; their average is taken here. The other rows are from the CYQUARK paper (Table 4), whose harness gives a higher score than this one to the same untrained model (Qwen3.5-4B: 27.73 there, 15.28 here).

Usage

The cheon-cypher package builds the prompt and reads the query out of the answer:

pip install git+https://github.com/cheon-ai-official/cheon-cypher
from cheon_cypher import CheonCypher

cypher = CheonCypher()  # cheonai/cheon-cypher-0.8b-v1 on CUDA or CPU

schema = """Node properties:
Match {date: DATE, id: STRING, stage: STRING}
Person {dob: DATE, id: STRING, name: STRING}
Squad {id: STRING}
Team {id: STRING, name: STRING}
Tournament {id: STRING, name: STRING, shortName: STRING, year: INTEGER}
Relationship properties:
PLAYED_IN {minuteOn: STRING, penaltyScore: INTEGER, score: INTEGER, type: STRING}
SCORED_GOAL {minute: STRING}
The relationships:
(:Person)-[:COACH_FOR]->(:Squad)
(:Squad)-[:FOR]->(:Tournament)
(:Person)-[:IN_SQUAD]->(:Squad)
(:Match)-[:IN_TOURNAMENT]->(:Tournament)
(:Team)-[:NAMED]->(:Squad)
(:Team)-[:PARTICIPATED_IN]->(:Tournament)
(:Person)-[:PLAYED_IN]->(:Match)
(:Team)-[:PLAYED_IN]->(:Match)
(:Person)-[:REPRESENTS]->(:Team)
(:Person)-[:SCORED_GOAL]->(:Match)"""
question = ("Retrieve the names of all teams that participated in the 'Germany 2011' tournament, "
            "along with the names of the players who represented those teams.")

print(cypher.generate(schema, question, convention="mtq"))

The model answers this Mind the Query test question with

MATCH (t:Team)-[:PARTICIPATED_IN]->(t2:Tournament {name: 'Germany 2011'})
MATCH (t)<-[:REPRESENTS]-(p:Person)
RETURN t.name AS teamName, p.name AS personName

which returns the same rows as the benchmark's reference query. convention="mtq" asks for that benchmark's answer conventions ("cypherbench" and "zograscope" are the others); leave it out for your own graph.

With transformers alone, the prompt is a system instruction and the schema followed by the question:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "cheonai/cheon-cypher-0.8b-v1"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.float16).to("cuda").eval()

SYSTEM = (
    "You translate a question about a Neo4j property graph into one Cypher query.\n"
    "Use only the node labels, relationship types, relationship directions and property keys "
    "that appear in the schema, spelled exactly as written there.\n"
    "Answer with the Cypher query only."
)
chat = [
    {"role": "system", "content": SYSTEM},
    {"role": "user", "content": f"Schema:\n{schema}\n\nQuestion: {question}"},
]
ids = tokenizer.apply_chat_template(chat, add_generation_prompt=True, enable_thinking=False,
                                    return_tensors="pt", return_dict=False).to("cuda")
out = model.generate(ids, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(out[0, ids.shape[1]:], skip_special_tokens=True).strip())

A benchmark's conventions go in a Rules: block between the schema and the question (cheon_cypher.prompt.CONVENTIONS).

Schema

The schema is the text form of LangChain's Neo4jGraph.schema (node properties, relationship properties and the relationships with their directions), which can be pasted as it is. The package also reads LangChain's enhanced schema, the JSON of APOC's apoc.meta.schema() and a JSON of nodes and relationships, and turns them into that text.

Specifications

Parameters752.4M
Weightsfloat16 (model.safetensors, 1.50 GB)
Base modelQwen/Qwen3.5-0.8B (Apache-2.0)

Requirements

transformers 5.18.0 and torch. On a CUDA GPU, flash-linear-attention and fla-core add the kernels the model runs fastest with; without them it runs in plain PyTorch, as on a CPU.

License

CC-BY-NC-4.0, for research and evaluation only. Contact us for commercial use. The base model (Qwen/Qwen3.5-0.8B) is Apache-2.0, but this fine-tune (learned weights) is ours and ships under the license above.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3_5ForCausalLM
Ревизия весов
6b6137a

0 моделей