StarCoder for bug detection

#33
by phenomforever - opened

Hello, has anyone explored on using StarCoder for bug detection and bug fixes? I have tried it but it doesn't show any output. Here's the code I am using:

inputs = tokenizer.encode("""what is the bug in the following python code?
def main_1(s: str):
return int(s)*"5"
""", return_tensors="pt")
outputs = model.generate(inputs,max_length=1000)
print(outputs)
print(tokenizer.decode(outputs[0]))

It doesn't show any output and the program keeps running.

This model is not trained for chat assisting nor instructing, I think you will have more luck with starchat-alpha

BigCode org

Indeed the model is not instruction-tuned, you can try using StarChat: https://huggingface.co/spaces/HuggingFaceH4/starchat-playground

loubnabnl changed discussion status to closed

Sign up or log in to comment