Text Generation
PEFT
Safetensors
English
qwen2
text-to-cypher
neo4j
cypher
unsloth
qwen2.5
conversational
Instructions to use KRadim/Qwen2.5-Coder-3B-text2cypher-Merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use KRadim/Qwen2.5-Coder-3B-text2cypher-Merged with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
|
Download README.md from KRadim/Qwen2.5-Coder-3B-text2cypher-Merged: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/KRadim/Qwen2.5-Coder-3B-text2cypher-Merged/resolve/main/README.md
- Command line
-
hf download hf://KRadim/Qwen2.5-Coder-3B-text2cypher-Merged/README.md
-
curl -L -o README.md https://huggingface.co/KRadim/Qwen2.5-Coder-3B-text2cypher-Merged/resolve/main/README.md
1.45 kB
| datasets: | |
| - KRadim/multilingual-text2cypher-2025 | |
| language: en | |
| library_name: peft | |
| license: apache-2.0 | |
| pipeline_tag: text-generation | |
| tags: | |
| - text-to-cypher | |
| - neo4j | |
| - cypher | |
| - unsloth | |
| - qwen2.5 | |
| # Qwen2.5-Coder-3B Text-to-Cypher (Neo4j) - Run #7 | |
| This model is a fine-tuned version of **unsloth/Qwen2.5-Coder-3B-Instruct** optimized for translating natural language questions into accurate **Neo4j Cypher queries** using a structured database schema. | |
| Number of samples used: `245000` | |
| ## Model Details | |
| - **Base Architecture:** Qwen2.5-Coder-3B-Instruct | |
| - **Fine-Tuning Method:** QLoRA (Rank 16, Alpha 16) | |
| - **Dataset Used:** `KRadim/multilingual-text2cypher-2025` (8074 examples) | |
| - **Epochs:** 1 | |
| - **Frameworks:** Unsloth, Hugging Face TRL, PEFT, PyTorch | |
| ## Prompts & Schema Usage | |
| The model expects system prompts containing the Neo4j schema structure: | |
| ```text | |
| <|im_start|>system | |
| You are an expert in Neo4j databases and the Cypher query language. Your task is to convert natural language queries into accurate and efficient Cypher queries based on the provided database schema. | |
| ### Database Schema: | |
| [PROVIDE DATABASE SCHEMA HERE]<|im_end|> | |
| <|im_start|>user | |
| [YOUR NATURAL LANGUAGE QUESTION]<|im_end|> | |
| <|im_start|>assistant | |
| ``` | |
| ## Running with Ollama (GGUF) | |
| You can run the exported GGUF model (KRadim/Qwen2.5-Coder-3B-text2cypher-GGUF) directly in Ollama: | |
| ```bash | |
| ollama run hf.co/KRadim/Qwen2.5-Coder-3B-text2cypher-GGUF:Q4_K_M | |
| ``` | |