muqtadar08/finetuned_gemma_sql_generator 📝 → 📝

▶️ 44 runs 📅 Apr 2024 ⚙️ Cog 0.9.4
code-generation nl2sql sql-generation text-generation text-to-sql

About

Example Output

Output

SELECT price FROM products WHERE category = 'Electronics' AND product_name = 'Laptop';

Performance Metrics

51.01s Prediction Time
51.03s Total Time
All Input Parameters
{
  "ddl_doc": "CREATE TABLE products (\n    product_id INT,\n    product_name VARCHAR(100),\n    category VARCHAR(50),\n    price DECIMAL(10, 2),\n    stock_quantity INT\n);\n\nINSERT INTO products (product_id, product_name, category, price, stock_quantity)\nVALUES\n    (1, 'Smartphone', 'Electronics', 599.99, 100),\n    (2, 'Laptop', 'Electronics', 999.99, 50),\n    (3, 'Headphones', 'Electronics', 99.99, 200),\n    (4, 'T-shirt', 'Apparel', 19.99, 300),\n    (5, 'Jeans', 'Apparel', 49.99, 150);",
  "question": "find the price of laptop"
}
Input Parameters
ddl_doc (required) Type: string
Give the DDl and documentation of the Database
question (required) Type: string
Ask a Question to query you Database
Output Schema

Output

Type: string

Example Execution Logs
A decoder-only architecture is being used, but right-padding was detected! For correct generation results, please set `padding_side='left'` when initializing the tokenizer.
Version Details
Version ID
3b5f9fda888ca684c347536ba9fc01a7cfc60a83ae30f39c220dd072289df0ec
Version Created
April 21, 2024
Run on Replicate →