bigcode-project / starcoder

Home of StarCoder: fine-tuning & inference!
Apache License 2.0
7.23k stars 512 forks source link

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

Open phalexo opened 1 year ago

phalexo commented 1 year ago

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

=== 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 commented 1 year ago

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

ArmelRandy commented 1 year ago

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.