Downloads · 30 days
0
Kasivs/SQLCreator
SQLCreator is a text generation model from Kasivs. Use it when you need the model to write or continue text. It is set up for flair. The card lists the license as llama2.
This model is designed to generate SQL queries based on input prompts. It is based on GPT-2 and trained with custom datasets.
Downloads · 30 days
0
Access
Public
Updated Aug 18, 2024
Parameters
86.2M
345 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors345 MB · 100%
From the Hugging Face model README
This model is designed to generate SQL queries based on input prompts. It is based on GPT-2 and trained with custom datasets.
To use this model, follow these steps:
pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = “Kasivs/SQLCreator"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example usage
inputs = tokenizer("SELECT * FROM users WHERE", return_tensors="pt")
outputs = model.generate(inputs["input_ids"])
print(tokenizer.decode(outputs[0]))
Details about how the model was trained, including dataset information and training parameters.
Specify the license under which the model is distributed.
Provide citation information if applicable.
Your contact information or any related resources.