Run this model with HF Jobs
Run google/tapas-medium-finetuned-sqa 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 to fine-tune https://huggingface.co/google/tapas-medium-finetuned-sqa. 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/google/tapas-medium-finetuned-sqa 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.
Instructions to use google/tapas-medium-finetuned-sqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/tapas-medium-finetuned-sqa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("table-question-answering", model="google/tapas-medium-finetuned-sqa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTableQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("google/tapas-medium-finetuned-sqa") model = AutoModelForTableQuestionAnswering.from_pretrained("google/tapas-medium-finetuned-sqa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload TF model
Browse filesFiles changed (2)
- config.json+63-59
- tf_model.h5Added+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{"aggregation_loss_weight": 1.0,"aggregation_temperature": 1.0,"allow_empty_column_selection": false,"answer_loss_cutoff": null,"answer_loss_importance": 1.0,"architectures": ["TapasForQuestionAnswering"],"attention_probs_dropout_prob": 0.1,"average_approximation_function": "ratio","average_logits_per_cell": false,"cell_selection_preference": null,"disable_per_token_loss": false,"gradient_checkpointing": false,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 512,"huber_loss_delta": null,"init_cell_selection_weights_to_zero": false,"initializer_range": 0.02,"intermediate_size": 2048,"layer_norm_eps": 1e-12,"max_num_columns": 32,"max_num_rows": 64,"max_position_embeddings": 512,"model_type": "tapas","num_aggregation_labels": 0,"num_attention_heads": 8,"num_hidden_layers": 8,"pad_token_id": 0,"positive_label_weight": 10.0,"reset_position_index_per_cell": true,"select_one_column": true,"softmax_temperature": 1.0,"type_vocab_size": [3,256,256,2,256,256,10],"type_vocab_sizes": [3,256,256,2,256,256,10],"use_answer_as_supervision": null,"use_gumbel_for_aggregation": false,"use_gumbel_for_cells": false,"use_normalized_answer_loss": false,"vocab_size": 30522}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{"_name_or_path": "google/tapas-medium-finetuned-sqa","aggregation_labels": null,"aggregation_loss_weight": 1.0,"aggregation_temperature": 1.0,"allow_empty_column_selection": false,"answer_loss_cutoff": null,"answer_loss_importance": 1.0,"architectures": ["TapasForQuestionAnswering"],"attention_probs_dropout_prob": 0.1,"average_approximation_function": "ratio","average_logits_per_cell": false,"cell_selection_preference": null,"disable_per_token_loss": false,"gradient_checkpointing": false,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 512,"huber_loss_delta": null,"init_cell_selection_weights_to_zero": false,"initializer_range": 0.02,"intermediate_size": 2048,"layer_norm_eps": 1e-12,"max_num_columns": 32,"max_num_rows": 64,"max_position_embeddings": 512,"model_type": "tapas","no_aggregation_label_index": null,"num_aggregation_labels": 0,"num_attention_heads": 8,"num_hidden_layers": 8,"pad_token_id": 0,"positive_label_weight": 10.0,"reset_position_index_per_cell": true,"select_one_column": true,"softmax_temperature": 1.0,"transformers_version": "4.13.0.dev0","type_vocab_size": [3,256,256,2,256,256,10],"type_vocab_sizes": [3,256,256,2,256,256,10],"use_answer_as_supervision": null,"use_gumbel_for_aggregation": false,"use_gumbel_for_cells": false,"use_normalized_answer_loss": false,"vocab_size": 30522}
123version https://git-lfs.github.com/spec/v1oid sha256:e0baa9835d4127c6f5d9b2646431fb24922007e2f4f7b36a2f47c553d966f39esize 167827904config.json+63-59
tf_model.h5Added+3