SAVRN
Search Contact SAVRN

Open-weight model · Text generation

PMA-1.2

by PatriotMemory-AI patriotmemory-ai/PMA-1.2

PMA-1.2 is an open-weight model for text generation from PatriotMemory-AI, released under Apache License 2.0. It has 126M parameters and a 32,768-token context. At 16-bit it needs about 0.3 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index. It draws 506 downloads a month.

PMA-1.2 is Patriot Memory's 127.9M-parameter on-device language model. It speaks English and Traditional Chinese, answers as PMA from Patriot Memory, and fits in a 128 MB parameter budget built for edge hardware.

Parameters126M
Context32,768
Weights251.2 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads506

Runs On

What it takes to serve PMA-1.2 (126M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.3 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 7, 2026.

PMA-1.2 on every accelerator the SAVRN Index prices, at every precision

Model Card

By PatriotMemory-AI, published under apache-2.0, revision b82c422192a2.

PMA-1.2 is Patriot Memory's 127.9M-parameter on-device language model. It speaks English and Traditional Chinese, answers as PMA from Patriot Memory, and fits in a 128 MB parameter budget built for edge hardware. It is a new architecture, a new tokenizer, and an order of magnitude more training, aimed at the same job: a small, fast, honest assistant for Patriot Memory and Viper Gaming questions and general chat. It provides accurate information regarding: If you run into multi-GPU tensor device mismatch errors: Run the script with CUDAVISIBLEDEVICES=0 to isolate execution to GPU 0. trustremotecode=True is required: PMA-1.2's architecture is our own and ships as small Python files next to…

Read PatriotMemory-AI's full model card
![logo](./images/logo.png)
# Model Overview PMA-1.2 is Patriot Memory's 127.9M-parameter on-device language model. It speaks English and Traditional Chinese, answers as PMA from Patriot Memory, and fits in a 128 MB parameter budget built for edge hardware. It is a new architecture, a new tokenizer, and an order of magnitude more training, aimed at the same job: a small, fast, honest assistant for Patriot Memory and Viper Gaming questions and general chat. It provides accurate information regarding: * **DDR4 & DDR5 RAM**: Specifications, XMP 3.0 / EXPO profile support, dual-channel setups, and overclocking guidance. * **PCIe & SATA SSDs**: Gen3/Gen4/Gen5 compatibility, read/write performance specifications, and installation troubleshooting. * **Gaming Peripherals & Storage**: USB drives, flash cards, and Viper Gaming gear. * **Tool / Function Calling**: Seamless integration with backend APIs (e.g., checking warranty status, looking up technical specs via S/N).
# Architecture | Property | Specification | | :--- | :--- | | **Type** | Causal LM, dense decoder-only (PMA architecture) | | **Total parameters** | 125,592,482 | | **Hidden size / layers** | 896 x 12 | | **Attention** | GQA, 8 query heads / 4 KV heads, head_dim 112, per-head gated attention, QK-norm | | **FFN** | SwiGLU, intermediate 2,816 | | **Value residuals** | normalized cross-layer value mixing | | **Tokenizer** | custom BPE, 6,403 tokens (EN + zh-TW) | | **Embeddings** | tied input/output | | **Context** | 1,024 tokens trained (rotary table to 32K positions) | | **Precision shipped** | fp16 safetensors | ![Architecture](./images/architecture.svg) # Quickstart
pip install transformers torch accelerate
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

name = "patriotmemory-ai/PMA-1.2"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(
    name, torch_dtype=torch.float16, device_map="auto",
    trust_remote_code=True)

msgs = [{"role": "user", "content": "博帝的 Viper DDR5 支援 XMP 3.0 嗎?"}]
ids = tok.apply_chat_template(msgs, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=200)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
If you run into multi-GPU tensor device mismatch errors: RuntimeError: Expected all tensors to be on the same device... Run the script with CUDA_VISIBLE_DEVICES=0 to isolate execution to GPU 0. `trust_remote_code=True` is required: PMA-1.2's architecture is our own and ships as small Python files next to the weights. Recommended decode: temperature 0.8, top_p 0.9, repetition_penalty 1.1. Greedy decoding garbles creative text at this size; sampling does not.
# Acceptance gates (measured on the shipped checkpoint) Gates were written before training started, and every number below is from logged runs: | Gate | Result | Notes | | :--- | :--- | :--- | | Story shape (24 prompts, 2 samples) | 42/48 | the identity-attractor failure class is closed | | Number format (15 prompts, 2 samples) | 29/30 | answers contain the numeric answer; correctness at this scale is modest, format is reliable |
# What it is good at / not good at Good: answering as PMA from Patriot Memory; hardware Q&A style answers (RAM/SSD compatibility phrasing); following answer formats; bilingual EN/zh-TW chat; running on-device at consumer speed. Not: arithmetic correctness (12x15 can become 144 with total confidence), long coherent stories, knowledge outside its training mixture, and languages other than English and Traditional Chinese.
# Limitations & Responsible Use **PMA-1.2** is a probabilistic language model trained on statistical patterns. Please keep the following in mind when deploying or evaluating this model: * **Generation Risks:** The model may generate inaccurate, hallucinated, biased, or objectionable content. Outputs should always be independently verified—especially in high-stakes domain applications (e.g., medical, legal, or financial). * **Preview Release:** As an experimental preview, model behavior, outputs, and performance metrics may vary between updates and versions. * **User Responsibility:** Users and developers are responsible for implementing appropriate safety guardrails, evaluating outputs for their specific use cases, and ensuring compliance with applicable laws, regulations, and platform safety guidelines.
# Official Links Official Website: patriotmemory.com Viper Gaming: viper.patriotmemory.com Support & Warranty: patriotmemory.com/support Model Inquiries & Feedback: danton.chu hunter.wang oda.chang york.lin

# License & attribution Apache-2.0. Built by Patriot Memory (patriotmemory.com).

Configuration

Architecture
PMAForCausalLM
Context length (tokens)
32,768
Layers
12
Hidden size
896
Feed-forward size
2,816
Attention heads
8
Key/value heads
4
Head dimension
112
Vocabulary size
6,403
Experts
4
Experts active per token
1
RoPE base
1e+06
Model type
pma

Identity and Version

Repository
patriotmemory-ai/PMA-1.2
Publisher
PatriotMemory-AI
Task
Text generation
Modality
Text
Library
transformers
Parameters
126M parameters
Languages
zh, en
Revision
b82c422192a2e91ca30c1bb6b48452a56ea89eb5
First published
2026-09-21
Last updated
2026-09-30

Files and Weights

11 files, 251.5 MB in total. The weights are 1 file totalling 251.2 MB in safetensors.

Weights1 file · 251.2 MB
Configuration3 files · 20.3 KB
Tokenizer2 files · 240.9 KB
Documentation1 file · 5.0 KB
Other3 files · 30.3 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights251.2 MB 0255d31c901a
config.jsonConfiguration884 B —
generation_config.jsonConfiguration286 B —
model_pma.pyConfiguration19.1 KB —
README.mdDocumentation5.0 KB —
chat_template.jinjaOther3.9 KB —
images/architecture.svgOther7.2 KB —
images/logo.pngOther19.2 KB —
.gitattributesRepository1.5 KB —
tokenizer.jsonTokenizer227.6 KB —
tokenizer_config.jsonTokenizer13.3 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
251.2 MB
Download from PatriotMemory-AI

Released by PatriotMemory-AI through its official repository on Hugging Face. Read the license.

Memory Requirements

PrecisionWeights in memory
As published251.2 MB
16-bit0.3 GB
8-bit0.1 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About PMA-1.2

How much GPU memory does PMA-1.2 need?

About 0.3 GB at 16-bit and 0.1 GB at 4-bit: the weights (126M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run PMA-1.2 on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use PMA-1.2 commercially?

Yes. PMA-1.2 is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is PMA-1.2's context length?

32,768 tokens, from the maximum position embeddings in its published configuration.

Similar Models

This model is a custom-code derivative of AxiomicLabs/GPT-X2-125M, adapted for experimental long-context causal language modeling and architecture research. The repository includes a Hugging Face Transformers-compatible GPT-X2 implementation with optional Symplectic Metric-RoPE Governor support and training utilities built around CIxOpt, a heterogeneous optimizer developed for efficient parameter routing across large projection matrices, sensitive normalization parameters, and optional governor modules. The model is intended as a research checkpoint for compact long-context generation, positional encoding experiments, optimizer testing, and continued fine-tuning. This implementation uses a…

Open weights apache-2.0 126M parameters 32,768 tokens transformers