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="PARTAGES-dev/Qwen3-4B-PDAPT-SLERP")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("PARTAGES-dev/Qwen3-4B-PDAPT-SLERP")
model = AutoModelForCausalLM.from_pretrained("PARTAGES-dev/Qwen3-4B-PDAPT-SLERP")
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

Qwen3-4B-PDAPT-SLERP

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:

  • Qwen/Qwen3-4B-Base
  • Qwen3-4B-Base-PARTAGES-v2-1440

Configuration

The following YAML configuration was used to produce this model:

slices:
  - sources:
    - model: Qwen/Qwen3-4B-Base
      layer_range: [0, 36]
    - model: [ANON]
      layer_range: [0, 36]
merge_method: slerp
base_model: Qwen/Qwen3-4B-Base
parameters:
  t:
    - value: 0.5
dtype: bfloat16
Downloads last month
47
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
Input a message to start chatting with PARTAGES-dev/Qwen3-4B-PDAPT-SLERP.

Collection including PARTAGES-dev/Qwen3-4B-PDAPT-SLERP