Text Generation
Transformers
Safetensors
mistral
mergekit
Merge
conversational
text-generation-inference
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("DoppelReflEx/DansPreConfig-24B")
model = AutoModelForCausalLM.from_pretrained("DoppelReflEx/DansPreConfig-24B")
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
What is this?
A experiment merge of PocketDoc/Dans-PersonalityEngine-V1.2.0-24b and PocketDoc/Dans-PersonalityEngine-V1.3.0-24b. I like ChatML format more just because I'm lazy, so I try to make this.
Configuration
The following YAML configuration was used to produce this model:
models:
- model: PocketDoc/Dans-PersonalityEngine-V1.2.0-24b
- model: PocketDoc/Dans-PersonalityEngine-V1.3.0-24b
parameters:
density: 0.8
weight: 0.8
merge_method: ties
base_model: PocketDoc/Dans-PersonalityEngine-V1.2.0-24b
dtype: bfloat16
- Downloads last month
- 5
Model tree for DoppelReflEx/DansPreConfig-24B
Merge model
this model
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DoppelReflEx/DansPreConfig-24B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)