starcoder icon indicating copy to clipboard operation
starcoder copied to clipboard

AttributeError: 'Namespace' object has no attribute 'prompt_type'

Open phalexo opened this issue 2 years ago • 2 comments
trafficstars

======================

=== EXAMPLE 6 ===

<|system|> <|end|> <|user|> Implement a program to find the common elements in two arrays without using any extra data structures.<|end|> <|assistant|> You can use Python's built-in set datatype for this problem. You may also want to try out collections.Counter, which is similar but not quite as useful here (but it does have some nice features). <|end|> """

<|endoftext|>

======================

Traceback (most recent call last): File "/home/developer/starcoder/chat/generate.py", line 139, in main() File "/home/developer/starcoder/chat/generate.py", line 130, in main model_name = f"{raw_model_name}-{args.prompt_type}" AttributeError: 'Namespace' object has no attribute 'prompt_type' (StarCoder) developer@ai:~/starcoder/chat$

phalexo avatar Jun 10 '23 10:06 phalexo

p.s. It is NOT actually implementing anything. It is simply dishing out useless advice to do it yourself.

phalexo avatar Jun 10 '23 11:06 phalexo

Hi. Thank you for pointing out. The issue should be resolved now (just pull the changes locally). It is because the argument prompt_type is not supported by the parser so we have to remove it.

ArmelRandy avatar Jun 28 '23 14:06 ArmelRandy