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="grimjim/Mistral-Starling-merge-trial1-7B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("grimjim/Mistral-Starling-merge-trial1-7B")
model = AutoModelForCausalLM.from_pretrained("grimjim/Mistral-Starling-merge-trial1-7B", 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

Mistral-Starling-merge-trial1-7B

This is a merge of pre-trained language models created using mergekit. The goal was to combine strong reasoning with 32K context length.

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: grimjim/Mistral-7B-Instruct-demi-merge-v0.2-7B
        layer_range: [0, 32]
      - model: Nexusflow/Starling-LM-7B-beta
        layer_range: [0, 32]
# or, the equivalent models: syntax:
# models:
merge_method: slerp
base_model: grimjim/Mistral-7B-Instruct-demi-merge-v0.2-7B
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 # fallback for rest of tensors
dtype: bfloat16
Downloads last month
68
Safetensors
Model size
7B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for grimjim/Mistral-Starling-merge-trial1-7B

Spaces using grimjim/Mistral-Starling-merge-trial1-7B 15

Collection including grimjim/Mistral-Starling-merge-trial1-7B