File size: 2,685 Bytes
a4fb8b1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
license: mit
language:

en

zh
tags:

medical

multimodal

routing

RAG

siglip

🧠 MANN-Engram-Router Weights

Welcome to the official model hub for MANN-Engram!
MANN-Engram is an Edge-Cloud Multimodal Semantic Router designed to shield Cloud VLMs (Vision-Language Models) from "Information Tsunamis" in complex medical and high-noise scenarios.

This repository hosts the custom Skew-Gaussian tensor routing weights required by the MANN-Engram SDK.

πŸ”— GitHub Repository: MANN-Engram GitHub (Replace with your link)

πŸ“¦ What's in this Repository?

To keep the installation footprint as light as possible, this repository only contains the custom routing core weights (the Skew-Gaussian compressor).

The foundational multimodal encoder (google/siglip-so400m-patch14-384) is automatically handled and downloaded by the transformers library when you initialize the SDK.

πŸ“‚ Directory Structure

We provide language-specific routing weights to ensure the highest semantic extraction accuracy:

πŸ“ en/ (English Version - Available Now)

skew_model_v4full_en.pt: The core weights for the mann_engram_en Python SDK.

πŸ“ zh/ (Chinese Version - Coming Soon)

skew_model_v4full_zh.pt: Optimized for Chinese medical contexts and intent extraction.

πŸš€ Quick Start

1. Install the SDK

Make sure you have installed the MANN-Engram SDK from our GitHub repository:

# Clone the GitHub repo and install
pip install -e .


2. Download the Weights

Download the skew_model_v4full_en.pt file from the en/ folder in this repository. We recommend placing it in a weights/ directory at the root of your project.

3. Initialize the Router

from mann_engram_en.router import MANNEngramRouter

# Initialize the router (Hardcore Local Privacy Mode)
router = MANNEngramRouter(
    siglip_model_path="google/siglip-so400m-patch14-384", # Handled via Hugging Face automatically
    ckpt_path="./weights/skew_model_v4full_en.pt",        # The weight file from this repo
    enable_local_intent=True,                             # Zero Data Leakage local extraction
    local_intent_model="Qwen/Qwen2.5-0.5B-Instruct"
)

# Start purifying your messy clinical data and multimodal files!
results = router.process_session(
    raw_chat_input="Doctor hurry up! I hit my head on the door yesterday... Check these lab reports.",
    file_paths=["blood_test.pdf", "history.docx"],
    image_paths=["head_ct.jpg", "leg_mri.jpg"],
    top_p=0.85
)

print(f"βœ… Successfully extracted core evidence! Stats: {results['stats']}")


πŸ›‘οΈ License & Citation

These weights are released under the MIT License. If you use MANN-Engram in your research or production, please consider citing our GitHub repository.