Parallax-Experiment
Collection
Experimental Parallax (Parameterized Local Linear Attention) models. • 2 items • Updated
How to use YifeiZuo/Parallax-0.6B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="YifeiZuo/Parallax-0.6B", trust_remote_code=True)
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("YifeiZuo/Parallax-0.6B", trust_remote_code=True, device_map="auto")How to use YifeiZuo/Parallax-0.6B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "YifeiZuo/Parallax-0.6B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "YifeiZuo/Parallax-0.6B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/YifeiZuo/Parallax-0.6B
How to use YifeiZuo/Parallax-0.6B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "YifeiZuo/Parallax-0.6B" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "YifeiZuo/Parallax-0.6B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "YifeiZuo/Parallax-0.6B" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "YifeiZuo/Parallax-0.6B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use YifeiZuo/Parallax-0.6B with Docker Model Runner:
docker model run hf.co/YifeiZuo/Parallax-0.6B
Parallax (Parameterized Local Linear Attention) is an experimental language model
that reuses the Qwen3 architecture but replaces softmax self-attention with the
parallax op (attn_type="parallax"). This is the 0.6B-parameter model.
Reference: https://arxiv.org/abs/2605.29157
| Parameters | ~0.6B |
| Layers | 28 |
| Hidden size | 1024 |
| Intermediate size | 3072 |
| Attention heads | 16 (8 KV heads, GQA) |
| Head dim | 128 |
| Vocab size | 151936 |
| Max sequence length | 4096 |
| Attention | parallax (attn_type="parallax") |
| Tokenizer | Qwen3 |
The model ships custom modeling code, so load it with trust_remote_code=True
(requires a recent transformers with Qwen3 support):
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "YifeiZuo/Parallax-0.6B"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
prompt = "The quick brown fox"
ids = tok(prompt, return_tensors="pt").input_ids
out = model.generate(ids, max_new_tokens=32)
print(tok.decode(out[0], skip_special_tokens=True))
Released under the Apache 2.0 license.