Graph Machine Learning
Transformers
Safetensors
English
unicosys_hypergraph
knowledge-graph
hypergraph
legal-evidence
graph-neural-network
unicosys
Instructions to use drzo/unicosys-hypergraph with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use drzo/unicosys-hypergraph with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("drzo/unicosys-hypergraph", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,215 Bytes
539df93 5e8f7b3 539df93 41e3ef4 8286cce 41e3ef4 539df93 41e3ef4 35d0e0e 539df93 35d0e0e 41e3ef4 35d0e0e 539df93 | 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 86 | ---
license: mit
tags:
- knowledge-graph
- hypergraph
- legal-evidence
- graph-neural-network
- unicosys
language:
- en
library_name: transformers
pipeline_tag: graph-ml
---
# Unicosys Hypergraph Knowledge Model
A trainable knowledge graph embedding model encoding the unified evidence
hypergraph for Case 2025-137857.
## Model Description
This model encodes a **unified hypergraph** linking financial transactions,
email communications, legal evidence, and entity relationships into a
single trainable knowledge representation.
### Architecture
| Component | Details |
|---|---|
| Node Embedding | 128-dim structural + 256-dim text |
| Hidden Dimension | 256 |
| Text Encoder | 2-layer Transformer, 4 heads |
| Graph Attention | 2-layer GAT, 4 heads |
| Link Predictor | 2-layer MLP with margin ranking loss |
| Total Parameters | **34,762,497** |
### Knowledge Graph Statistics
| Metric | Count |
|---|---|
| Total Nodes | 198,019 |
| Total Edges | 13,415 |
| Cross-Links | 3,664 |
| Entities | 16 |
| Emails | 197,993 |
| Financial Documents | 0 |
| Timeline Events | 10 |
| LEX Schemes | 0 |
| Legal Filings | 0 |
### Subsystems
| Subsystem | Nodes |
|---|---|
| Core (Entities) | 16 |
| Fincosys (Financial) | 0 |
| Comcosys (Communications) | 197,993 |
| RevStream1 (Evidence) | 0 |
| Ad-Res-J7 (Legal) | 10 |
## Training
The model can be fine-tuned on link prediction tasks:
```python
from model.unicosys_model import UnicosysHypergraphModel, UnicosysConfig
model = UnicosysHypergraphModel.from_pretrained("hyperholmes/unicosys-hypergraph")
# ... prepare training data ...
# model.forward(node_ids, node_type_ids, subsystem_ids, edge_index, edge_type_ids,
# pos_edge_index=pos, neg_edge_index=neg, labels=labels)
```
## Files
- `model.safetensors` — Model weights
- `config.json` — Model configuration
- `graph_data.safetensors` — Encoded graph tensors (nodes, edges)
- `tokenizer.json` — Character-level tokenizer for node labels
- `node_id_mapping.json` — Node ID string to integer index mapping
- `model_summary.json` — Compact statistics summary
## Source
Generated by the [Unicosys](https://github.com/hyperholmes/unicosys) intelligence pipeline.
|