How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="waldie/sqlcoder-34b-alpha-4bpw-h6-exl2")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("waldie/sqlcoder-34b-alpha-4bpw-h6-exl2")
model = AutoModelForCausalLM.from_pretrained("waldie/sqlcoder-34b-alpha-4bpw-h6-exl2")
Quick Links

quant of defog's sqlcoder-34b-alpha

https://huggingface.co/datasets/knowrohit07/know_sql used as calibration dataset.

since the original model didn't provide a tokenizer.model i used the one from codellama 34b. i hope that is the correct way to do it. it seems to work fine at least.

Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support