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

    Dor Bernsohn's picture dbernsohn
    /
    roberta-go

    Fill-Mask
    PyTorch code_search_net Go arxiv:1907.11692 roberta masked-lm
    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/dbernsohn/roberta-go"
    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": "The answer to the universe is <mask>."})

    Quick Links

    • Inference API Documentation
    • How to get started

    How to use from the 🤗/transformers library

    from transformers import AutoTokenizer, AutoModelForMaskedLM
      
    tokenizer = AutoTokenizer.from_pretrained("dbernsohn/roberta-go")
    
    model = AutoModelForMaskedLM.from_pretrained("dbernsohn/roberta-go")

    Or just clone the model repo

    git lfs install
    git clone https://huggingface.co/dbernsohn/roberta-go
    # 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
      roberta-go
      History: 7 commits
      dbernsohn's picture
      dbernsohn
      Update README.md 893e192 3 months ago
      • .gitattributes 345.0B initial commit 3 months ago
      • README.md 1.5KB Update README.md 3 months ago
      • config.json 612.0B Upload roberta-go model and tokenizer 3 months ago
      • merges.txt 509.7KB Upload roberta-go model and tokenizer 3 months ago
      • pytorch_model.bin 318.6MB Upload roberta-go model and tokenizer 3 months ago
      • special_tokens_map.json 772.0B Upload roberta-go model and tokenizer 3 months ago
      • tokenizer_config.json 1.0KB Upload roberta-go model and tokenizer 3 months ago
      • training_args.bin 1.9KB Upload roberta-go model and tokenizer 3 months ago
      • vocab.json 856.6KB Upload roberta-go model and tokenizer 3 months ago