Downloads · 30 days
4
2% of all-time downloads
WPAI-INC/WPAIGPT-sql-01
WPAIGPT-sql-01 is a machine learning model from WPAI-INC. 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 apache-2.0.
WPAIGPT-SQL-01 is a specialized text-to-SQL model designed for WordPress and WordPress plugins. It generates SQL queries based on natural language requests, with a focus on WordPress-specific database structures and p…
Downloads · 30 days
4
2% of all-time downloads
All-time downloads
188
Public
Repo size
15.4 GB
Likes
5
Public
Click a slice to open those files.
.bin15.2 GB · 99%
From the Hugging Face model README
WPAIGPT-SQL-01 is a specialized text-to-SQL model designed for WordPress and WordPress plugins. It generates SQL queries based on natural language requests, with a focus on WordPress-specific database structures and popular plugins.
WPAIGPT-SQL-01 is a fine-tuned version of the Qwen2.5-Coder-7B model, optimized for generating SQL queries for WordPress databases. It can handle queries related to core WordPress tables as well as tables added by various plugins.
The model is designed for direct text-to-SQL generation for WordPress databases. Users can input natural language requests, optionally including plugin names, versions, and table descriptions, to generate SQL queries. This is particularly useful for:
While there are no strict out-of-scope uses, users should be aware that as a Transformer-based model, it can potentially hallucinate or generate incorrect queries. All generated SQL should be verified before execution against a live WordPress database.
The training data consists of hundreds of thousands of instruction-to-SQL examples, structured as follows:
The queries are derived from popular WordPress plugins, both from the official WordPress repository and premium plugins. The data generation process involves:
There's a bias towards the most popular WordPress plugins and those with significant database interactions. Additional manual data has been included for specific plugins like WooCommerce, LearnDash, and Gravity Forms.
The training procedure details are available in the provided Python notebook. For specific information about hyperparameters, preprocessing steps, and other training details, please refer to the notebook.
Formal evaluations have not been conducted. The model's performance is primarily assessed through:
The model is based on the Qwen2.5-Coder-7B architecture, fine-tuned for the specific task of WordPress SQL generation. It uses a causal language modeling objective to generate SQL queries based on natural language inputs.
Key features of the base Qwen2.5-Coder-7B model include:
The model has been specifically fine-tuned to understand WordPress database structures and generate appropriate SQL queries, maintaining its coding capabilities while focusing on the WordPress ecosystem.