alt.freeweights.text / Hy-Memory-30B-A3B-4bit
From: mlx-community <huggingface.co/mlx-community>Newsgroups: alt.freeweights.textSubject:

Hy-Memory-30B-A3B-4bit

Date: 2026-11-15Commit: 65eb23eSigned: 2DC28CC7B26A283B ✓

Text generation model with 30.1B parameters. Safetensors weights, 16.9 GB in all. Published by mlx-community under Apache-2.0.

30.1B params16.9GBHy-Memory-30B-A3B-4bitsafetensorspermissive
FactsParams30.1BSize16.9 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get mlx-community/Hy-Memory-30B-A3B-4bit
# manifest sha256 0cdb058fa40c… · 16.9 GB · 12 files
$ fw verify ./Hy-Memory-30B-A3B-4bit mlx-community/Hy-Memory-30B-A3B-4bit
From sourceHosted (signed)mlx-community/Hy-Memory-30B-A3B-4bitLast check: 2026-11-15 05:17 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of Hy-Memory-30B-A3B.

Runs withAIBrixBentoMLCTranslate2ExLlamaV2ExLlamaV3exofastllmFlashInfergpu-unlockKTransformersLitServeLMCacheLMDeployLocalAImistral.rsMLC LLMMooncakeSGLangText Generation WebUItinygradTransformersTriton Inference ServervLLMXinferenceFine-tune withAccelerateAlignment HandbookAxolotlColossal-AIDeepSpeedEasyR1FlashAttentionH2O LLM StudioJAXKerasLiger KernelLitGPTLLaMA-FactoryMegatron-LMms-swiftnanotronOLMo-coreOpenRLHFOumiPEFTPyTorch Lightningsd-scriptsSimpleTunerTorchTitantorchtuneTransformer EngineTRLUnslothverlConvert withAQLMAutoRoundCore ML ToolsExecuTorchGPTQModelLLM CompressormergekitNeural CompressorOliveONNXOptimum QuantoOptimumsafetensorsTensorRT Model OptimizertorchaoEvaluate withAutoevalsDeepEvalEvaluateHELMLightEvallm-evaluation-harnessOpenCompassOpikRagassimple-evalsSWE-benchTruLensWeaveScan withAgentDojoAI Fairness 360DeepTeamDetoxifyFairlearngarakGiskardGuardrailsMCP ScannerModelScanNeMo GuardrailspicklescanpromptfooWorks withAgent Development KitAG2Google AI Edge GalleryAiderany-llmAnythingLLMBAMLbrowser-useCAMELHugging Face Chat UIChatboxCherry StudioClineCodex CLICogneeCrewAIDeerFlowDSPyEnchantedGemini CLIGitHub MCP ServergooseGPT ResearcherGradioGraphitiGuidanceHollamaInstructorKilo CodeLangflowLangGraphLiteLLMLlamaIndexLLMLocalAGILoLLMs WebUIMCP Python SDKMem0MetaGPTNextChatOllama JavaScriptOllama PythonOpenAI Agents SDKopencodeOpenHandsotermOutlinesPage AssistPlaywright MCPPortkey AI GatewayPrivateGPTQwen CodeRWKV RunnerSemantic KernelsmolagentsStrands AgentsVaneXGrammar

Overview

Size
16.9 GB
Weights
16.9 GB (safetensors)
Parameters
30.1B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
12, each with a sha256
Publisher
mlx-community
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Base model: tencent/Hy-Memory-30B-A3B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:17 UTCpassed

Model card

From the publisher at commit 65eb23e. Shown as plain text with links; images open at the publisher.

mlx-community/Hy-Memory-30B-A3B-4bit#

This model mlx-community/Hy-Memory-30B-A3B-4bit was converted to MLX format from tencent/Hy-Memory-30B-A3B (revision 64a460a9) using mlx-lm 0.31.3 (mlx 0.31.2).

Hy-Memory-30B-A3B is Tencent Hunyuan's mixture-of-experts model (about 30B parameters in total, about 3B active per token: 48 layers, 128 routed experts with 8 active plus one shared expert). Its specialty seems to be a long-term memory writer: it is trained to run the write path of external memory frameworks (Mem0, MemOS, Hy-Memory), deciding what to retain, how precisely to represent it and how new evidence updates the memory bank. See the original model card and arXiv 2610.22196.

