How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Natkituwu/mistral-dory-12b-4.25bpw-exl2")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Natkituwu/mistral-dory-12b-4.25bpw-exl2")
model = AutoModelForCausalLM.from_pretrained("Natkituwu/mistral-dory-12b-4.25bpw-exl2", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Configuration Parsing Warning:In config.json: "quantization_config.bits" must be an integer

4.25bpw h6 exl2 quant of : (https://huggingface.co/BeaverAI/mistral-dory-12b)

Dory 12b

redone instruct finetune of mistral nemo 12b. not (E)RP-focused, leave that to drummer.

image/gif

thanks to twisted for the compute :3

Prompting

alpaca-like:

### System:
[Optional system prompt]

### Instruction:
[Query]

### Response:
[Response]<EOT>

### Instruction:
[...]

Training details

Rank 64 QDoRA, trained on the following data mix:

Downloads last month
8
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Natkituwu/mistral-dory-12b-4.25bpw-exl2

Quantized
(81)
this model