Downloads · 30 days
12
7% of all-time downloads
dark-pen/apodex-1.0-4B-SFT-rebased
apodex-1.0-4B-SFT-rebased is a image-text-to-text model from dark-pen. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
apodex-1.0-4B-SFT-rebased is a merge of the following models using LazyMergekit:
Downloads · 30 days
12
7% of all-time downloads
All-time downloads
162
Public
Parameters
4.5B
18.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors18.2 GB · 100%
From the Hugging Face model README
apodex-1.0-4B-SFT-rebased is a merge of the following models using LazyMergekit:
models:
- model: Qwen/Qwen3.5-4B-Base
- model: apodex/Apodex-1.0-4B-SFT
merge_method: arcee_fusion
base_model: Qwen/Qwen3.5-4B-Base
dtype: bfloat16
!pip install -qU transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "dark-pen/apodex-1.0-4B-SFT-rebased"
messages = [{"role": "user", "content": "What is a large language model?"}]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
"text-generation",
model=model,
device_map="auto",
)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])