StarCoder for bug detection
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
Indeed the model is not instruction-tuned, you can try using StarChat: https://huggingface.co/spaces/HuggingFaceH4/starchat-playground