Quantization#

Methodaffine, group size 64, 4-bit
Bits per weight4.505
Kept in full precisionthe MoE router (mlp.router.gate, bfloat16) and its expert-score correction bias (mlp.router.expert_bias, float32); norms
Size16 GB

The router decides which 8 of the 128 experts run for each token. Its correction bias deliberately tightens the selection margins, so the router is not quantized.

The model class is bundled#

mlx-lm has no hy_v3 model module (an upstream pull request, ml-explore/mlx-lm#1211, was closed unmerged). This repository therefore ships the model class as hy_v3.py, and config.json points to it with "model_file": "hy_v3.py"; mlx_lm.load imports that file. Loading this model runs that Python file, as with any model_file checkpoint.

hy_v3.py is AbstractCore's abstractcore/providers/mlx_hy_v3.py, written from transformers' HYV3ForCausalLM: router logits in float32, sigmoid scores, the correction bias used only to choose the experts (the combine weights are the unbiased scores, normalised and multiplied by router_scaling_factor), the shared expert added in float32. The released checkpoint's experts are 768 wide (expert_hidden_dim), although moe_intermediate_size in config.json says 1536; the class uses expert_hidden_dim. Tensor names follow the mlx-lm MoE convention (mlp.switch_mlp.*, mlp.router.gate, mlp.router.expert_bias, mlp.shared_mlp.*), as in mlx-community/Hy3-preview-*.

Measured against transformers 5.8.0 on the bfloat16 weights (before quantization), on a 100-token prompt: the five most likely next tokens are the same and in the same order, the correlation of the last-position logits is 0.9965, the most likely token agrees at 96 of 100 positions, and the 32-token greedy continuation decodes to the same text. On a small random HY V3 model in float32 the class matches transformers to within 4e-6.

Use with mlx-lm#

pip install mlx-lm
python -m mlx_lm generate --model mlx-community/Hy-Memory-30B-A3B-4bit \
  --system-prompt 'Extract explicit user facts and preferences from the conversation. Return only a JSON object with a "memories" list of strings.' \
  --prompt "My name is Alex. I live in Seattle and I'm vegetarian." \
  --max-tokens 512 --temp 0.0

The chat template has one reasoning variable, reasoning_effort: no_think (the default), low or high. With low or high the model writes its reasoning first and closes it with </think>:

python -m mlx_lm generate --model mlx-community/Hy-Memory-30B-A3B-4bit \
  --chat-template-config '{"reasoning_effort": "high"}' \
  --prompt 'Memory bank: ["Alex lives in Seattle"]. New message: "I moved to Portland." Which memory changes, and to what?'
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Hy-Memory-30B-A3B-4bit")
messages = [
    {"role": "system", "content": 'Extract explicit user facts. Return only a JSON object with a "memories" list of strings.'},
    {"role": "user", "content": "My name is Alex. I live in Seattle and I'm vegetarian."},
]
prompt = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, tokenize=False, reasoning_effort="no_think"
)
print(generate(model, tokenizer, prompt=prompt, max_tokens=512))

For memory extraction the original card uses no reasoning and temperature 0.0; for general sampling, temperature 0.7 and top-p 1.0.

Tool calls follow the template: <tool_calls><tool_call>name<tool_sep><arg_key>key</arg_key><arg_value>value</arg_value></tool_call></tool_calls>.

Use with AbstractCore#

from abstractcore import create_llm

llm = create_llm("mlx", model="mlx-community/Hy-Memory-30B-A3B-4bit")
resp = llm.generate("My name is Alex and I'm vegetarian.",
                    system_prompt='Return only a JSON object with a "memories" list of strings.',
                    thinking=False, temperature=0.0)

thinking=False sends reasoning_effort=no_think, thinking=True or "high" sends high, and "low" sends low; the reasoning is returned separately from the answer, and tool calls are parsed.

License#

Apache-2.0, as the base model.

Files

