Downloads · 30 days
4
12% of all-time downloads
PumpkinCat/Qwen3-8B-FPA
Qwen3-8B-FPA is a machine learning model from PumpkinCat. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This folder contains the converted Hugging Face safetensors checkpoint plus the tokenizer with the added communication token <|comm|.
Downloads · 30 days
4
12% of all-time downloads
All-time downloads
33
Public
Parameters
8.2B
16.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
This folder contains the converted Hugging Face safetensors checkpoint plus the
tokenizer with the added communication token <|comm|>.
Important: do not use plain AutoModelForCausalLM.generate() if you want the
AR-FPA behavior. Plain Hugging Face generation will load the weights with normal
causal attention and will not insert communication tokens.
Use ar_fpa_generate.py, which:
transformers.AutoModelForCausalLM<|comm|> tokens into each AR-FPA blockInstall the normal Hugging Face/PyTorch dependencies:
pip install -r requirements-ar-fpa.txt
No nemo_automodel / Automodel repository is required for inference. The
standalone AR-FPA model definition and kernel are included in
modeling_qwen3_ar_fpa.py.
CUDA_VISIBLE_DEVICES=0 python ar_fpa_generate.py \
--model-dir /path/to/qwen_ar_fpa_cpt_inference_package \
--prompt "Explain why antibiotics do not work against viral infections." \
--max-new-tokens 128
You can also load the model directly with Hugging Face remote code:
from transformers import AutoModelForCausalLM, AutoTokenizer
path = "/path/to/qwen_ar_fpa_cpt_inference_package"
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(path, trust_remote_code=True, torch_dtype="auto").cuda()
For correct AR-FPA generation you still need to insert communication tokens.
ar_fpa_generate.py provides that wrapper.
The checkpoint was trained/evaluated with:
{
"attention": "ar_fpa",
"block_size": 128,
"num_comm_tokens": 4,
"comm_token": "<|comm|>",
"max_seq_length": 4096
}
The tokenizer contains <|comm|> at id 151669. The checkpoint embedding
matrix is padded to vocab size 151936; this is expected.