Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
text-generation-inference
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Fischerboot/9-test")
model = AutoModelForCausalLM.from_pretrained("Fischerboot/9-test")
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
merge
This is a merge of pre-trained language models created using mergekit.
Merge Details
Merge Method
This model was merged using the SLERP merge method.
Models Merged
The following models were included in the merge:
Configuration
The following YAML configuration was used to produce this model:
slices:
- sources:
- model: Fischerboot/8-test
layer_range: [0, 22]
- model: Fischerboot/8-test
layer_range: [1, 23]
merge_method: slerp
base_model: Fischerboot/8-test
parameters:
t:
- filter: self_attn
value: [0, 0.5, 0.3, 0.7, 1]
- filter: mlp
value: [1, 0.5, 0.7, 0.3, 0]
- value: 0.5
dtype: bfloat16
- Downloads last month
- 2
Model tree for Fischerboot/9-test
Base model
Fischerboot/ll3-test-3 Finetuned
Fischerboot/ll3-test-4 Finetuned
Fischerboot/ll3-test-5 Finetuned
Fischerboot/ll3-test-6 Finetuned
Fischerboot/7-test Finetuned
Fischerboot/8-test
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Fischerboot/9-test") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)