tals / roberta_python

huggingface.co
Total runs: 21
24-hour runs: 0
7-day runs: 6
30-day runs: 9
Model's Last Updated: August 05 2022
fill-mask

Introduction of roberta_python

Model Details of roberta_python

roberta_python


language: code datasets: - code_search_net - Fraser/python-lines tags: - python - code - masked-lm widget: - text "assert 6 == sum([i for i in range(

Details

This is a roBERTa-base model trained on the python part of CodeSearchNet and reached a dev perplexity of 3.296

This model was used for the Programming Puzzles enumerative solver baseline detailed in Programming Puzzles paper .

See also the Python Programming Puzzles (P3) Repository for more details.

Usage

You can either load the model and further fine-tune it for a target task (as done for the puzzle solver), or you can experiment with mask-filling directly with this model as in the following example:

from transformers import AutoTokenizer, AutoModelWithLMHead, pipeline

tokenizer = AutoTokenizer.from_pretrained("tals/roberta_python")
model = AutoModelWithLMHead.from_pretrained("tals/roberta_python")

demo = pipeline("fill-mask", model=model, tokenizer=tokenizer)

code = """sum= 0
for i in range(<mask>):
    sum += i
assert sum == 6
"""
demo(code)

BibTeX entry and citation info

@inproceedings{
      schuster2021programming,
      title={Programming Puzzles},
      author={Tal Schuster and Ashwin Kalyan and Alex Polozov and Adam Tauman Kalai},
      booktitle={Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 1)},
      year={2021},
      url={https://openreview.net/forum?id=fe_hCc4RBrg}
}

Runs of tals roberta_python on huggingface.co

21
Total runs
0
24-hour runs
0
3-day runs
6
7-day runs
9
30-day runs

More Information About roberta_python huggingface.co Model

roberta_python huggingface.co

roberta_python huggingface.co is an AI model on huggingface.co that provides roberta_python's model effect (), which can be used instantly with this tals roberta_python model. huggingface.co supports a free trial of the roberta_python model, and also provides paid use of the roberta_python. Support call roberta_python model through api, including Node.js, Python, http.

roberta_python huggingface.co Url

https://huggingface.co/tals/roberta_python

tals roberta_python online free

roberta_python huggingface.co is an online trial and call api platform, which integrates roberta_python's modeling effects, including api services, and provides a free online trial of roberta_python, you can try roberta_python online for free by clicking the link below.

tals roberta_python online free url in huggingface.co:

https://huggingface.co/tals/roberta_python

roberta_python install

roberta_python is an open source model from GitHub that offers a free installation service, and any user can find roberta_python on GitHub to install. At the same time, huggingface.co provides the effect of roberta_python install, users can directly use roberta_python installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

roberta_python install url in huggingface.co:

https://huggingface.co/tals/roberta_python

Url of roberta_python

roberta_python huggingface.co Url

Provider of roberta_python huggingface.co

tals
ORGANIZATIONS

Other API from tals