/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
Qwen3.5-4B
Библиотека
llama.cpp
Опубликована
22 окт 2026

Paraphase-4B-Adapter-Pack

Генерация текстаТекст → текст8 профессий

Набор LoRA-адаптеров на базе Qwen3.5-4B для переписывания текста и извлечения структурированных данных из писем.

176скачиваний за 30 дней1лайквеса обновлены24 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Paraphase-4B Adapter Pack — набор адаптеров LoRA для Qwen3.5-4B, разработанный автором репозитория chadstthomas. Он предназначен для переписывания текста и извлечения структурированных данных из писем; в README также описана узкая эвристическая защита вызова инструмента отправки почты, но соответствующий LoRA-адаптер исключён из набора. Для запуска адаптеров требуется исходная базовая модель Qwen3.5-4B; для отдельного адаптера извлечения на 2 млрд параметров нужна MiniCPM5-2B.

Набор включает файлы GGUF и поддерживает работу с llama.cpp, а для адаптера также описана загрузка через PEFT и Transformers. Извлечение формирует JSON с полями, включая даты, суммы и действия; на тесте из 50 писем AESLC адаптер повысил точное совпадение и micro F1 относительно базовой модели, однако метки получены эвристическим разметчиком, а не людьми. Это английский сценарий обработки писем. Лицензия — Apache-2.0.

Сценарии применения

  • переписывание и перефразирование текста
  • извлечение дат, сумм и задач из писем в JSON
  • подготовка структурированных данных из деловой переписки
  • локальный запуск адаптеров для обработки электронной почты

Ограничения

Метрики извлечения рассчитаны по regex-разметке на небольшом наборе из 50 писем и не отражают человеческую оценку качества. Защита вызова инструмента исправляет только один конкретный случай путаницы между отправкой письма и поиском адреса контакта.

Для каких профессий подходит8

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Paraphase-4B Adapter Pack — rewrite + extraction LoRAs

One raw Qwen3.5-4B base, task LoRAs, and one measured tool guard. This is the multi-task companion to Paraphase-4B, which is the merged humanizer release.

Use the raw base here for adapters. The paraphase-4b-Q8_0.gguf in the main repo is the merged rewrite model; it is not the adapter base. The raw qwen3.5-4b-Q8_0.gguf in this pack is the base the 4B LoRAs were trained on. The 2B extraction LoRA applies to raw openbmb/MiniCPM5-2B (see below).

Quick start

# extraction (4B)
llama-server -m qwen3.5-4b-Q8_0.gguf \
  --lora gguf/paraphase-4b-extract-lora.gguf -c 2048

# rewrite (4B)
llama-server -m qwen3.5-4b-Q8_0.gguf \
  --lora gguf/paraphase-4b-rewrite-lora.gguf -c 2048

# extraction (2B, on-device tier; official MiniCPM5-2B GGUF)
llama-server -m MiniCPM5-2B-Q8_0.gguf \
  --lora gguf/paraphase-2b-extract-lora.gguf -c 2048

# tool calls: base only; apply toolguard.py to the returned calls
llama-server -m qwen3.5-4b-Q8_0.gguf -c 2048

Send "chat_template_kwargs": {"enable_thinking": false} with Qwen3.5 requests; otherwise the template starts with a thinking preamble.

What is measured

Extraction adapter (the win)

Frozen test: 50 real AESLC validation emails, disjoint from training. Labels are deterministic regex spans; this measures agreement with that labeler, not human-judged extraction. Labeler v2 (2026-10-23): amount spans now include magnitude words ($12 million, 1.2 million dollars, $12k), fixing the one flaw in v1 — same 50 emails, re-labeled; the shipped adapters are trained on v2 labels and measured on extract_smoke.v2.

metricraw Q8 base+ extract LoRA
JSON valid1.001.00
exact match0.120.40
micro F10.5220.674
date F10.4070.868
amount F10.7300.722
action-item F10.5220.658
empty-row accuracy0.400.80
non-empty recall0.7560.889

The adapter raises exact match from 6/50 to 20/50 and doubles date F1. Under v2 labels amount F1 becomes meaningful for the first time: the raw base is already strong on amounts (0.730) and the adapter holds it (0.722) while gaining everywhere else. Only 4/50 test emails contain amounts, so the amount row still carries less weight than dates/actions. The v1 numbers (exact 0.42, micro 0.670 on extract_smoke.v1) remain on record in the project docs.

2B extraction adapter (on-device tier)

Same recipe on raw openbmb/MiniCPM5-2B (150 steps, ~2 minutes of training, peak 6.49 GiB), trained and measured on the same v2 labels — at one-third the download (2B Q8 1.4 GB + 50 MB LoRA):

