Downloads · 30 days
90
0% of all-time downloads
tscholak/3vnuv1vf
3vnuv1vf is a machine learning model from tscholak. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned weights for PICARD - Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models based on t5.1.1.lm100k.large.
Downloads · 30 days
90
0% of all-time downloads
All-time downloads
46.2K
Public
Repo size
16.3 GB
Likes
10
Public
Click a slice to open those files.
.bin3.1 GB · 100%
From the Hugging Face model README
Fine-tuned weights for PICARD - Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models based on t5.1.1.lm100k.large.
The model has been fine-tuned on the 7000 training examples in the Spider text-to-SQL dataset. The model solves Spider's zero-shot text-to-SQL translation task, and that means that it can generalize to unseen SQL databases.
This model was initialized with t5.1.1.lm100k.large and fine-tuned with the text-to-text generation objective.
Questions are always grounded in a database schema, and the model is trained to predict the SQL query that would be used to answer the question. The input to the model is composed of the user's natural language question, the database identifier, and a list of tables and their columns:
[question] | [db_id] | [table] : [column] ( [content] , [content] ) , [column] ( ... ) , [...] | [table] : ... | ...
The model outputs the database identifier and the SQL query that will be executed on the database to answer the user's question:
[db_id] | [sql]
Out of the box, this model achieves 71.2 % exact-set match accuracy and 74.4 % execution accuracy on the Spider development set.
Using the PICARD constrained decoding method (see the official PICARD implementation), the model's performance can be improved to 74.8 % exact-set match accuracy and 79.2 % execution accuracy on the Spider development set.
Please see the official repository for scripts and docker images that support evaluation and serving of this model.
@inproceedings{Scholak2021:PICARD,
author = {Torsten Scholak and Nathan Schucher and Dzmitry Bahdanau},
title = "{PICARD}: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models",
booktitle = "Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2021",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.emnlp-main.779",
pages = "9895--9901",
}