Downloads · 30 days
0
snphs/dolly-v2-12b-q4
dolly-v2-12b-q4 is a text generation model from snphs. Use it when you need the model to write or continue text. The card lists the license as mit.
dolly-v2-12b converted to GGML format and quantized to 4-bit using https://github.com/NolanoOrg/cformers.
Downloads · 30 days
0
Access
Public
Updated Apr 15, 2023
Repo size
7.4 GB
Likes
13
Public
Click a slice to open those files.
.bin7.4 GB · 100%
From the Hugging Face model README
dolly-v2-12b converted to GGML format and quantized to 4-bit using https://github.com/NolanoOrg/cformers.
This fork has the modification that includes Dolly in the model list.
from interface import AutoInference as AI
ai = AI("databricks/dolly-v2-12b")
prompt_template = """Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{instruction}
### Response:
"""
instruction = "Explain to me the difference between nuclear fission and fusion."
x = ai.generate(prompt_template.format(instruction=instruction), num_tokens_to_generate=100)
print(x['token_str'])