metric2B base2B + extract LoRA4B + extract LoRA (reference)
JSON valid0.961.001.00
exact match0.140.340.40
micro F10.2770.6310.674
date F10.3130.8060.868
amount F10.4380.7660.722
action F10.2720.6140.658
non-empty recall0.3780.8670.889

Base GGUF: openbmb/MiniCPM5-2B-GGUF (MiniCPM5-2B-Q8_0.gguf). MiniCPM5 has no thinking preamble, so no enable_thinking flag is needed.

Tool path (base + guard)

Frozen 20-item tool-call smoke:

candidateaccuracy
raw Q8 base0.70
raw base + toolguard.py0.75
tool LoRA (withdrawn)0.65

The tool LoRA fixed one wrong-tool case but made two web-search queries more verbose, so it is not included. The guard is a narrow deterministic fix: when a request starts with Email/Send, contains an explicit address, and the model chose get_contact_email, it converts the call to send_email with the parsed to/subject/body. It changes exactly one frozen item and never touches web search or no-tool cases.

Rewrite adapter

The rewrite LoRA is the adapter merged into Paraphase-4B. The main model card has the voice50 and Pangram evidence: 50/50 valid, fact fidelity 0.970, copy reuse 0.260 with the retry policy, tell rate 0.08.

Files

filesizenotes
qwen3.5-4b-Q8_0.gguf4.3 GBraw Qwen3.5-4B base; Q8_0
gguf/paraphase-4b-extract-lora.gguf42.5 MBextraction adapter, llama.cpp
gguf/paraphase-4b-rewrite-lora.gguf42.5 MBrewrite adapter, llama.cpp
gguf/paraphase-2b-extract-lora.gguf50.3 MB2B extraction adapter (base: openbmb/MiniCPM5-2B)
peft/rewrite/85 MBPEFT adapter for transformers
peft/extract/85 MBPEFT adapter for transformers
peft/extract-2b/101 MBPEFT 2B extraction adapter
toolguard.py3 KBnarrow send/contact guard
task-adapter-manifest.json2 KBhashes, sizes, measured endpoints
LICENSEApache-2.0inherited from Qwen3.5-4B

Extraction prompt

System:

You extract structured data from email. Return only valid JSON.

User:

Extract the dates and times, money amounts, and action items from the email.
Return only a JSON object with keys "dates", "amounts", and "action_items".
Dates and amounts must be strings copied exactly from the email.
Each action item is the sentence that states a request or task.
Use [] when a field has none.

EMAIL:
<subject and body>

The adapter returns JSON such as:

{"dates": ["Thursday", "3pm", "Friday"], "amounts": ["1,240 dollars"], "action_items": ["Please send the signed copy by Friday."]}

Tool guard

from toolguard import guard_tool_call

calls, changed = guard_tool_call(user_text, model_tool_calls)

The guard only handles the explicit-address send/contact confusion. It is not a general tool router and it does not repair arbitrary argument errors.

PEFT / transformers

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base = "Qwen/Qwen3.5-4B"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, device_map="auto")
model = PeftModel.from_pretrained(model, "peft/extract")

Load the base in bf16 or 4-bit; the adapter is r=16, alpha=32.

Reproduce

# raw base
python convert_hf_to_gguf.py <Qwen3.5-4B snapshot> \
  --outfile qwen3.5-4b-Q8_0.gguf --outtype q8_0

# extraction: 427 train / 48 val AESLC, 150 steps
PYTHONPATH=. python scripts/train_task_adapter.py --task extract \
  --data data/processed/extract_v1/train.jsonl \
  --out data/checkpoints/extract-adapter --steps 150

# extraction eval
PYTHONPATH=. python scripts/eval_extract.py \
  --gguf qwen3.5-4b-Q8_0.gguf \
  --lora gguf/paraphase-4b-extract-lora.gguf --tag extract-adapter

# tool guard (stored base outputs, no model call)
PYTHONPATH=. python scripts/eval_tool_guard.py

The full route and data provenance are summarized in task-adapter-manifest.json and the main Paraphase-4B card.

Limitations

  • Extraction labels are regex-derived, not human annotations. Amount F1 is low-confidence; dates and action items carry the result.
  • Action-item labels are heuristic sentences; the adapter can beat or lose to the labeler for reasons unrelated to extraction quality.
  • The tool guard fixes one demonstrated case; the strict tool instrument is mostly a query-phrasing test.
  • One LoRA per llama-server process; adapter hot-swapping is not implemented.
  • No detector was used for these adapters. Pangram evidence belongs to the rewrite model, not the extraction task.

License

Apache-2.0, inherited from Qwen3.5-4B. The base model is Qwen/Qwen3.5-4B.

Links

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · llama.cpp

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
c39cf6d

0 моделей