Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models
Paper • 2601.07372 • Published • 51
How to use SnifferCaptain/ymodel3.1-200m-pt with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="SnifferCaptain/ymodel3.1-200m-pt", trust_remote_code=True)
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("SnifferCaptain/ymodel3.1-200m-pt", trust_remote_code=True, device_map="auto")How to use SnifferCaptain/ymodel3.1-200m-pt with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "SnifferCaptain/ymodel3.1-200m-pt"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "SnifferCaptain/ymodel3.1-200m-pt",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/SnifferCaptain/ymodel3.1-200m-pt
How to use SnifferCaptain/ymodel3.1-200m-pt with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "SnifferCaptain/ymodel3.1-200m-pt" \
--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": "SnifferCaptain/ymodel3.1-200m-pt",
"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 "SnifferCaptain/ymodel3.1-200m-pt" \
--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": "SnifferCaptain/ymodel3.1-200m-pt",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use SnifferCaptain/ymodel3.1-200m-pt with Docker Model Runner:
docker model run hf.co/SnifferCaptain/ymodel3.1-200m-pt
ymodel3.1-200M是SnifferCaptain训练的到目前为止(7/7/2026)最新、最大的语言模型。采用ynet3.1架构,在ymodel3所使用的ynet3架构上添加了Sengram记忆模块,其模型容量上相比上一代架构有一定的提升。
| 键 | 值 |
|---|---|
| 架构 | YModel3.1 |
| 参数数量 | 210.22M |
| 层数 | 12 |
| 隐藏层维度 | 768 |
| 词表大小 | 6400 |
| 注意力头数 | 8 |
| 注意力头维度 | 192 |
| KV嵌入维度 | 256 |
| RoPE嵌入维度 | 64 |
| FFN激活函数 | SwiGLU |
| FFN中间层大小 | 2048 |
| 归一化 | RMSNorm + SEBlock |
| 注意力机制 | MLGA |
| Sengram桶大小 | 8192 |
| Sengram选择数量 | 8 |
| Sengram评分函数 | Softmax |
| 数据类型 | bfloat16 |