Sieve
Collection
SQL WHERE clause generation • 2 items • Updated • 1
Fine-tune of meta-llama/Llama-3.2-1B for SQL WHERE clause generation.
GGUF quantizations are available at azatvaliev/sieve-llama-3.2-1b-GGUF.
This is a completion model (not instruct/chat). Given a PostgreSQL schema (DDL), a natural language filter as a -- filter: comment, and a SELECT * FROM table prefix, the model completes with the appropriate WHERE clause.
Input:
CREATE TABLE "public"."product" (
"id" bigint PRIMARY KEY,
"name" text NOT NULL,
"category" text NOT NULL,
"price" numeric(10,2) NOT NULL,
"in_stock" boolean NOT NULL DEFAULT true
);
-- filter: electronics under $50
SELECT * FROM product
Output:
WHERE category LIKE '%electronics%' AND price < 50
The adapter/ directory contains the LoRA adapter weights.