microsoft_tapex-base-finetuned-wikisql
microsoft · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
language: en tags:
- tapex
- table-question-answering datasets:
- wikisql license: mit
TAPEX (base-sized model)
TAPEX was proposed in TAPEX: Table Pre-training via Learning a Neural SQL Executor by Qian Liu, Bei Chen, Jiaqi Guo, Morteza Ziyadi, Zeqi Lin, Weizhu Chen, Jian-Guang Lou. The original repo can be found here.
Model description
TAPEX (Table Pre-training via Execution) is a conceptually simple and empirically powerful pre-training approach to empower existing models with table reasoning skills. TAPEX realizes table pre-training by learning a neural SQL executor over a synthetic corpus, which is obtained by automatically synthesizing executable SQL queries.
TAPEX is based on the BART architecture, the transformer encoder-encoder (seq2seq) model with a bidirectional (BERT-like) encoder and an autoregressive (GPT-like) decoder.
This model is the tapex-base model fine-tuned on the WikiSQL dataset.
Intended Uses
You can use the model for table question answering on relatively simple questions. Some solveable questions are shown below (corresponding tables now shown):
| Question | Answer |
|---|---|
| tell me what the notes are for south australia | no slogan on current series |
| what position does the player who played for butler cc (ks) play? | guard-forward |
| how many schools did player number 3 play at? | 1.0 |
| how many winning drivers in the kraco twin 125 (r2) race were there? | 1.0 |
| for the episode(s) aired in the u.s. on 4 april 2008, what were the names? | "bust a move" part one, "bust a move" part two |
How to Use
Here is how to use this model in transformers:
from transformers import TapexTokenizer, BartForConditionalGeneration
import pandas as pd
tokenizer = TapexTokenizer.from_pretrained("microsoft/tapex-base-finetuned-wikisql")
model = BartForConditionalGeneration.from_pretrained("microsoft/tapex-base-finetuned-wikisql")
data = {
"year": [1896, 1900, 1904, 2004, 2008, 2012],
"city": ["athens", "paris", "st. louis", "athens", "beijing", "london"]
}
table = pd.DataFrame.from_dict(data)
# tapex accepts uncased input since it is pre-trained on the uncased corpus
query = "In which year did beijing host the Olympic Games?"
encoding = tokenizer(table=table, query=query, return_tensors="pt")
outputs = model.generate(**encoding)
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
# [' 2008.0']
How to Eval
Please find the eval script here.
BibTeX entry and citation info
@inproceedings{
liu2022tapex,
title={{TAPEX}: Table Pre-training via Learning a Neural {SQL} Executor},
author={Qian Liu and Bei Chen and Jiaqi Guo and Morteza Ziyadi and Zeqi Lin and Weizhu Chen and Jian-Guang Lou},
booktitle={International Conference on Learning Representations},
year={2022},
url={https://openreview.net/forum?id=O50443AsCP}
}
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:79f8858188a8c5c43985726a425bec4e4264148b&dn=microsoft_tapex-base-finetuned-wikisqlOpen magnet in torrent client · infohash 79f8858188a8c5c43985726a425bec4e4264148b
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 3.1 KB (3,149 B) | e48fe9eb8ccc8075dbc41c216397351d69eb4772 | 5a2ff247d7b15ddb8a08d4e2727b7714161ff9b55a25deb12b216fa88cf36f88 |
| config.json | 1.6 KB (1,677 B) | 9911e2bba6694331d0ee76dea41e9304ba09aeeb | d7fce431c53b16d944d7009f2e22d249e4d84a6a9e528da69cee328425d4c075 |
| generation_config.json | 236 B (236 B) | f0c9c2c791bbce88cbe07e5286b0b5d2e305ee70 | 5d9e6ab6f07bda41d0200e67cb6c02fa32222727d07000ff8e091eb25d86e1fb |
| generation_config_for_summarization.json | 255 B (255 B) | 749c983122e82fb43db4eed35cee621f79f0ac30 | 591c022b6736e419e790527646e21ff2c23e373eb295e7a3bd820cf4cb446c80 |
| generation_config_for_summarization_cnn.json | 280 B (280 B) | 048fb86aa0f8ab10afc39d3673128fee2fe51e71 | 94c483b6c1c458120649ca2837635406bdda70b4aeba017e83b88efb72c59aee |
| generation_config_for_summarization_xsum.json | 254 B (254 B) | 34f44982272cafecf211b3d3a92ff7a1a4b03612 | d39fa7b5fa5ea2f8d3e59910805dc02b4bf112bee4aed24d166c974b61e4fbbe |
| merges.txt | 445.6 KB (456,318 B) | 226b0752cac7789c48f0cb3ec53eda48b7be36cc | 1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5 |
| pytorch_model.bin | 532.1 MB (557,985,683 B) | c8233593805fe3f0e6e4fb8b3a8a3477da0c0c52 | 97ec7e91b0b3b749b32a717e004dbd928c8d5f11c2c6e453fa23433fd901c004 |
| special_tokens_map.json | 772 B (772 B) | e97d1993365bb21c88f390e8703e4c1af564821f | c611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00 |
| tokenizer_config.json | 1.2 KB (1,179 B) | 7613a211417a6a44815008fcad78dfd6e335fa42 | 73340aeec9187f1888b1b0e2d67afaeccd4890151fe724f4831990082854f2cc |
| vocab.json | 877.8 KB (898,822 B) | 0a39732b2d8be8e493cab3da68b68cc3e28221de | 06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/microsoft_tapex-base-finetuned-wikisql/
- Slug
- microsoft_tapex-base-finetuned-wikisql
- Infohash
- 79f8858188a8c5c43985726a425bec4e4264148b
- License
- mit
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: microsoft_tapex-base-finetuned-wikisql.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | microsoft/tapex-base-finetuned-wikisql |
|---|---|
| Revision (pinned) | 1e7e530d8732564c28b4453cd9d21dbf02a6c5dd |
| Fetched at | 2026-09-04T02:46:38Z |
| License at fetch | mit |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-04T02:46:46Z
mit533.4 MB (559,348,625 bytes)transformerspytorchbarttext2text-generationtapextable-question-answeringendpoints_compatible1 language (en)paper: 2107.07653