andreasjansson/wizardcoder-python-34b-v1-gguf 🔢📝❓ → 📝
About
WizardCoder-python-34B-v1.0 with support for grammars and jsonschema

Example Output
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:
"Output
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
Performance Metrics
3.99s
Prediction Time
3.90s
Total Time
All Input Parameters
{ "top_k": 10, "top_p": 0.95, "prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\nWrite a short program that counts the number of occurrences of a character in a string.\n\n### Response:", "grammar": "root ::= \"```python\\ndef num_occurrences(c: str, s: str) -> int:\\n \" code \"```\"\ncode ::= [^`()]+", "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 }
Input Parameters
- top_k
- Top K
- top_p
- Top P
- prompt (required)
- Prompt
- grammar
- Grammar in GBNF format. Use either grammar or jsonschema.
- jsonschema
- JSON schema for the generated output. Use either grammar or jsonschema.
- max_tokens
- Max number of tokens to return
- temperature
- Temperature
- mirostat_mode
- Mirostat sampling mode
- repeat_penalty
- Repetition penalty
- mirostat_entropy
- Mirostat target entropy
- presence_penalty
- Presence
- frequency_penalty
- Frequency penalty
- mirostat_learning_rate
- Mirostat learning rate, if mirostat_mode is not Disabled
Output Schema
Output
Example Execution Logs
from_string grammar: root ::= [`] [`] [`] [p] [y] [t] [h] [o] [n] [<U+000A>] [d] [e] [f] [ ] [n] [u] [m] [_] [o] [c] [c] [u] [r] [r] [e] [n] [c] [e] [s] [(] [c] [:] [ ] [s] [t] [r] [,] [ ] [s] [:] [ ] [s] [t] [r] [)] [ ] [-] [>] [ ] [i] [n] [t] [:] [<U+000A>] [ ] [ ] [ ] [ ] code [`] [`] [`] code ::= code_2 code_2 ::= [^`()] code_2 | [^`()] 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: Llama.generate: prefix-match hit llama_print_timings: load time = 323.93 ms llama_print_timings: sample time = 644.67 ms / 74 runs ( 8.71 ms per token, 114.79 tokens per second) llama_print_timings: prompt eval time = 0.00 ms / 1 tokens ( 0.00 ms per token, inf tokens per second) llama_print_timings: eval time = 3161.00 ms / 74 runs ( 42.72 ms per token, 23.41 tokens per second) llama_print_timings: total time = 3983.35 ms
Version Details
- Version ID
efd89f8301f7f5cdad054cbb63139c894ef64ea96dbc12b4c82a2c0c720430f8
- Version Created
- September 22, 2023