# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("mitkox/sqlcoder-7b-2-2")
model = AutoModelForCausalLM.from_pretrained("mitkox/sqlcoder-7b-2-2")Quick Links
mitkox/sqlcoder-7b-2-2
This model was converted to MLX format from defog/sqlcoder-7b-2.
Refer to the original model card for more details on the model.
Use with mlx
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mitkox/sqlcoder-7b-2-2")
response = generate(model, tokenizer, prompt="hello", verbose=True)
- Downloads last month
- 24
Model size
1B params
Tensor type
F16
·
U32 ·
Hardware compatibility
Log In to add your hardware
Quantized
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mitkox/sqlcoder-7b-2-2")