AI SeedbankHelp preserve open and free AI for humanity's future

← All models

microsoft_tapex-base-finetuned-wikisql

microsoft · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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-wikisql

Open magnet in torrent client · infohash 79f8858188a8c5c43985726a425bec4e4264148b

Files & hashes

PathSizesha1sha256
README.md3.1 KB (3,149 B)e48fe9eb8ccc8075dbc41c216397351d69eb47725a2ff247d7b15ddb8a08d4e2727b7714161ff9b55a25deb12b216fa88cf36f88
config.json1.6 KB (1,677 B)9911e2bba6694331d0ee76dea41e9304ba09aeebd7fce431c53b16d944d7009f2e22d249e4d84a6a9e528da69cee328425d4c075
generation_config.json236 B (236 B)f0c9c2c791bbce88cbe07e5286b0b5d2e305ee705d9e6ab6f07bda41d0200e67cb6c02fa32222727d07000ff8e091eb25d86e1fb
generation_config_for_summarization.json255 B (255 B)749c983122e82fb43db4eed35cee621f79f0ac30591c022b6736e419e790527646e21ff2c23e373eb295e7a3bd820cf4cb446c80
generation_config_for_summarization_cnn.json280 B (280 B)048fb86aa0f8ab10afc39d3673128fee2fe51e7194c483b6c1c458120649ca2837635406bdda70b4aeba017e83b88efb72c59aee
generation_config_for_summarization_xsum.json254 B (254 B)34f44982272cafecf211b3d3a92ff7a1a4b03612d39fa7b5fa5ea2f8d3e59910805dc02b4bf112bee4aed24d166c974b61e4fbbe
merges.txt445.6 KB (456,318 B)226b0752cac7789c48f0cb3ec53eda48b7be36cc1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
pytorch_model.bin532.1 MB (557,985,683 B)c8233593805fe3f0e6e4fb8b3a8a3477da0c0c5297ec7e91b0b3b749b32a717e004dbd928c8d5f11c2c6e453fa23433fd901c004
special_tokens_map.json772 B (772 B)e97d1993365bb21c88f390e8703e4c1af564821fc611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00
tokenizer_config.json1.2 KB (1,179 B)7613a211417a6a44815008fcad78dfd6e335fa4273340aeec9187f1888b1b0e2d67afaeccd4890151fe724f4831990082854f2cc
vocab.json877.8 KB (898,822 B)0a39732b2d8be8e493cab3da68b68cc3e28221de06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab

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 repositorymicrosoft/tapex-base-finetuned-wikisql
Revision (pinned)1e7e530d8732564c28b4453cd9d21dbf02a6c5dd
Fetched at2026-09-04T02:46:38Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ 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