lucataco/wizardcoder-python-34b-v1.0

Empowering Code Large Language Models with Evol-Instruct

  • Public
  • 830 runs

Run wizardcoder-python-34b-v1.0 with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Tell me about AI
Your prompt
system_prompt
string
Below is an instruction that describes a task. Write a response that appropriately completes the request.
System prompt that helps guide system behavior
temperature
number
0.7

Max: 5

Randomness of outputs, 0 is deterministic, greater than 1 is random
max_new_tokens
integer
512

Min: 1

Max: 4096

Number of new tokens
top_p
number
0.95

Min: 0.01

Max: 1

When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
repetition_penalty
number
1.15

Max: 5

Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'title': 'Output', 'type': 'string'}
Example API response
View prediction
('\n'
 "Here's a basic Python code for a simple calculator with addition, "
 'subtraction, multiplication and division operations:\r\n'
 '\r\n'
 '```python\r\n'
 'num1 = float(input("Enter first number: "))\r\n'
 'num2 = float(input("Enter second number: "))\r\n'
 '\r\n'
 'print("Select operation")\r\n'
 'print("1. Addition")\r\n'
 'print("2. Subtraction")\r\n'
 'print("3. Multiplication")\r\n'
 'print("4. Division")\r\n'
 '\r\n'
 'choice = input("Enter choice (1/2/3/4): ")\r\n'
 '\r\n'
 "if choice == '1':\r\n"
 '    print("Result: ", num1 + num2)\r\n'
 "elif choice == '2':\r\n"
 '    print("Result: ", num1 - num2)\r\n'
 "elif choice == '3':\r\n"
 '    print("Result: ", num1 * num2)\r\n'
 "elif choice == '4':\r\n"
 '    if num2 != 0:\r\n'
 '        print("Result: ", num1 / num2)\r\n'
 'else:\r\n'
 '    print("Invalid input!")\r\n'
 '```\r\n'
 '\r\n'
 'In this program, we take two numbers as inputs from the user using `float()` '
 'function to convert them into floating point numbers. Then, we display a '
 'menu of available operations and ask the user to choose one.\r\n'
 '\r\n'
 "Based on the user's choice, we perform the corresponding arithmetic "
 'operation using conditional statements (`if`, `elif` and `else`). If the '
 'user chooses division, we also check whether the second number is not zero '
 'to avoid division by zero error.\r\n'
 '\r\n'
 'Finally, we display the result of the selected operation using `print()` '
 'statement. </s>')