12 files · 16.9 GBWeights 16.9 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 12 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.27 KB1ba291ee5cb1bbe9bc5e16b30ca7a24d7d38dd68e2bfe8d01d2398ca4daa38c0
chat_template.jinja11.3 KB8759492d33deb19b2f58855f62d3e431276da89d698b2800d1e353fbb12d5320
config.json2.48 KB5fa92ec0f59a8b4bb4d006f3e842473338cb1b45772b5cf4e6d325f248af6b86
hy_v3.py20.1 KBff2d20ef0535e4dd3dda254770097625cc81843e9e2d2167656dd7c1075038a6
model-00001-of-00004.safetensors5.36 GB0f30c66f9e7a8cb89747d10e410c4c4751ef08c09f50249d828b5eea103bde6b
model-00002-of-00004.safetensors5.30 GB0df1f3d1bb7ee00b2b1e817f864302dba31063a8821b93e880c828421fa8c670
model-00003-of-00004.safetensors5.30 GB29029f5f39e74c2c27f9124477876fcfd36accaacc1020b1c6d56f27d8ecf0dd
model-00004-of-00004.safetensors962 MB7b0f14d8efeae1bf7aaad4fd29957393f3f6aa5084552a76fb6016a83f81294a
model.safetensors.index.json156 KB8cd058f8d42bef982818477c622897e0842fcbd6654f20454e8beede74ae7bdf
tokenizer.json9.53 MBad96ef9f641b79bb63807bea87cecf1dd0534325b463dad44cccbb3d0c571db7
tokenizer_config.json346 B9184ad9ed535c6030bebefc9fa5b59ba59ab28a2c6c5a1da638a952d02d32818
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
65eb23e40d pinned now2026-11-15 05:17 UTC12 files · 16.9 GB

Use it

$ fw get mlx-community/Hy-Memory-30B-A3B-4bit
# manifest sha256 0cdb058fa40c… · 16.9 GB · 12 files
$ fw verify ./Hy-Memory-30B-A3B-4bit mlx-community/Hy-Memory-30B-A3B-4bit
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/mlx-community/Hy-Memory-30B-A3B-4bit.json --dir ./Hy-Memory-30B-A3B-4bit $ python3 fw.py verify ./Hy-Memory-30B-A3B-4bit ./mlx-community__Hy-Memory-30B-A3B-4bit.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mlx-community/Hy-Memory-30B-A3B-4bit --revision 65eb23e40d0d61fab54c887f432718491cd51858 --local-dir ./Hy-Memory-30B-A3B-4bit
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("mlx-community/Hy-Memory-30B-A3B-4bit", revision="65eb23e40d0d61fab54c887f432718491cd51858") model = AutoModelForCausalLM.from_pretrained("mlx-community/Hy-Memory-30B-A3B-4bit", revision="65eb23e40d0d61fab54c887f432718491cd51858", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve mlx-community/Hy-Memory-30B-A3B-4bit --revision 65eb23e40d0d61fab54c887f432718491cd51858

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
1ba291ee5cb1bbe9bc5e16b30ca7a24d7d38dd68e2bfe8d01d2398ca4daa38c0
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: mlx-community <huggingface.co/mlx-community>Newsgroups: alt.freeweights.textSubject: Hy-Memory-30B-A3B-4bitDate: 2026-11-15Commit: 65eb23eSigned: 2DC28CC7B26A283B ✓
Upstream
mlx-community/Hy-Memory-30B-A3B-4bit
Pinned commit
65eb23e40d0d61fab54c887f432718491cd51858
Manifest
Hy-Memory-30B-A3B-4bit.json · .minisig
Manifest sha256
0cdb058fa40c96191037138c3e3393e7029f5b128036c1b6b697c6bb31071d1c
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:17 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/mlx-community/Hy-Memory-30B-A3B-4bit.json $ curl -O https://freeweights.allternit.com/manifests/mlx-community/Hy-Memory-30B-A3B-4bit.json.minisig $ minisign -Vm Hy-Memory-30B-A3B-4bit.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

tencent/Hy-Memory-30B-A3B · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mlx-community/Hy-Memory-30B-A3B-4bit
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Hy-Memory-30B-A3B-4bit.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B