Please refer to our new
GitHub Wiki
which documents our efforts in detail in creating the open source version of GitHub Copilot
Model Description
GPT-CC-125M-Code-Search is a
GPT-Neo-125M model
finetuned using causal language modeling on only the python language in the
CodeSearchNet Challenge dataset
. This model is specialized to autocomplete methods in the python language.
The model is finetuned methods from the python language and is intended to autocomplete python methods given some prompt (method signature and docstring).
How to use
You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run:
from transformers import AutoModelForCausalLM, AutoTokenizer, FlaxAutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("flax-community/gpt-neo-125M-code-clippy-code-search-py")
tokenizer = AutoTokenizer.from_pretrained("flax-community/gpt-neo-125M-code-clippy-code-search-py")
prompt = """def greet(name): '''A function to greet user. Given a user name it should say hello'''"""
input_ids = tokenizer(prompt, return_tensors='pt').input_ids.to(device)
start = input_ids.size(1)
out = model.generate(input_ids, do_sample=True, max_length=50, num_beams=2,
early_stopping=True, eos_token_id=tokenizer.eos_token_id, )
print(tokenizer.decode(out[0][start:]))
Limitations and Biases
The model is intended to be used for research purposes and comes with no guarantees of quality of generated code.
GPT-CC is finetuned from GPT-Neo and might have inherited biases and limitations from it. See
GPT-Neo model card
for details.
Eval results
Coming soon...
Runs of flax-community gpt-neo-125M-code-search-py on huggingface.co
15
Total runs
0
24-hour runs
2
3-day runs
2
7-day runs
8
30-day runs
More Information About gpt-neo-125M-code-search-py huggingface.co Model
gpt-neo-125M-code-search-py huggingface.co
gpt-neo-125M-code-search-py huggingface.co is an AI model on huggingface.co that provides gpt-neo-125M-code-search-py's model effect (), which can be used instantly with this flax-community gpt-neo-125M-code-search-py model. huggingface.co supports a free trial of the gpt-neo-125M-code-search-py model, and also provides paid use of the gpt-neo-125M-code-search-py. Support call gpt-neo-125M-code-search-py model through api, including Node.js, Python, http.
gpt-neo-125M-code-search-py huggingface.co is an online trial and call api platform, which integrates gpt-neo-125M-code-search-py's modeling effects, including api services, and provides a free online trial of gpt-neo-125M-code-search-py, you can try gpt-neo-125M-code-search-py online for free by clicking the link below.
flax-community gpt-neo-125M-code-search-py online free url in huggingface.co:
gpt-neo-125M-code-search-py is an open source model from GitHub that offers a free installation service, and any user can find gpt-neo-125M-code-search-py on GitHub to install. At the same time, huggingface.co provides the effect of gpt-neo-125M-code-search-py install, users can directly use gpt-neo-125M-code-search-py installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
gpt-neo-125M-code-search-py install url in huggingface.co: