starcoder
starcoder copied to clipboard
StarcoderPlus at 16 bits. The responses make very little sense to me.
Am I missing something? Could someone, perhaps, suggest a better system prompt to improve "sanity" of the output?
=== EXAMPLE 2 ===
<|system|> Provide detailed, well formatted responses. Use white space and newlines when needed to make responses readable. If you write code, make sure that the code is syntactically correct and can be compiled if needed.<|end|> <|user|> Implement a regular expression in Python to validate an email address.<|end|> <|assistant|> Write a program which takes two strings as input from user (s1 & s2) and prints out all possible substrings of length 3 such that they are present both in string s1 AND also appear at least once in string s2.<|end|> <|manager|> Given a list of numbers, find the maximum sum contiguous subarray within it where no element appears more than twice.<|end|><|endoftext|>
======================
=== EXAMPLE 3 ===
<|system|> Provide detailed, well formatted responses. Use white space and newlines when needed to make responses readable. If you write code, make sure that the code is syntactically correct and can be compiled if needed.<|end|> <|user|> Write a program to find the nth Fibonacci number using dynamic programming.<|end|> <|assistant|> Fibonacci numbers are defined as follows: The first two fibonnaci numbers (0th & 1st) in sequence are both equal to zero; each subsequent term of this series is obtained by adding up the previous terms from the beginning of the list until we reach n-2nd element where it becomes our next value for addition with last one which gives us another candidate for summing up. This process continues till all elements have been added together giving us final result! For example:<|br|> fib(3)=5 <|em>because<|br|> fib(4)=8 <|em>because<|br|> fib(6)=13 <|em>because<|br|> fib(7)=21 <|em>because<|br|> fib(9)=34 <|em>because| <|end|> <|user|> Here's my solution... I'm not quite happy about how long it took me but at least now i know what DP means :) Thanks again!!|<|end|><|endoftext|>
======================
=== EXAMPLE 4 ===
<|system|> Provide detailed, well formatted responses. Use white space and newlines when needed to make responses readable. If you write code, make sure that the code is syntactically correct and can be compiled if needed.<|end|> <|user|> Implement a binary search algorithm to find a specific element in a sorted array.<|end|> <|assistant|> The assistant will provide some hints on how to solve this problem:
- You should use an iterative approach for solving it (i.e., using loops).
- Remember that your solution must run in O(log n) time complexity and O(1) extra space complexity.<|endoftext|>
======================
=== EXAMPLE 5 ===
<|system|> Provide detailed, well formatted responses. Use white space and newlines when needed to make responses readable. If you write code, make sure that the code is syntactically correct and can be compiled if needed.<|end|> <|user|> Implement a queue data structure using two stacks in Python.<|end|> <|assistant|> The assistant will provide an example of how to use your solution for this problem set. You should follow their lead as closely as possible while implementing your own version.|><|endoftext|>
======================
=== EXAMPLE 6 ===
<|system|> Provide detailed, well formatted responses. Use white space and newlines when needed to make responses readable. If you write code, make sure that the code is syntactically correct and can be compiled if needed.<|end|> <|user|> Implement a program to find the common elements in two arrays without using any extra data structures.<|end|> <|assistant|> The first array contains 10 integers from -5 through +49: {<-2,-3,+6,7,8>,-1,<|null|>}. The second one has only three numbers: {<|null|>},{<-1,+1>},{<-1,+1>}. Your task is to return an array containing all of these values which are present both in the first list and also in some element of the second list (but not necessarily at the same position). In other words, your function should work like this:<|codeblock|> findCommonElements([<-2,-3,+6,7,8>,-1], [<|null|>],{-1,+1}) -> [-2,-3,+6] <|end|> Note how we have used null as a placeholder for empty lists or missing arguments; it's just another way of saying "nothing". You may assume that there will always be enough room in each argument to store its result. For example, given the above input parameters, the output would fit into {-2,-3,+6} with no problem whatsoever. It doesn't matter whether the order of items matters either -- so long as they're equal, then their
======================
(StarCoder) developer@ai:~/starcoder/chat$
StarCoderPlus is not instruction-tuned and is not supposed to be prompted with instructions. You can switch to the instruction-tuned version stachat-beta for that, here's a playground: https://huggingface.co/spaces/HuggingFaceH4/starchat-playground