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= 0for i in range(<mask>): sum += iassert 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 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:
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.