Hugging Face's logo Hugging Face
    • Models
    • Datasets
    • Pricing
      • Website
        • Metrics
        • Languages
        • Organizations
      • Community
        • Forum
        • Blog
        • GitHub
      • Documentation
        • Model Hub doc
        • Inference API doc
        • Transformers doc
        • Tokenizers doc
        • Datasets doc
    • We're hiring!

    • Log In
    • Sign Up
    • Account
      • Log In
      • Sign Up
    • Website
      • Models
      • Datasets
      • Metrics
      • Languages
      • Organizations
      • Pricing
    • Community
      • Forum
      • Blog
    • Documentation
      • Model Hub doc
      • Inference API doc
      • Transformers doc
      • Tokenizers doc
      • Datasets doc

    Google AI's picture google
    /
    tapas-tiny-finetuned-tabfact

    Text Classification
    PyTorch tab_fact en arxiv:2010.00571 arxiv:2004.02349 apache-2.0 tapas sequence-classification
    Model card Files and versions

    How to serve this model with the Accelerated Inference API

    Try the Inference API for free, and get an organization plan to use it in your apps.
    import json
    import requests
    
    API_URL = "https://api-inference.huggingface.co/models/google/tapas-tiny-finetuned-tabfact"
    headers = {"Authorization": f"Bearer {API_TOKEN}"}
    
    def query(payload):
    	data = json.dumps(payload)
    	response = requests.request("POST", API_URL, headers=headers, data=data)
    	return json.loads(response.content.decode("utf-8"))
    data = query({"inputs": "I like you. I love you"})

    Quick Links

    • Inference API Documentation
    • How to get started

    How to use from the 🤗/transformers library

    from transformers import AutoTokenizer, AutoModelForSequenceClassification
      
    tokenizer = AutoTokenizer.from_pretrained("google/tapas-tiny-finetuned-tabfact")
    
    model = AutoModelForSequenceClassification.from_pretrained("google/tapas-tiny-finetuned-tabfact")

    Or just clone the model repo

    git lfs install
    git clone https://huggingface.co/google/tapas-tiny-finetuned-tabfact
    # if you want to clone without large files – just their pointers
    # prepend your git clone with the following env var:
    GIT_LFS_SKIP_SMUDGE=1
      • main
      • no_reset
      tapas-tiny-finetuned-tabfact
      History: 3 commits
      nielsr's picture
      nielsr
      First draft of model card 56e7cb9 last year
      • .gitattributes 345.0B initial commit last year
      • README.md 4.8KB First draft of model card last year
      • config.json 1.4KB First commit last year
      • pytorch_model.bin 17.3MB First commit last year
      • special_tokens_map.json 154.0B First commit last year
      • tokenizer_config.json 490.0B First commit last year
      • vocab.txt 255.9KB First commit last year