andreasjansson / wizardcoder-python-34b-v1-gguf

WizardCoder-python-34B-v1.0 with support for grammars and jsonschema

  • Public
  • 766 runs
  • L40S
  • GitHub
  • License
  • Prediction

    andreasjansson/wizardcoder-python-34b-v1-gguf:b357a162acd41ce53c04b14a25df0f1d476c2e39d465895d28cdba87944506c6
    ID
    s5oeuzlb6ij36miihdoy4mnj34
    Status
    Succeeded
    Source
    Web
    Hardware
    A40 (Large)
    Total duration
    Created

    Input

    top_k
    10
    top_p
    0.95
    prompt
    Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Write a short program that counts the number of occurrences of a character in a string. ### Response:
    grammar
    root ::= "```python\ndef num_occurrences(c: str, s: str) -> int:\n " code "```" code ::= [^`()]+
    max_tokens
    500
    temperature
    0.8
    mirostat_mode
    Disabled
    repeat_penalty
    1.1
    mirostat_entropy
    5
    presence_penalty
    0
    frequency_penalty
    0
    mirostat_learning_rate
    0.1

    Output

    ```python def num_occurrences(c: str, s: str) -> int: """Counts the number of occurrences of a character c in a string s.""" count = 0 for char in s: if char == c: count += 1 return count ```
    Generated in
  • Prediction

    andreasjansson/wizardcoder-python-34b-v1-gguf:b357a162acd41ce53c04b14a25df0f1d476c2e39d465895d28cdba87944506c6
    ID
    rlnwn6dbidyjpx4qfiizgqcd2u
    Status
    Succeeded
    Source
    Web
    Hardware
    A40 (Large)
    Total duration
    Created

    Input

    top_k
    10
    top_p
    0.95
    prompt
    Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Send a email from andreas86@telia.se to myfriend@telia.se where you discuss the weather. In the body, describe the current weather in Stockholm as detailed as possible. Respond with json that adheres to the following jsonschema: {jsonschema} ### Response:
    grammar
     
    jsonschema
    { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "from": { "type": "string", "format": "email", "description": "The email address of the sender." }, "to": { "type": "array", "items": { "type": "string", "format": "email" }, "description": "An array of email addresses to send the email to." }, "cc": { "type": "array", "items": { "type": "string", "format": "email" }, "description": "An array of email addresses to be included in the CC field." }, "bcc": { "type": "array", "items": { "type": "string", "format": "email" }, "description": "An array of email addresses to be included in the BCC field." }, "subject": { "type": "string", "description": "The subject of the email." }, "body": { "type": "string", "description": "The body text of the email." } }, "required": ["from", "to", "subject", "body"], "additionalProperties": false }
    max_tokens
    500
    temperature
    0.8
    mirostat_mode
    Disabled
    repeat_penalty
    1.1
    mirostat_entropy
    5
    presence_penalty
    0
    frequency_penalty
    0
    mirostat_learning_rate
    0.1

    Output

    {"bcc": [],"body": "Hello myfriend,\n\nIt is currently raining in Stockholm and the temperature is around 15 degrees Celsius. The wind is strong and the sky is overcast, but it won't last long as we are expecting sunny weather this weekend. It is a good day for a picnic or a walk in the park!\n\nRegards,\nAndreas","cc": [],"from": "andreas86@telia.se","subject": "Weather Update from Stockholm","to": ["myfriend@telia.se"]}
    Generated in

Want to make some of these yourself?

Run this model