Downloads · 30 days
28
4% of all-time downloads
VoErik/cypher-gemma
cypher-gemma is a text generation model from VoErik. Use it when you need the model to write or continue text. It is set up for transformers.
This model is a fine-tuned version of google/gemma-3-270m-it. Its purpose is turning natural language queries into CypherQueryLanguage.
Downloads · 30 days
28
4% of all-time downloads
All-time downloads
715
Public
Parameters
268M
574 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors536 MB · 93%
From the Hugging Face model README
This model is a fine-tuned version of google/gemma-3-270m-it. Its purpose is turning natural language queries into CypherQueryLanguage.
It has been trained using TRL.
from transformers import pipeline
from schemas import MOVIE_SCHEMA # you need to define this yourself!
query = "Which actors played a role in the movie Titanic?"
pipe = pipeline("text-generation", model="VoErik/cypher-gemma", device="cuda")
output = pipe([{"role": "user", "content": f"Question: {question} \n Schema: {MOVIE_SCHEMA}"}], max_new_tokens=256, return_full_text=False)[0]
print(output["generated_text"])
This model was trained with SFT on the text2cypher-2025v1 dataset from Neo4j. It was trained for roughly 3500 steps.
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}