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="Envoid/Dendrite-8x7Bv1")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Envoid/Dendrite-8x7Bv1")
model = AutoModelForCausalLM.from_pretrained("Envoid/Dendrite-8x7Bv1")
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

This is my first attempt at a qLoRA on Mixtral using the same raw text dataset as the Dendrite model on Mixtral 8x7B Instruct v0.1 with the following notable settings:

lora_r 256
lora_alpha 256
..._max_len 256
learning_rate 0.000001
num_train_epochs 2

The output is a little less dry but it still maintains the full level of functionality you would expect out of Mixtral instruct. And it still responds to the

[INST]
Do a thing
[/INST]

format. It's not a massive change in the output but I do plan to run a similar but larger data set with more epochs and a higher learning rate.

Downloads last month
8
Safetensors
Model size
47B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Envoid/Dendrite-8x7Bv1

Quantizations
2 models