Run this model with HF Jobs

Run defog/sqlcoder-70b-alpha on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/defog/sqlcoder-70b-alpha. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/defog/sqlcoder-70b-alpha on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/defog/sqlcoder-70b-alpha. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/defog/sqlcoder-70b-alpha. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

SQLite compatibility

#7
by khuswanto - opened

Is there any way, or any prompt template that can be used to produce SQLite or any other database syntax?

Hi @khuswanto , SQLite has the most "liberal" syntax based on our limited understanding so whatever we generate (for postgres by default) should work for SQLite in most cases. We have tested lightly with snowflake and bigquery, and the generated syntax does align for all of the question types in our evaluation framework (https://github.com/defog-ai/sql-eval). For other databases, you can add explicit instructions to steer the model to use their specific syntax. For example, use TOP instead of LIMIT for SQL Server etc.

Sign up or log in to comment