Downloads · 30 days
289
5% of all-time downloads
RichardErkhov/PipableAI_-_pip-SQL-1B-gguf
PipableAI_-_pip-SQL-1B-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
289
5% of all-time downloads
All-time downloads
5.9K
Public
Repo size
15.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf18.5 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
pip-SQL-1B - GGUF
| Name | Quant method | Size |
|---|---|---|
| pip-SQL-1B.Q2_K.gguf | Q2_K | 0.52GB |
| pip-SQL-1B.IQ3_XS.gguf | IQ3_XS | 0.57GB |
| pip-SQL-1B.IQ3_S.gguf | IQ3_S | 0.6GB |
| pip-SQL-1B.Q3_K_S.gguf | Q3_K_S | 0.6GB |
| pip-SQL-1B.IQ3_M.gguf | IQ3_M | 0.63GB |
| pip-SQL-1B.Q3_K.gguf | Q3_K | 0.66GB |
| pip-SQL-1B.Q3_K_M.gguf | Q3_K_M | 0.66GB |
| pip-SQL-1B.Q3_K_L.gguf | Q3_K_L | 0.69GB |
| pip-SQL-1B.IQ4_XS.gguf | IQ4_XS | 0.7GB |
| pip-SQL-1B.Q4_0.gguf | Q4_0 | 0.72GB |
| pip-SQL-1B.IQ4_NL.gguf | IQ4_NL | 0.73GB |
| pip-SQL-1B.Q4_K_S.gguf | Q4_K_S | 0.76GB |
| pip-SQL-1B.Q4_K.gguf | Q4_K | 0.81GB |
| pip-SQL-1B.Q4_K_M.gguf | Q4_K_M | 0.81GB |
| pip-SQL-1B.Q4_1.gguf | Q4_1 | 0.8GB |
| pip-SQL-1B.Q5_0.gguf | Q5_0 | 0.87GB |
| pip-SQL-1B.Q5_K_S.gguf | Q5_K_S | 0.89GB |
| pip-SQL-1B.Q5_K.gguf | Q5_K | 0.93GB |
| pip-SQL-1B.Q5_K_M.gguf | Q5_K_M | 0.93GB |
| pip-SQL-1B.Q5_1.gguf | Q5_1 | 0.95GB |
| pip-SQL-1B.Q6_K.gguf | Q6_K | 1.09GB |
| pip-SQL-1B.Q8_0.gguf | Q8_0 | 1.33GB |
license: mit language:
Please refer to https://huggingface.co/PipableAI/pipSQL-1.3b for our state of the art model, that gives better performance than chatgpt and claude on sql tasks on a lot of benchmarks.
Pipable’s pipSQL is a model distilled from llama 1b to generate sql queries given prompt and schema. We used a unique pipeline which involved the model working on two objectives alternatively ----
The model's new weights along with all other assets involved with it are open sourced under mit license.
text = """<schema>{schema}</schema>
<question>{question}</question>
<sql>"""
pytorch
from transformers import AutoModelForCasualLM, AutoTokenizer
device = "cuda"
model = AutoModelForCausalLM.from_pretrained("PipableAI/pipSQL1b")
tokenizer = AutoTokenizer.from_pretrained("PipableAI/pipSQL1b")
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True).split('<sql>')[1].split('</sql>')[0])
flax
from transformers import FlaxAutoModelForCasualLM, AutoTokenizer
model = FlaxAutoModelForCausalLM.from_pretrained("PipableAI/pipSQL1b" , from_pt=True)
tokenizer = AutoTokenizer.from_pretrained("PipableAI/pipSQL1b")
Avi Kothari, Pratham Gupta, Ritvik Aryan Kalra, Rohan Bhatial, Soham Acharya