Downloads · 30 days
10
14% of all-time downloads
p4b/qwen3.5-4b-chunky
qwen3.5-4b-chunky is a text generation model from p4b. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Bitext chunk-alignment model. Given a source/target pair pre-segmented with numbered split markers [|i|], it predicts the cumulative split points at which the two sides stay mutually aligned — and omits spans that are…
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
69
Public
Parameters
4.5B
17.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.1 GB · 100%
From the Hugging Face model README
Bitext chunk-alignment model. Given a source/target pair pre-segmented with
numbered split markers [|i|], it predicts the cumulative split points at which the
two sides stay mutually aligned — and omits spans that are one-sided (untranslated /
noise).
Full-precision (bf16) weights.
Input:
<src>First sentence.[|1|]Second sentence.[|2|]Third.[|3|]</src><tgt>첫 문장.[|1|]두 번째 문장.[|2|]세 번째.[|3|]</tgt>
Output — cumulative SourceIndex-TargetIndex boundary pairs:
<answer>1-1, 2-2, 3-3</answer>
This is a text model. It is packaged in the Qwen3_5ForConditionalGeneration
layout (the original vision tower is bundled unused) so it loads in both Hugging Face
Transformers and vLLM; no images are involved.
vllm serve p4b/qwen3.5-4b-chunky --language-model-only --mamba-cache-mode=align
--language-model-only skips the (unused) vision tower; --mamba-cache-mode=align
is required by the Qwen3.5 hybrid linear-attention layers.
from transformers import AutoModelForImageTextToText, AutoTokenizer
tok = AutoTokenizer.from_pretrained("p4b/qwen3.5-4b-chunky")
model = AutoModelForImageTextToText.from_pretrained("p4b/qwen3.5-4b-chunky", device_map="auto")
msgs = [{"role": "user", "content": PROMPT + text}] # text = the <src>...</tgt> block
enc = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True)
out = model.generate(input_ids=enc["input_ids"].to(model.device), max_new_tokens=128)
print(tok.decode(out[0, enc["input_ids"].shape[1]:], skip_special_tokens=True))
Apache-2.0.