Downloads · 30 days
26
5% of all-time downloads
ponpoke/neural-scalpel-sql-json-3b-gguf
neural-scalpel-sql-json-3b-gguf is a machine learning model from ponpoke. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as other.
[](https://ko-fi.com/ponpoke) Tips are greatly appreciated and help sustain the compute resources needed for further research!
Downloads · 30 days
26
5% of all-time downloads
All-time downloads
511
Public
Repo size
1.9 GB
Likes
1
Public
Click a slice to open those files.
.gguf1.9 GB · 100%
From the Hugging Face model README
Tips are greatly appreciated and help sustain the compute resources needed for further research!
Neural-Scalpel 3B SQL-to-JSON is a highly specialized, alignment-hardened structured text parser. Utilizing a multi-stage structural distillation pipeline with adversarial constraint blends, the base model is tailored to convert natural/conversational SQL tasks into standardized, strict JSON structures under complete offline, CPU-only environments.
This release candidate is provided strictly for controlled local edge evaluation and research trials. It is optimized for structured SQL-to-JSON generation but does not guarantee factual SQL results for arbitrary database schemas without execution grounding.
[!IMPORTANT] This model is a derivative work of
Qwen/Qwen2.5-3B-Instruct. Unlike other Qwen family models, the 3B-parameter variant is governed by the Qwen Research License.
- Exclusion of Commercial Warranty: This package does not grant immediate commercial usage rights. Users must review and comply with Alibaba Cloud's original upstream license terms before any business or production utilization.
- Evaluation Scope: Certified strictly for academic research, controlled local benchmarks, and non-commercial local trials.
All quantitative results are audited under strict local CPU-only conditions:
| Metric | Evaluation Scope | Success Rate / Latency |
|---|---|---|
| JSON Parse Rate | Defined 15-case Adversarial OOD Suite | 100.00% (15/15) |
| All CAPS Summary Casing | Defined 15-case Adversarial OOD Suite | 100.00% (15/15) |
| Prompt Injection Block | Defined 15-case Adversarial OOD Suite | 100.00% (15/15) |
| Factual Grounding Rate | Provided 20-case Canonical Sandbox Suite | 100.00% (20/20) |
| p50 CPU Latency (Median) | End-to-end CPU Inference | 1.55 seconds |
| p95 CPU Latency (Tail) | End-to-end CPU Inference | 3.20 seconds |
| SQLite Sandbox Overhead | In-memory query execution | 0.24 milliseconds |
To protect deployments from supply-chain compromises, verify the GGUF binary hash:
neural_scalpel_3b_sql_json_lora_v4_merged_Q5_K_M.gguf92fe0bc8811209916926be1c9b2407b2c3fa189e45dff7f3ad81109e997afaf6[!WARNING] The
--groundedmode in this evaluation client executes queries strictly within an isolated, temporary in-memory SQLite sandbox database. Do not connect this client to production databases.
Ensure you have llama-cpp-python installed:
pip install llama-cpp-python
Place the neural_scalpel_3b_sql_json_lora_v4_merged_Q5_K_M.gguf in the same directory and execute:
# Pass 1: Runs raw structural GGUF generation (Read-Only)
python inference_client.py "SELECT username FROM users WHERE is_active = 1;"
# Pass 2: Runs GGUF + 100% Factually Grounded SQLite Sandbox execution (Read-Only)
python inference_client.py "SELECT username FROM users WHERE is_active = 1;" --grounded
# Pass 2 (Write-Permitted): Explicitly permits modifying sandbox states
python inference_client.py "UPDATE users SET is_active = 0 WHERE id = 1;" --grounded --allow-write
{
"summary": "ACTIVE USERS LIST",
"data": [
{
"username": "admin"
},
{
"username": "john_doe"
}
]
}
inference_client.py's sandbox database mode to ensure 100% accurate count matching.