Downloads · 30 days
20
8% of all-time downloads
Cadododoom/Agents-A1-TextOnly-FP4
Agents-A1-TextOnly-FP4 is a machine learning model from Cadododoom. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is an optimized, hardware-accelerated 4-bit FP4 quantization of InternScience/Agents-A1 (a 35B parameter Mixture-of-Experts agentic model with hybrid Mamba-Attention layers and 2M context length) with pruned voca…
Downloads · 30 days
20
8% of all-time downloads
All-time downloads
246
Public
Parameters
18.3B
33 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors21.1 GB · 100%
How the weights are stored.
U816.8B · 84%
From the Hugging Face model README
This is an optimized, hardware-accelerated 4-bit FP4 quantization of InternScience/Agents-A1 (a 35B parameter Mixture-of-Experts agentic model with hybrid Mamba-Attention layers and 2M context length) with pruned vocabulary and tuned prefill settings for extreme context capacity.
This optimized checkpoint was created by pruning the multimodal vision encoder and excluding the grafted Multi-Token Prediction (MTP) weights to drastically reduce the VRAM footprint, and then slicing the vocabulary size from 248,320 down to 152,064 tokens (mapping away unused visual/coordinate tokens).
It is designed to be served natively under vLLM V1 with FP8 KV cache support.
model.visual.) and skipped the MTP heads (model_mtp.safetensors), saving 2.0 GB of VRAM during execution.152,064 (standard Qwen-2.5-Text vocab scale) by mapping away 96,256 unused vision/coordinate tokens. This saved ~370 MiB of weight VRAM per GPU.W4A16_NVFP4 block-wise schema (block size 16), ensuring full compatibility with vLLM's hardcoded Marlin FP4 group size constraint.--max-num-batched-tokens 2048, freeing significant activation memory during execution.These optimizations expand the physical KV cache capacity to 715,582 tokens (a +17.2% capacity gain over standard configurations), enabling stable long-context execution:
| Concurrency | Prompt Size | Avg TTFT | Avg Decode/Agent | Pure Decode Throughput | Overall Throughput |
|---|---|---|---|---|---|
| 8 | 25,000 tok | 26.43s | 46.58 tok/s | 245.78 tok/s | 214.92 tok/s |
| 16 | 25,000 tok | 23.90s | 28.70 tok/s | 316.41 tok/s | 304.98 tok/s |
| 32 | 15,000 tok | 50.89s | 22.30 tok/s | 435.74 tok/s | 396.64 tok/s |
vllm serve Cadododoom/Agents-A1-TextOnly-FP4 \
--tensor-parallel-size 2 \
--quantization compressed-tensors \
--compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY"}' \
--kv-cache-dtype fp8 \
--attention-backend flashinfer \
--mamba-cache-mode align \
--max-model-len 256000 \
--max-num-batched-tokens 2048 \
--swap-space 16 \
--trust-remote-code