Merge Experiments
Collection
Sorted from oldest (top) to newest (bottom) • 158 items • Updated • 4
How to use Naphula/Promethean-Dawn-26B-A4B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="Naphula/Promethean-Dawn-26B-A4B")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
pipe(text=messages) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("Naphula/Promethean-Dawn-26B-A4B")
model = AutoModelForMultimodalLM.from_pretrained("Naphula/Promethean-Dawn-26B-A4B", device_map="auto")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
inputs = processor.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=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use Naphula/Promethean-Dawn-26B-A4B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Naphula/Promethean-Dawn-26B-A4B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Naphula/Promethean-Dawn-26B-A4B",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe this image in one sentence."
},
{
"type": "image_url",
"image_url": {
"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
}
}
]
}
]
}'docker model run hf.co/Naphula/Promethean-Dawn-26B-A4B
How to use Naphula/Promethean-Dawn-26B-A4B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Naphula/Promethean-Dawn-26B-A4B" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Naphula/Promethean-Dawn-26B-A4B",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe this image in one sentence."
},
{
"type": "image_url",
"image_url": {
"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
}
}
]
}
]
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "Naphula/Promethean-Dawn-26B-A4B" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Naphula/Promethean-Dawn-26B-A4B",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe this image in one sentence."
},
{
"type": "image_url",
"image_url": {
"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
}
}
]
}
]
}'How to use Naphula/Promethean-Dawn-26B-A4B with Docker Model Runner:
docker model run hf.co/Naphula/Promethean-Dawn-26B-A4B
This is a merge of pre-trained language models created using mergekit-exp.
This model was merged using the moe_della merge method, and combines every ReadyArt 26B model.
architecture: Gemma4ForConditionalGeneration
base_model: B:\26B\google--gemma-4-26B-A4B-it
models:
- model: B:\26B\ReadyArt--Dark-Scarlett-v1.0-26B-A4B
parameters:
weight:
- filter: "lm_head"
value: 1.0
- filter: "attn"
value: 1.0
- filter: "embed_tokens"
value: 1.0
- value: 1.0
density: 0.9
epsilon: 0.09
- model: B:\26B\ReadyArt--For-Her-Darkside-26B-A4B-v1.4
parameters:
weight:
- filter: "lm_head"
value: 1.0
- filter: "attn"
value: 1.0
- filter: "embed_tokens"
value: 1.0
- value: 1.0
density: 0.9
epsilon: 0.09
- model: B:\26B\ReadyArt--Heimdallr-26B-A4B-v0.35-Q8_0
parameters:
weight:
- filter: "lm_head"
value: 1.0
- filter: "attn"
value: 1.0
- filter: "embed_tokens"
value: 1.0
- value: 1.0
density: 0.9
epsilon: 0.09
- model: B:\26B\ReadyArt--Melody1437-26B-A4B-v2.0
parameters:
weight:
- filter: "lm_head"
value: 1.0
- filter: "attn"
value: 1.0
- filter: "embed_tokens"
value: 1.0
- value: 1.0
density: 0.9
epsilon: 0.09
- model: B:\26B\ReadyArt--Omega-Evolution-26B-A4B-v3.0-Q8_0
parameters:
weight:
- filter: "lm_head"
value: 1.0
- filter: "attn"
value: 1.0
- filter: "embed_tokens"
value: 1.0
- value: 1.0
density: 0.9
epsilon: 0.09
- model: B:\26B\ReadyArt--Serenity-26B-A4B
parameters:
weight:
- filter: "lm_head"
value: 1.0
- filter: "attn"
value: 1.0
- filter: "embed_tokens"
value: 1.0
- value: 1.0
density: 0.9
epsilon: 0.09
merge_method: moe_della
parameters:
lambda: 1.0
# normalize: true # deprecated
normalize_weights: true
normalize_router: true
int8_mask: false
rescale: true
router_strategy: della # average # random_init
blend_experts: true
dtype: float32
out_dtype: bfloat16
tokenizer:
source: union
chat_template: auto
name: 🌑 Promethean Dawn 26B-A4B