Skip to main content

duplexjev-vllm

vLLM plugin for DuplexJev speech-decision models, such as adventists-ai/DuplexJev-4B-Para.

pip install "vllm[audio]>=0.29" "duplexjev-vllm>=0.4"
vllm serve adventists-ai/DuplexJev-4B-Para --max-model-len 4096

The plugin registers the architectures DuplexJevForConditionalGeneration (all Qwen-based DuplexJev models: 32B-Para, 4B-Para, …) and, since 0.2.0, DuplexJevGemmaForConditionalGeneration (DuplexJev-Gemma-31B: audio embeddings scaled ×3 and wrapped in Gemma's <|audio> … <audio|> markers), and since 0.3.0 DuplexJevVisionForConditionalGeneration (DuplexJev-32B-Vision, speech and an image in one request; see below) through vLLM's vllm.general_plugins entry point, so nothing needs to be imported by hand. It adds the Qwen3-ASR audio encoder and the matching preprocessing (128-bin log-mel, clips padded to whole audio tokens) to vLLM's Ultravox implementation; the connector and the LLM run on vLLM's own code.

Each question is one request with max_tokens=1; the answer is the next-token distribution over the option letters. A client that asks several questions about one clip concurrently is in examples/vllm_client.py.

Full-length audio tokens (0.4.0)

The Qwen3-ASR encoder emits 13 frames per second (100 mel frames), i.e. 6.5 audio tokens per second after stacking. Up to 0.3.x the plugin counted ceil(mel_frames / 16) tokens, 6.25 per second, so the last ~4 % of every 30 s chunk was dropped. Checkpoints trained on the true length (DuplexJev-32B-Para v1.5+) carry "audio_full_length": true in config.json; 0.4.0 reads it and feeds the whole clip. Older checkpoints keep the old count, so their behaviour does not change. DJ_FULL_LEN=1 / DJ_FULL_LEN=0 force either count for any checkpoint.

Speech + image (DuplexJev-32B-Vision, 0.3.0)

vllm serve adventists-ai/DuplexJev-32B-Vision --max-model-len 8192 \
  --limit-mm-per-prompt '{"image": 1, "audio": 1, "video": 0}'

vLLM's Qwen3-VL implementation plus the DuplexJev audio encoder and connector (loaded from audio/ in the checkpoint). In a chat request, put <|audio|> in the text where the speech goes, an image_url part where the picture goes, and the clip as an input_audio part. Audio tokens take plain text positions in Qwen3-VL's 3-D RoPE, as in training. Client: examples/vllm_vision_client.py.

modeling_qwen3_asr_encoder.py is a standalone port of the Qwen3-ASR audio encoder from Hugging Face transformers (Apache-2.0, Copyright the Qwen team, Alibaba Cloud, and the HuggingFace team). The rest of this package is Apache-2.0, Copyright Adventists.ai.

Metadata

Release files for duplexjev-vllm 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for duplexjev-vllm 0.4.0
File Size Uploaded Provenance Actions
duplexjev_vllm-0.4.0.tar.gz 14.8 kB Without provenance Details for duplexjev_vllm-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for duplexjev-vllm 0.4.0
File Interpreter ABI Platform Actions
duplexjev_vllm-0.4.0-py3-none-any.whl Python 3 none any Details for duplexjev_vllm-0.4.0-py3-none-any.whl

Total release size: 31.3 kB

Release files / duplexjev_vllm-0.4.0.tar.gz

Download URL duplexjev_vllm-0.4.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9d0b9d3348ea36d722761eae04b84fef82f405d76e197c716fc548e25414ab82
BLAKE2b-256 checksum
How to use checksums
0acc3642221559d4d33b452b56e8d20224d9f9243c7184295ab46e4d026db767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / duplexjev_vllm-0.4.0-py3-none-any.whl

Download URL duplexjev_vllm-0.4.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ffbea528829f0d83e3ac6386a18511f8ea3d97306253d6bafc0fee51985afd8
BLAKE2b-256 checksum
How to use checksums
2fa2227518c497cabeaab22aae6f10e31a6d105171dcec579b9dc0c05aeccad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for duplexjev-vllm 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page