Run this model with HF Jobs

Run juierror/flan-t5-text2sql-with-schema-v2 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/juierror/flan-t5-text2sql-with-schema-v2. 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/juierror/flan-t5-text2sql-with-schema-v2 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/juierror/flan-t5-text2sql-with-schema-v2. 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/juierror/flan-t5-text2sql-with-schema-v2. 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.

Integrating it with SageMaker

#4
by Youssef99 - opened

When running the provided code to deploy the model to Amazon SageMaker, the output was poor for the same input in the example. I ran the code in an Amazon SageMaker notebook btw. Is it possible to use the code as it is (with the 3 functions) directly in a lambda function instead of invoking SageMaker endpoint to run inference ? Thanks

Hi, @Youssef99

To be frank, I'm not sure why the result is not the same with the example, but the result for the model right now is not that good compare to other LLM models.

About the deployment on lambda, I have never used lambda before, but if it is similar to cloud function, I believe that you can deploy it, but not sure about download model latency on lambda.

Ok thank you ! Which model could i use then to perform text-to-sql having many tables ?

Sign up or log in to comment