Run this model with HF Jobs

Run TheBloke/sqlcoder2-GGUF 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/TheBloke/sqlcoder2-GGUF. 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/TheBloke/sqlcoder2-GGUF 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/TheBloke/sqlcoder2-GGUF. 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.

Is there a way to provide examples via prompt?

#6
by bumkicho - opened

I am wondering if there is a way to provide sql examples in the prompt for more accurate results.

Examples:

Natural Language: "What was our revenue by product in the new york region last month?"
SQL: "SELECT p.name, SUM(s.quantity * p.price) AS total_revenue FROM sales s JOIN products p ON s.product_id = p.product_id JOIN salespeople sp ON s.salesperson_id = sp.salesperson_id WHERE sp.region = 'New York' AND s.sale_date >= (CURRENT_DATE - INTERVAL '1 month') GROUP BY p.name;"

If not possible through prompt, is there any other way to be able to do this?

Sign up or log in to comment