Comment on StableCodeparentComments−UncleOxidant3yHmmm... so on that hugging face page there's a text box where you enter input then you click the 'compute' button.So I asked it to "Write a python function that computes the square of the input number."And it responds with: def square(x): Which seems quite underwhelming.−layoric3yI believe that is more related to how the default Huggingface inference UI is prompting. Running locally with the correct prompt template it gives default completes, eg``` def square(x): return x*x ```
Comments
Hmmm... so on that hugging face page there's a text box where you enter input then you click the 'compute' button.
So I asked it to "Write a python function that computes the square of the input number."
And it responds with:
Which seems quite underwhelming.I believe that is more related to how the default Huggingface inference UI is prompting. Running locally with the correct prompt template it gives default completes, eg
``` def square(x): return x*x ```